|
-
[F8] LoadMovie question. (simple.)
hey everyone!
I'm making a simple app where i load a swf(just a sound) in my little movie.
now i need to know a few things with this swf.
1. how to control it (play, stop, pause, etc..)
2. how to know the length in frames or min/secs.
3. how to know when the movie is done.
I'm pretty sure theres a way to do these things really fast right?
-
Senior Member
When you have the audio placed in the timeline, you should be able to see the waveform and tell how many frames it is.
If you want exact time (sec), click on the waveform in the timeline and go to "edit" in the property box. When you see your waveform in the edit section (gray), you can click on the small "clock' icon (lower right) to get the time or the small "film strip" icon to see the frames. This is helpful if you are looping the audio say 3 times.
As far as controlling the movie. There are lots of tutorials and downloadable full .fla movies on this site that can help you.
Good Luck!
-
hmm. that's not what i meant but thanks for the info.
what i want is when i load ANY movieclips with the LOADMOVIE(); command, once it's loaded in my scene, how do i control it or know anything about it?
Code:
loadMovie("song1.swf",_root.songArea) //this is the songs being loaded.
now what can i do to control it let's say to STOP it?
or to know anything from this when it's loaded? you see what i mean ? i know i could find this from the song1.fla but i have a ton of these and i want to know this info without opening a ton of fla.
any help on this?
-
atleast tell me if it's not possible or what plz!
-
bump! Does anyone have an answer for me? I can't be the only one that wants to do this!!
-
Senior Member
I don't know what you need to do as far as control, but when you load your movie, make sure it loads into a different level than the parent.
Say you load your movie in level 1 and you want it to stop playing at frame 50
code: _level1.gotoAndStop(50);
Is that more what you are wondering?
-
yes exactly! thank you. I'm sorry, i'm kinda new to the scripting of flash so I don't know the proper terms when i check in the help so i had no idea. So if I have movieA loading MovieB, i can load MovieB in level1 and be able to control it? GREAT! i hope that's what you meant.
edit:
OK, i tried searching for LEVEL in flash's help and it found nothing. why is this such a big problem!?!?! can someone explain to me levels?
Last edited by p357; 02-21-2007 at 03:47 AM.
Reason: more questions
-
Senior Member
Level names are constructed like this: First there is an underscore (_); then type the word level; then the number of the level you want your action to happen on:
Tells the movie loaded on level 1 to go to frame 50:
_level1.gotoAndStop(50)
Tells the main timeline to go to frame 50:
_level0.gotoAndStop(50)
Or target a movie clip on a timeline of another movie on another level:
_level3.mcNameofClip.play()
This would just tell that clip to start to play.
_level0 is always your main timeline. You specify what level you want to have your external .swf load into. Then just specify that number to control it.
FUN! ;-D
-
ah ! thank you for that detailed explaination.
-
Senior Member
You are welcome :-)
AND I just recently learned from this community that you need to specify each nested mc in the chain if you want to target an mc that is inside another mc...
i.e. code: _level3.mcNameofClip.mcNestedClip.play("frame-label-name")
Happy Loadin'!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|