|
-
Load Movie... frame question
Hey all. I've got a section of my website that is contained in a seperate SWF as it's huge. I was originally gonna load it into my library and just create an instance of that, but I thought was there a way to keep it completely external. Could someone show me the LoadMovie format to load such an external file? Also... if that movie is say 50 frames long, but I'm loading it into a 5 frame long layer... how do I specify that the imported movie should be able to play all of its frames regardless of the main movie's # of available frames? I hope that makes sense. Thanks a TON! have a great day!
-
Registered User
I've put up a fairly extensive loadMovie tutorial here.
Any movie clip or external movie plays independantly of any other timeline. So if you load your movie on frame 5 of the main movie, which is stopped, it will still play it's own timeline.
-
hey, thanks a bunch! In fact I was just reading your tutorial yesterday... I tried but I still couldn't get mine to work.
This bit of code uses a button...
on(release){
_root.mtClip.loadMovie("mymovie.swf");
}
I was just wondering what I would do if instead of a button link, it was just a keyframe in a timeline? Also, what is the significance of "mtClip" and "_root?" Do I need to have that in my code?
Anyway, from what I gather in the tutorial, basically I need to do the following... create a new layer as/containing an empty movie clip... at the desired frame, create the LoadMovie action, and use whatever method I please to call that frame? Thanks a bunch! I'll play around and get back!
-
sorry dumb question.. I know what mtclip and root are for haha whoops
-
-
whoops. Only problem is that the buttons from the movie clip underneath can still be hit even though they're underneath this new movie... any idea how to fix? thanks!
-
Registered User
You have to give the buttons instance names, then use code to turn them on and off.
_root.button1.enabled = 0; //turns it off.
_root.button1.enabled = 1; // turns it back on
Use it in a frame or on the button that loads the movie.
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
|