A very cool effect on movies,films and application caused by the aging of the actual reels.Copy below codes to the first frame,the dynamic progress status of loading will be displayed,when loading completly the application will be run automatically.
- stop ();
- _root . createTextField ( "myload_txt" , 1 , 0 , 0 , 0 , 0 );
- with ( _root . myload_txt ) { //set text
- background = true ; // background
- backgroundColor = 0x336699 ;
- textColor = 0xFFFFFF ;
- type = "dynamic"
- selectable = false ;
- autoSize = "center" ;
- _x = Stage.width/2;
- _y = Stage.height/2;
- }
- onEnterFrame = function () {
- var Loaded = _root . getBytesLoaded ();
- var Total = _root . getBytesTotal ();
- _root . myload_txt . text = Math . floor (( Loaded / Total )* 100 )+ "%" ;
- if ( Loaded == Total ) {
- onEnterFrame = null ;
- removeMovieClip ( _root . myload_txt );
- play ();
- }
- };

January 23rd, 2008
Ntt.cc 








Posted in
Tags: 
RSS Feed
Email Feed
Great tip – I think I know the effect you’re on about but have you got an example?
[...] The cotton candy effect of loading with ActionScript (1) [...]
Hi, was just looking through your website and wanted to load the RSS feed, but it isn’t working in my webbrowser (I’m running Opera) any possible way to get around that?