AS 2 Error: The class or interface 'Event' could not be loaded.


hey, i'm new forums , have problems flash cant fix. have error keeps telling me how "the class or interface 'event' not loaded. error on 5th line of code:

 

 

1  stop();

3  addeventlistener(event.enter_frame, preload);

function preload(e:event):void{

6      var bytestoload:number = loaderinfo.bytestotal;

7      var numberloaded:number = loaderinfo.bytesloaded;

8      if(bytestoload == numberloaded){

9          removeeventlistener(event.enter_frame, preload);

gotoandstop(2);

} else {

_root.preloader.preloaderfill.scalex = numberloaded/bytestoload;

_root.preloader.bytespercent.text = math.floor(numberloaded/bytestoload*100) + "%";

}

}

 

know code as3 cant switch as3 atm , need same code, as2. so, can convert me? way, supposed preloader , putting on 1st frame. have extensions (.as), .fla file.

also, using newest flash, adobe flash cs6.

just search google as2 preloader tutorial instead of trying convert as3 as2.



More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account