Checking if a dynamically loaded SWF has loaded...


i loading 1 swf following code:

var contentclip:movieclip = _root.createemptymovieclip("contentclip",(_root.getdepth()-1));
contentclip.loadmovie("searchresults.swf");

that works fine. now, want loaded swf ("searchresults.swf") perform actions after has loaded. tried following code on first frame of loaded swf, didn't work:

this.onload = function (){
//some function
}

it did work, however, when changed "onload" "onenterframe". doesn't need to, because want function happen once after swf has loaded - not every frame...

is possible? thanks!...




More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support