# Is this AS3?

**URL:** <https://forum.kirupa.com/t/is-this-as3/312074>\
**Category:** flash\
**Created:** [July 24, 2010, 4:27pm UTC](https://forum.kirupa.com/t/is-this-as3/312074 "2010-07-24T16:27:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![radbourn3](https://avatars.discourse-cdn.com/v4/letter/r/82dd89/32.png) [@radbourn3](https://forum.kirupa.com/u/radbourn3)\
**Post date:** [July 24, 2010, 4:27pm UTC](https://forum.kirupa.com/t/is-this-as3/312074/1 "2010-07-24T16:27:49Z")

</div>

Hi forum  
I’m doing a small project for a client. I have been given an ‘AS2’ FLA containing this code:

```auto
stop();
addEventListener(Event.ENTER_FRAME, loading);

function loading(event:Event) 
{
   var bytestotal = stage.loaderInfo.bytesTotal;
   var bytesloaded = stage.loaderInfo.bytesLoaded;
   var sclbar = Math.round(bytesloaded*100/bytestotal);
   loader_mc.LoadingText.text = sclbar + "%";
   loader_mc.gotoAndPlay(sclbar);
   if (bytesloaded >= bytestotal) 
   {
      gotoAndPlay(2);
      removeEventListener(Event.ENTER_FRAME, loading);
   }
}

```

Can anyone confirm if this is AS2 or AS3 please?

I ask because it won’t compile, stating:

```auto
"Scene=preloader, layer=Layer 1, frame=1, Line 4 The class or interface 'Event' could not be loaded."

```

Thanks
