Hi, I have made some buttons that all sit inside a movie (because there are hover overs that come up on each button but simply it is potentially a single button with a rollover state that sits inside a movie) that then sits inside a scene , I am trying to get the buttons inside the movie to go to different frames within the scene that it sits on with no luck. I have tried putting a simple button action in i.e. on (release) { gotoAndPlay(50); } then I tried to point it directly at the scene via the following code (index page is the scene name) on (release) { gotoAndPlay("index page", 50); } both of these actions move the timeline in the movie along but do not effect the main scene which I want it to do. Please help.
Justin, Perhaps this is not the answer you are looking for but trust me, I've been there right where you are too and my alternative suggestion may give you a new level of freedom. Also, if you already know this, sorry for rambling on. Rather than using scenes, which is a big pain to edit if your client wants to change something, try using loadMovieNum and unloadMovie. These two pieces of code are very useful. Why? Because you now have the ability to make your entire flash file moduler. This means that when you click a button, for example, you load an external movie into the main movie and at the same time you (tell Flash to) unload another movie, etc. So rather than creating one large swf file, you make many small swf files and load them as needed. Also editing is simplified tremendously because you don't have to edit entire sequences in a scene, etc. For example, you can create an entire website with only one or two frames because every time you need something you simple "call for delivery", kind of like getting pizza LOL! I hope this helps. Sorry if its the wrong answer. DC
Maybe this is the answer as I originally tried this but the hover over effect on my buttons goes over where the text will be loaded into the stage, I did try this originally for exactly the same reason as you explained but when I use the load movie function it puts the movie above everything else (as it usually does) and hides my hover over , if you can tell me a way of getting my buttons over the top of the loaded movie then I would be grateful.
on (release) { _parent.gotoAndPlay(50); } Your mc with buttons sits inside the main timeline. You can address the main timeline in this case with _parent.gotoAndPlay() When your mc would sit deeper then you can address the main timeline with _root.gotoAndPlay()
Hi thanks for your reply, I have tried this however, I have assigned the action to the button and all it does is replay the original timeline of the scene from frame 1 onwards, it doesn't start at frame 50 and move on ( I have 3 scenes 1) preloader 2) where the page forms up 3) where the buttons etc will sit and move the "pages" around i.e. jumping to different frame numbers). At least it does something now though !! thanks in advance for your help
Just to be sure. Did you use this code: on (release) { _parent.gotoAndPlay(50);
I did, I think I have possibly just found an answer, I have added in the amount of frames in the preloader and the forming up scene so I have this on (release) { _parent.gotoAndPlay(120); } and it has worked on the first button, I am just about to try it on another to see if its going to work for all, although if you can think of a tidier way of doing it I would appreciate it.
Then send the playhead to the correct frame on the correct scene: on (release) { _parent.gotoAndPlay("index page", 50);
Strange but this has worked, I needed to add the amount of frames from the preloader (5) and the intro (65) and add it onto the frame count you are trying to hit i.e. 50 so had to do 120 frames on the button, stange as I said, another one of those little flash querks !!. thanks very much for your help. Justin
It is not a quirk. Scenes don't exist in a published movie so all the frames get added together into one long timeline.
Don't see what you're looking for? Try a search.
|