all groups > flash actionscript > november 2004 >
You're in the

flash actionscript

group:

inane question department


Re: inane question department (_seb_)
11/28/2004 2:36:47 PM
flash actionscript: you can use the same function, but you'll have to call the function from
the button within "movie2", right, so you'll have to call it like that:

on (release) {
_root.loadSWF2();
}

and you should probably change the function in your main timeline to
loadSWF1() { _root.holder.loadMovie('movie1.swf'); }

i.e. add _root to the path so that all paths are absolute and stay right.

[quoted text, click to view]
inane question department macron
11/28/2004 7:22:05 PM
okay, i've got a movie clip called 'holder' nested inside a swf, and i'm using
a function to load a movie clip called 'movie1' into 'holder'. i.e. function
loadSWF1() { holder.loadMovie('movie1.swf'); but now i want to put a button
in movie1.swf that loads another movie into 'holder'. would i use the same
function? i.e. function loadSWF2() { holder.loadMovie('movie2.swf');? does
that make sense? cheers, macron
Re: inane question department NSurveyor
11/28/2004 7:30:45 PM
I believe you would just use:
Re: inane question department macron
11/28/2004 11:06:51 PM
dear flashers,

thanks for helping a poor ignorant soul. much obliged again!

cheers,
AddThis Social Bookmark Button