Script QUeStIoN <------

Ok, i am freaking out. I HAVE A MOVIECLIP ON MY MAIN stage the instance name is “maincontainer”. I have a button on the main stage and its instance name is “but”

This is my code in my actionscrript layer

but.onPress = function() {
maincontainer.loadMovie(tornado5.swf);
};

Why when i run it, i click my button it does nothing, i dont see it, its like it doesent work.

I just want my swf to load in the maincontainer and positioned corrctly… thats all! And please any moderator that reads this, please dont give me a link…i been searching and reading…i cant figure it out! Thanks…ebodykool

use quotes around your file name.

Why don’t you just apply this to your “but” button:[AS]on (release){
_root.maincontainer.loadMovie(“tornado5.swf”);
}[/AS]

i tried, it still dosent work!!! what the heck am i doing wrong, i checked for mispellings and everything

http://www.kirupa.com/developer/mx/loading.htm

now I’m going to bed.

electrongeek-----> i just tried that and it dont work!!! ahhh i am going nuts at 215am!

Sorry… took too long. Time for sleeeeeeeeeeepy

i hope you can read thru my mess, lol, thanks jubba!

No oooooooo wakey no sleeeeeeepy! lol

Hey ebodykool! I see no mistake in your script nor with electrongeeks. For this, check your flash file. You might have placed different names. Make sure that your button and movie clip are at the same level. And of course, make sure also that your target file is in the same directory as with your main movie.

Hope it helps. :slight_smile:

Might be a scope problem in the tornado5.swf file. What are you doing in that file exactly?

I’m pretty sure the file loads. It just doesn’t show up becuase of the fiel you are loading: the tornado file from the kirupa lab. Try cahnging anything in that file that says “_root” to “_parent” that might help…

Hey thatnks alot, i acctually figured it out. Thanks for spending the time with me. This is why kirupa still rules!!!

<------END POSTS----->