PDA

View Full Version : problem with load external swf


al3loo
06-10-2007, 05:57 PM
Hello!

I have a problem with my movie when I make loading for external swf then I can't to unload that external swf ..

I attached the full example with source, please help me as soon as you can :eek:

My Flash work when press on the button to loading external swf and bring it like it same (it is a photo gallery). Then code of the button change to ( gotoAndPlay(1); ) and the problem is that external swf is still in seeing ..


See that code in the flash ..
on (release) {
// Here I want any code to unload the external swf ..
gotoAndPlay(1);
}




Best Regards
AlEloo

LOLFlash
06-10-2007, 06:22 PM
stop();
unloadMovie(2);

al3loo
06-10-2007, 06:32 PM
Dear LOLFlash,
Thank you very very much :)









All the best
AlEloo

al3loo
06-12-2007, 04:57 PM
OK, but I have another question, please! :confused:
If I want put or load the external swf under the top layer, so that I have a buttons when the swf loaded I can't see it ..

I tried to load the swf in an empty mc but its not work probably.




:rolleyes: Thanks beforehand

al3loo
06-12-2007, 06:44 PM
Maybe the question is not clear, I will repeat wording of question:

When I tried to load the swf in a specific mc ..
First, that external swf has a code for loading
onClipEvent (load)
{
total = _root.getBytesTotal();
}
onClipEvent (enterFrame)
{
loaded = _root.getBytesLoaded();
percent = int(loaded / total * 100);
text = percent + " %";
gotoAndStop(percent);
if (loaded == total)
{
_root.gotoAndPlay(2);
} // end if
}


Writing red in the code clarify the command that will make re-work movement in the main movie ..
:confused: what is the solve for that !?!,,



I hope you understand my problem :eek:

al3loo
06-12-2007, 07:28 PM
Thanks, I have the solving .. ;)
It just change "_root" to "_parent"


sorry for annoyance
:rolleyes:

LOLFlash
06-12-2007, 10:39 PM
I think you have to remove onClipEvent (enterFrame) listener after you dont need it ,take a look it forum