I’m having difficulty using AttachMovie method from one swf to another. Here’s the code I’m using.
Sender swf
btn.onRelease = function():Void {
var senderLC:LocalConnection = new LocalConnection();
senderLC.send("targetObj", "doThis");
}
Receiver swf
var receiverLC:LocalConnection = new LocalConnection();
receiverLC.doThis = function() {
this.attachMovie("button", "button", this.getNextHighestDepth(), {_x:980, _y:534});
};
receiverLC.connect("targetObj");
And for the record, the AttachMovie action works just fine outside this function. That’s not the issue.
Any help is greatly appreciated.