all groups > flash actionscript > december 2006 >
You're in the

flash actionscript

group:

loadMovie to _root timeline


loadMovie to _root timeline Strangedenial
12/5/2006 10:08:28 PM
flash actionscript:
hi there,
I got this menu movie in the root timeline, and inside that movie I got
another pop-up movie for submenu, and inside that submenu I got buttons
obviously :)
I used :
on (release) {
loadMovie("h_euro.swf", "_root.now");
}

but just not work, and for some interesting reason it reloads the main movie.
kinda confused here. "now" is a movie located in the root timeline.
hoping for some help
thanks
Re: loadMovie to _root timeline kglad
12/5/2006 10:39:34 PM
try:



on (release) {
_root.now.loadMovie("h_euro.swf")
Re: loadMovie to _root timeline Strangedenial
12/5/2006 11:01:10 PM
same thing happening, it reloand the main movie, It worked before I dunno maybe
I've done something wrong while editing, but I don't think so...I just can't
understand why ir reloads the main movie, crazy!
Re: loadMovie to _root timeline kglad
12/5/2006 11:25:36 PM
Re: loadMovie to _root timeline Strangedenial
12/5/2006 11:25:54 PM
I've tried to attach a lpg using the same script and it worked. I've double
checked the movie to be loaded if it had any erors or not, but it's working
fine. so that means, I'm very very confused now. I have to upload the page
tonight, and I guess it is not possible, for now...
nah

Re: loadMovie to _root timeline kglad
12/5/2006 11:28:02 PM
Re: loadMovie to _root timeline Strangedenial
12/5/2006 11:29:04 PM
what makes me think that the movie reloads? well, beacuse it reloads :)
I'll upload the fla's first, hang on...
Re: loadMovie to _root timeline Strangedenial
12/5/2006 11:32:15 PM
well, the movie I want the swf be loaded in is labeled as 'external' here,
http://www.gencsan.com/gencsan.fla
Re: loadMovie to _root timeline Strangedenial
12/5/2006 11:39:54 PM
Re: loadMovie to _root timeline kglad
12/6/2006 12:04:33 AM
Re: loadMovie to _root timeline Strangedenial
12/6/2006 12:13:27 AM
well, you can try it on any of the buttons, it don't work....but, here it
goes,
_root / _menu ( which is in the menu layer ) / _menu_mov (which is in the top
layer , last frame (also called menu) , if you go to the last frame you'll see
all the buttons, and in the top button you'll see the empty button (green) and
there is the code...
I know it's kinda complex for that I don't know another way..
hope clear enough 'cuz I've tried a billion times and still it loads the lpg
correctly but not the swf. I'll go insane here. if there was a problem it would
not load the jpeg as well, but it does.

By the way the swf will be loaded in _root.external which is located on the
top layer in _root timeline.


Re: loadMovie to _root timeline Strangedenial
12/6/2006 12:23:11 AM
this is the simple code for the button, if I change the euro.swf to 8.jpg it
loads the jpg, but if I change it to a swf file it won't work. grrrrrrrrrr

on (rollOver) { gotoAndPlay("go");

}
on (rollOut) { gotoAndPlay("goback");

}
on (release) { loadMovie("euro.swf", "_root.external")
}
Re: loadMovie to _root timeline kglad
12/6/2006 12:26:27 AM
then euro.swf is corrupt or you have a typo/case mismatch.

Re: loadMovie to _root timeline Strangedenial
12/6/2006 12:33:59 AM
well, I guess I was not clear enough....
if you click the menu layer you'll see where the menu movie is located, since
it's first frame is empty, and then click on it and you'll get into the menu
movie, and in that movie's top layer, last frame, the other menu movie is
located. and if you get in there as well, you should see all the buttons, but
they're converted to movies so you have to click once again to get to the
button movies, and I guess the rest you can find out, but if not, just forget
it because it's kinda hard for you to know what I'm talking about since the fla
is kinda crowded :)
I really do appreciate your help, I'll check all the codes to see if there's a
missmatch or else,

thank you again,

Re: loadMovie to _root timeline kglad
12/6/2006 7:36:49 PM
AddThis Social Bookmark Button