dcsimg
A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: preloader issue

  1. #1
    Junior Member
    Join Date
    May 2008
    Location
    Hawaii
    Posts
    27

    Smile preloader issue

    Hi, I have a preloader. which seems to work, but then does not play the animation, just a simple shape tween. Code is attached.
    PHP Code:
    stop();

    this.loaderInfo.addEventListener(ProgressEvent.PROGRESSonProgress);
    this.loaderInfo.addEventListener(Event.COMPLETEonComplete);

    function 
    onProgress(e:ProgressEvent):void{
        var 
    loaded:Number e.target.bytesLoaded;
        var 
    total:Number e.target.bytesTotal;
        var 
    pct:Number loaded/total;
        
    loader_mc.scaleX pct;
        
    loaded_txt.text "Loading... " + (Math.round(pct 100)) + "%";
    }

    function 
    onComplete(e:Event):void{
        
    nextFrame();
        
    /*gotoAndPlay(2);*/

    On frame 41 after the shape tween I have a stop();
    Can anybody help me figure this out?
    Thanks so much,
    Johnny
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center