Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pTarget.completeEventHandler = function(e:Event) : void
- {
- // hide the loader
- if(mcLoader != null) mcLoader.visible = false;
- // first remove the old bitamp if it was
- if(pTarget.content != null && pTarget.contains(pTarget.content)) pTarget.removeChild(pTarget.content);
- // add the content and retain it to control its timeline if is a swf
- pTarget.content = pTarget.addChild(pTarget.loader);
- // show the new loaded content holder with tween if is the case
- if(showFlag)
- {
- pTarget.alpha = 0;
- pTarget.showObject();
- }
- // call the complete listener of the target
- if(onCompleteFunction != null)
- {
- if(onCompleteFunction.length) onCompleteFunction(pTarget);
- else onCompleteFunction();
- }
- };
Add Comment
Please, Sign In to add comment