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!...
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
Post a Comment