Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting movie frame number

Status
Not open for further replies.

bigbird3156

Programmer
Feb 20, 2001
183
AU
hi guys....

I have got an animated graphic (movie clip) that I am using as a background to the movie that I am making at the moment... the background is available on different scenes of my movie... the user gets to the different scenes by clicking on a button...

Is there any way that when the user clicks the button I can get the value of the frame that the background movie clip is currently on and pass it to the next scene so that the background movie will continue to play from where it was rather than starting from the beginning...

or is there some other way to get a movie clip that is common to different scenes play uniterupted as it changes from scene to scene???

thanks for your help (i am using MX)

(-: The Bird from Down Under
bigbird_3156@optushome.com.au
 
Guess that as for a sound clip to cover multiple scenes, the best would be to have your background clip to play on it's own on another level, and since it's your background clip it should be in fact your main movie (_level0 or _root), all other scenes being in another movie on a higher level.
Guess you could also store the currentframe on the end of the current scene into a global variable (root.my_background_frame = _root.backgroundclip._currentframe;), and have your background clip play from the next frame upon entering the next scene, but that might not be as smooth! Regards,

new.gif
 
I'm sorry old but I am not really with you here...

I am probably a very stupid bird [bugeyed]... but how does this different levels thing work for movie clips and scenes... I have always assumed that a scene was a movie in it's own right and that they could not be overlapped as such... could you please direct me to a tutorial or the section of the help files that will fill me in on what I have obviously missed - or you could just give me a quick run down if that is easier... [wiggle]The Bird from Down Under
bigbird_3156@optushome.com.au
 
Suppose I wanted a sound clip to play across different scenes of a movie... The only way to achieve this would be to insert the sound clip in it's own movie, load this movie on another level, and have it play continuously and independently, regardless of how many scenes there were in the main movie. Otherwise, if I set the sound on each scene, it would re-start from the beginning upon entering each scene.
What I proposed was basicly the same thing but with video rather than audio. Build your main movie with the background clip only, looping or whatever... Then load on another higher level, your "content" movie (with several scenes), thus the "on-top" movie (which is transparent if you don't add a solid background to it!), becomes your navigation movie playing over an independent and continuously looping movie, your background movie.

Best way I can describe it!

And sorry, but off to bed! Catch you in the morning maybe! Regards,

new.gif
 
Ok....

so I have set up my main scene as the 'control scene' and besides some general instructions like the background movie, everything is done in movie clips (instead of seperate scenes) sooo... in frame 1 we have a movie clip loading loop in frame 2 we have the intro movie clip in frame 3 we have the home or navigation page, in frame 4-12 we have movie clips for each of the site pages...

I have done this, however how do I then from a movie clip (say the loading loop in frame 1) control what goes on in the main scene....

the if frame loaded (frame X in main) go to frame x in main does not work as it is not a different scene and the same happens with buttons in other movie clips... they cannot control the main scene (with a straightforward go to and play command anyway)...

so how do I get over this problem? [wiggle]The Bird from Down Under
bigbird_3156@optushome.com.au
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top