Friday, January 8, 2010

How can do work on flash for loading Like Game Loading and want CODING?

F Lash WorkHow can do work on flash for loading Like Game Loading and want CODING?
hi friend ,





if you mean preloader use this code in first frame


as2 version :


stop();





var total:Number = _root.getBytesTotal();





pre.onEnterFrame = function()


{


var loaded:Number = _root.getBytesLoaded();


var percent:Number = int(loaded/total * 100);


this.bar._width = percent * 2;


this.txt.text = percent+';%';;





if(loaded/total == 1)


{


_root.gotoAndPlay(2);


}


}





and stop(); in second frame





here is the source file





http://infogroupindia.com/downloads/





please visit my site





http://infogroupindia.comHow can do work on flash for loading Like Game Loading and want CODING?
put this in 2nd frame :





loadedbytes = getBytesLoaded();


totalbytes = getBytesTotal();


if (loadedbytes == totalbytes) {


gotoAndPlay (3);


}else{


gotoAndPlay (1);
  • home facial
  • oil repair
  • natural shampoo
  • oil repair
  • No comments:

    Post a Comment