I can’t find a way to control an external SWF in AS3 like I used to be able to in AS2. This used to be a real simple way (among others) in AS2:
loadMovieNum(“yourMovie.swf”,1);
onMouseDown = function(){
_level1.stop();
}
onMouseUp = function(){
_level1.play();
}
Unfortunately this has been abolished in AS3:diss: . To load a SWF externally from a separate SWF file (on a separate CPU) in AS3, you now must now use a URL request along with a load request. However, the SWF is tied into this loader object of which’s class does not contain “play”, “stop”, “currentFrame”, “nextFrame”, “prevFrame”, “gotoAndPlay”, “gotoAndStop”, etc… According to the help panel, you can target any of the loader’s child’s methods by virtue of calling “loader.content”… but it doesn’t work. When I trace my “loader.content”… all I get back that it is an [Object Main Timeline] when I would expect it to be [Object MovieClip] if it were to have the methods I need.
Inevitably… I need to do all sorts of gotoAndStop / gotoAndPlay functionality with external SWFs on another CPU. I have a nice XML server running successfully… I just hit this brick wall… any suggestions?
thx