ActionScript 3.0 :: Hide Buttons Till Later Frame?
Dec 6, 2010I have code on frame one and buttons that I don't want to appear until later frames.This is my first time in Flash and can't figure it out. How would I write that?
View 1 RepliesI have code on frame one and buttons that I don't want to appear until later frames.This is my first time in Flash and can't figure it out. How would I write that?
View 1 RepliesI am creating a learning document. I would like to disable nextpage button till all other buttons clicked and movieclip finished.I try to use if stamement but I could not be successfull because my nexpage button is on main frame and my other buttons on movieclip.
I disable nextpage button mainframe and I use following code using AS2.
btn1.onPress = function(){
_parent.forwardBtn._visible=false;
}
[code]....
I have three picture and buttons. Therefore user need to enlarge picture by pressing buttons after viewing all image. Then user need to move next page. The next page is another movie clip. I would like to disable nextpage button here to till MC complete.
I'd like to know if there's a wait to have flash hold on a frame till a sound finishes playing. I'm guessing that this will require some sort of EventListener but I'm pretty new to AS 3.0 and I'm not sure how to do it. I've searched the forms but cant seem to find anything on how to achieve this either, but I think thats because I'm not sure of the correct terminology.
View 2 Repliesi have 26 frames. i want frame 1-25 to keep on looping till i click a button to make it go to frame 26.
View 9 RepliesI've been trying to build an application in flash whereby everything is held on a single frame (the different 'screens' held on seperate layers). My problem is that I want to hide some buttons and other things when the application loads but I can't find anything on it. I have tried an onEnterFrame (AS3 addEventListener(Event.ENTER_FRAME) ) but that didn't hide anything. I tried just having the button.visible = false but that didn't seem to work either. It's probably a stupid question, it's very likely I've missed something in the properties window or something basic, I'm rather new to AS3 and have been working on this for a couple of days now without any success.
View 1 RepliesCode:
var showbutton="buttonone";
var currentpage="pageone";
[code]......
From my flash "home" frames, I have 4 buttons that take the user to different places on the timeline. One frame on the timeline includes a carosel of pictures that rotate and looks nice. I downloaded the carosel actionscript and xml documents online, I did not build them myself. Now, when I hit the "home" button to get back to the home frame, the carosel still lingers around. I would like to know how to hide it, or make it not come back at all when coming back to my "home" frame.
Here is my actionscript inserted in the frame:
import mx.utils.Delegate;var numOfItems:Number;var radiusX:Number = 1000;var radiusY:Number = 30;var centerX:Number = Stage.width / 2;var centerY:Number = Stage.height / 2;var speed:Number = 0.9;var perspective:Number = 130;var home:MovieClip = this;var tooltip:MovieClip =
[Code]....
I have a menu inside flash. It's a drop down menu and it only shows options when it is hovered over with the mouse.
[Code]...
On the menu I want to have normal buttons but the problems is when I move the mouse over the buttons (Which are ontop of the menu) it thinks I want to hide the menu.
I was looking to make 2 buttons; one that hides a movieclip that is playing on a slide, and one that shows it again. I've heard theres a few ways to do this but none of them are making much sense to me (i previously made some buttons that play, pause and stop a movieclip, and I think I am stuck in the wrong frame of mind to do these next 2 buttons...) How to tackle this task.
View 2 RepliesHere is my script:
ActionScript Code:
var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("some.swf");
myLoader.x=315;
myLoader.y=223;
myLoader.load(url);
When I go to a new frame the swf does not vanish it just stays there. How do I get rid of the loaded swf from within the swf? I guessed it's something to do with the child?
is it possible to hide the cursor upon entering a frame. i know you can hide the cursor when you use a custom cursor hideCursor=true but what about like .... if you have a button and on the over state you have a movie, upon entering the movie the cursor hides?
View 2 RepliesI was wondering if anyone knew how to hide the skin in the flvplayback component on ROLL_OUT. SkinAutoHide seems to work whenever it feels like it and sometimes the button controls just stay over the video. This happens in Safari and IE I believe. I am used Actionscipt 3.0OR does anyone know how to get to the display list of the component, where all the names to all the buttons (and skin) is housed, using the instance names from the component fla file does not work. I looked at the documentation and the names of all the button sprites are there, but i need the name of the background that the buttons sit on top of.
View 5 RepliesSmarter than I Fellows:I've uploaded a source .fla for my project: [URL]I'm trying to get out of timeline based animation and start using AS.... I've been watching adobe tv and reading, reading. I can look at AS and understand it, but am far from knowing where to start when building something.Here for example I simply want my previous and next buttons to display hidden at the beginning of the movie and then show when the user mouses over the stage.
Of course they should also on click let us navigate from slide to slide and the slides will transition in and out on X axis with nice easing and a blur (i'm trying to mimic the action found at FontExplorerX [URL]. Right now, I'm just tying to get my buttons to not appear until mouseover (maybe they should appear on load and disappear after a delay and then reappear on mouseover - the mouseover trigger would be the whole stage for both buttons, not just the specific area).
I have a "snow movie clip" playing in my .swf, but removing the clip on a certain frame doesnt stop it from playing. I need to either remove it or hide it using as2.
View 1 Repliescan a button on a single frame be coded to both display a movie clip on its first click and, after a second click, hide the movie clip?
View 3 RepliesJust finally making the transition from AS2 to AS3.All i need to do at this point is make two buttons which will control the movie to goto next frame and previous frame. I have gotten how to make the buttons go to a specified frame number and also a button to go to a specified external url but no success in making a simple next/previous pair of buttons.
stop();
but1.addEventListener(
MouseEvent.MOUSE_UP,
[code]....
I've got a movieclip acting as a button. Code on the button itself handles roll-over/-out states, and I define an onRelease function in the main timeline as follows:
[Code]...
This code takes the movie back to the first frame and works on the third frame. For some reason, though, the same code on the fifth frame has no effect. The button doesn't do anything. I have tried using the same button, I tried inserting a new keyframe with a new button, renaming the button, etc. and for some reason I just can't get it to work on the fifth frame. If it helps to visualize, I am essentially making a menu. The first frame contains buttons to take you to submenus, located on following slides. This button to go back to the original menu is on each frame with a submenu, but for some reason only works on one of them.
Where can I find step by step instructions for creating next frame and previous frame buttons with Flash CS4?
View 3 RepliesI need to stop at frame 720 and gotoandplay frame 227 without clicking buttons.
View 2 RepliesI am using AS 3 Flash CS4, WIndows XP SP3. I am unable to use the Mouse.hide(); method in many of my scripts. If I add Mouse.hide() to a preexisting script, I get the following error; line1 1061: Call to a possibly undefined method hide through a reference with static type Class. If I add Mouse.hide():void; to a preexisting script, I get the following error: line1 Label must be a simple identifier Once this has happened, if I then remove ALL lines of script from the file...but leave the Mouse.hide(); [or Mouse.hide():void;], and also remove all objects from the stage, when I run the file, I still get those same errors.
[CODE]...
I want to load in a page in the backgrond. and not play it till i want it to start.
View 1 RepliesI am AS newbie and would like to ask how to do this in Flash MX:
1. I have 4 different still images incorporated into mc-s, pict00_mc - pict03_mc.
2. I fade these image mc-s into each other over the timeline using alpha.
3. I have a play and a stop button too, to control the animation.
4. I would like to achieve that anytime I press the stop button, it should stop not at any intermediate point (e.g. in the middle of the alpha animation) but ALWAYS at the start of the next picture with 100% alpha.
How to achieve this?
I am trying to figure out how to draw a line, from a movie-clip, downwards until it hits another movie-clip. And also if another movie-clip intersects the line, how would I make it draw to the new object that intersected with the line.
View 1 RepliesI just started with AS3 and i have a problem with conditionals. I have 3 buttons which animate on RollOver and they animated on RollOut. But i wanna prevent that when 1 button is active the others can be activated as well, though i can't get it to work properly.
This is my code,
Code: Select allvar buttonReady = true;
function move_to_top() {
parent.setChildIndex(this, parent.numChildren-1);
buttonReady = false;
[Code].....
What this is supposed to do is when you RollOver it sets the var buttonReady to false and when the RollOut is done it sets the var buttonReady to true.
I traced this in every step of the progress and the var is adjusting to true and false though it looks like it's ignoring the if statement.
how do I make it to where the flash wont start until someone moves their mouse over it
View 4 RepliesI have a swf file which is hardly 200 KBs. I have placed a preloader bar as well as have the script - ifFrameLoaded().Problem is the preloader is not showing till the loaded value is around 90%.Since this file has a bit of actionscript involved (for interactive features) I doubt if that could be a hinderance.
View 6 RepliesIt only scroll till 107 line of text not more than that, is there is any possibility to make it more???
[code]....
Iam loading 2 mp3s via XML. Play, stop, forward and Volume btns works fine. Wat i want is to loop an mp3 till a user stops it or changes it to the second one.
View 1 Replieshow do I make it to where the flash wont start until someone moves their mouse over it
View 4 RepliesI have 3 objects. One is a Movieclip, and other 2 are buttons (forward and backward)[code]...
Inside MC there are several animations with stop(); where it should stop till clicking Next button to play till the next stop.[code]...