View Full Version : LoadMovie enquiry
Gabra53
03-27-2003, 06:44 AM
How do you target a particular scene in another .swf to check if it's loaded, and excute the "goAndPlay" command in a main swf?
A.swf file contains 2 scenes. Scene 1 is the preloader, and scene 2 the actually animating scene. So if I were to load A.swf from B.swf file, and want to play the second scene straight in A.swf(if the entire file is loaded), how am i supposed to do that?
Billy T
03-27-2003, 08:47 AM
so you want to play b and a when a is loaded? What code do you have for the A swf preloader already? What are you loading A swf into? Level? target mc?
Gabra53
03-27-2003, 10:10 AM
yup, i wanna play A.swf in B.swf..... but would wanna target it straight into the second scene in A.swf instead of the first (if A.swf is fully loaded)...
For A.swf, i have only placed this script:
ifFrameLoaded ("Scene 2", 1) {
gotoAndPlay ("Scene 2", 1);
}
its a target MC
Billy T
03-27-2003, 10:15 AM
ifFrameLoaded ("Scene 2", 1) {
gotoAndPlay ("Scene 2", 1);
_root.gotoAndPlay("somewhere");
}
and in frame 2 of A put
gotoAndPlay(1);
as you need to continually check the ifFrameLoaded
cheers
Gabra53
03-28-2003, 02:33 AM
hey, thanks alot man!
But i realised it doesn't really make a big difference in wat i trying to do.... maybe its becoz my motives are not clear enough....*sigh, but thanks again.
Hey, could you and anyone explain to me is Flash 5 is capable of loading external swf in a targeted Dummy MC as a "stored" loaded clip. So if I were to load the same movie in another targeted MC, it won't need to take as long as it would on the first downloading time?
Something like load it down into library first so it makes reloading the same MC faster?
Billy T
03-28-2003, 02:38 AM
yep it should cache any external movies that have already been loaded
cheers
Gabra53
03-28-2003, 03:45 AM
well, i tired loading external swfs onto "Dummy2" first and load them again to "Dummy" (1 Layer above dummy 2) on a click of a button... wat happens is i still see the observation that the particular swf loads up again(in full time) when targeted in Dummy 1..... any idea why is this so?
Another thing strange is that i have set "Dummy2._visible = false" but i still get to see it......
Billy T
03-28-2003, 03:52 AM
when you load an external movie into an mc then actions on that mc (such as _visible=false) get deleted. Make another mc inside the dummy and load the movie into that
instead of loading movie again, try setting visible of clip to true when button is clicked
cheers
Gabra53
03-28-2003, 04:07 AM
I tried making another MC inside that dummy MC and load movies in there first(like you suggest).... but it still doesn't work....... Is it because i have more than 1 MC to be loaded in there?
Gabra53
03-28-2003, 04:41 AM
I've attached the fla file here, so maybe if you have the time can look through it and see wat's wrong?
Its fast and perfectly alright if you view the main swf file through flash player.... but the problem arises when it is uploaded onto the web......
the so call "pre-loading" of the rest of the images doesn't help the "re-loading" of the same images to be faster.....:confused:
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.