Cant get my preloader to work


alright guys, working on new app iphone using 3 aswell , making own preloader user wont stay waiting program without seeing load... made loader bar, named it: barload , dont error of kind, when sync app iphone bar wont load, stays full, , never plays thing, when play computer same thing, , here's code wrote:

 

 

stop();

addeventlistener(event.enter_frame, barloading);

 

 

function barloading(e:event):void

{

          var total:number = this.loaderinfo.bytestotal;

          var loaded:number = this.loaderinfo.bytesloaded;

          var percentage:number = loaded/total;

          barload.scalex = percentage;

          trace(percentage);

 

          if(percentage == total) {

                    removeeventlistener(event.enter_frame, barloading);

                    play();

          }

}

 

thanks help, kind of new 3 notice.

there nothing wrong code , in fact can achieve preloader.  first, suggest add large image frame 2. test .swf file flash ide.   while test .swf running, find tab view in menubar flash ide. click on download settings , put 14.4 modem. lastly click on view once again , hit simulate download.  should see progress bar increase in scale.  thing not ideal way monitor load.  ideal  create swf load in file. can monitor load more accurately.



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support