Created
November 18, 2011 17:42
-
-
Save thcipriani/1377171 to your computer and use it in GitHub Desktop.
Function Not being called
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gatewayListener.onLoadStart = function(target_mc) { | |
//target_mc.stop(); | |
_root.gatewayClip = target_mc; | |
if(target_mc == _level0.vidWindowClip.vidImgLoader && _root.gatewayPlaying == 1) { | |
_root.vidWindowClip.createEmptyMovieClip("gatewayTimer",_root.vidWindowClip.getNextHighestDepth()); | |
_root.vidWindowClip.gatewayTimer.onEnterFrame = function(){ | |
getURL("javascript:writeOutput('300x250 Total Frames: "+target_mc._totalframes+"')"); | |
if(target_mc._currentframe == target_mc._totalframes) { | |
getURL("javascript:writeOutput('gateway ended')"); | |
trace("gateway ended"); | |
_root.gatewayPlaying = 0; | |
_root.gatewayComplete = 1; | |
target_mc.stop(); | |
mcLoader.loadClip(_root.ad300x250URL,_root.vidWindowClip.vidImgLoader); | |
doConnect(); | |
delete this.onEnterFrame; | |
delete _root.albumTile.onRelease; | |
mcLoader.removeListener(gatewayListener); | |
} | |
} | |
} | |
} | |
}else { | |
doConnect(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment