A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [F8] Preloader

  1. #1
    Senior Member donaldparkerii's Avatar
    Join Date
    May 2005
    Location
    San Diego
    Posts
    616

    [F8] Preloader

    WOW I cant belive I am having trouble with this. I took a preloader from an existing movie, but I cant seem to get it to work : - |

    here is my code:
    Code:
    stop();
    
    var movieTotal:Number = _root.getBytesTotal();
    var movieLoaded:Number = _root.getBytesLoaded();
    var precentLoaded:Number = ((_root.getBytesLoaded()/_root.getBytesTotal())*100);
    
    
    preloader_mc.onEnterFrame = function(){
    	preloader_mc.progress_mc._xscale = precentLoaded;
    	trace(precentLoaded);
    	if(movieLoaded == movieTotal){
    		delete this.onEnterFrame;
    		play();
    	}
    }
    When I trace precentLoaded on the onEnterFrame of preloader_mc I get

    0.897368899136274
    0.897368899136274
    0.897368899136274
    0.897368899136274

    anyideas?

  2. #2
    Senior Member donaldparkerii's Avatar
    Join Date
    May 2005
    Location
    San Diego
    Posts
    616
    i guess there was just a problem inside of flash, when i uploaded the file everything worked prefect

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