I have a bouncing basketball that when “dunked” launches a nested net animation. In the nested animation is a loadMovie of a subSWF, the empty mc called mySUB is on the main timeline. It is working but because the 3rd party API that is going to be serving these files does not play nice with _root I am thinking a more elegant solution is to use the hitTest to also launch the subSWF.
I tried simply repeating the hitTest function with loadMovie added but nothing happened.
This is my hitTest AS that plays the net stretching animation
onClipEvent(enterFrame) {
if(this.hitTest(_root.net_mc)){
_root.net_mc.gotoAndPlay("net");
delete this.onEnterFrame
}
}
Adding the following did not launch my subSWF called youWin2
onClipEvent(enterFrame) {
if(this.hitTest(_root.net_mc)){
mySUB.loadMovie(_root.myPR.absolutePath +"youWin2.swf");
delete this.onEnterFrame
}