How Do I Target a Loaded Movieclip?
hi all,
i have been loading movies container object called 'hold' using:
movloader = new moviecliploader();
//creates listener object
movlisten = new object();
//links listener loader
movloader.addlistener(movlisten)
//function runs when ad completes load
movlisten.onloadcomplete = function(target) {
trace("target "+target);
};
movloader.loadclip("http://www.mysite.com/mymovie.swf",hold);
the movie loads container object, has stop() action on frame 1 becuase don't want play until activated. want able target loaded movie when want play, no instance name has been applied - how target it?
when trace target reports target container object - presuambly 'target' argument of onloadcomplete function refers container object movie loaded into. there way can find tname of content inside holder or assign instance name can target or there simpler method of achieving this?
having uploaded loaded movies onto external servers , having parent movie clip local file seems affect success of targetting, bit confusing.
any ideas or these issues helpful - thanks.
you should able target loaded movie using either "target" or "hold". 1 thing might consider changing use onloadinit rather onloadcomplete. onloadinit indicates when loaded movie done loading , set , ready use.
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment