# Is this AS2?

**URL:** <https://forum.kirupa.com/t/is-this-as2/312075>\
**Category:** flash\
**Created:** [July 24, 2010, 4:29pm UTC](https://forum.kirupa.com/t/is-this-as2/312075 "2010-07-24T16:29:02Z")\
**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:29pm UTC](https://forum.kirupa.com/t/is-this-as2/312075/1 "2010-07-24T16:29:02Z")

</div>

Hi forum  
Apologies for duplicate posts. I’m not sure whether to ask the AS2 or AS3 communities.

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."

```

Many thanks
