I am loading a game swf into a parent swf.
The game swf contains droptarget code on individual movie clips that need to be correctly dragged to target boxes.
- This drag/drop code works PERFECTLY when I export this game and everthing in the (if) statement executes.
- When this game swf is loaded into the parent swf, the droptarget (if) statement no longer works! The (else) statement actions still work however, because i get the trace output “wrong”, even when I’m dropping the right movie clip in the right target.
PLEASE HELP!!!
GAME SWF (works on its own)
// Code on the movie clip that you are supposed to drag to the correct square.
on (release) {
stopDrag();
setProperty(this, _alpha, 100);
if (this._droptarget=="/target1") {
do actions and trace "correct"
} else {
do actions and trace "wrong"
}
}
PARENT SWF
//Code in the empty movie clip
this.onEnterFrame = function(){
this.loadMovie(“game.swf”);
}
thanks in advance for any clues!!!