Skip to content

Instantly share code, notes, and snippets.

@thcipriani
Created November 18, 2011 17:42
Show Gist options
  • Save thcipriani/1377171 to your computer and use it in GitHub Desktop.
Save thcipriani/1377171 to your computer and use it in GitHub Desktop.
Function Not being called
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