# Stuck when compiling AS3 file

**URL:** <https://forum.kirupa.com/t/stuck-when-compiling-as3-file/325591>\
**Category:** flash\
**Created:** [October 25, 2011, 5:15am UTC](https://forum.kirupa.com/t/stuck-when-compiling-as3-file/325591 "2011-10-25T05:15:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gloopy](https://avatars.discourse-cdn.com/v4/letter/g/82dd89/32.png) [@gloopy](https://forum.kirupa.com/u/gloopy)\
**Post date:** [October 25, 2011, 5:15am UTC](https://forum.kirupa.com/t/stuck-when-compiling-as3-file/325591/1 "2011-10-25T05:15:30Z")

</div>

Hi,

I am trying to run this AS code from [wonderfl.net](http://wonderfl.net):

> **[wonderfl build flash online | 面白法人カヤック](https://www.kayac.com/service/other/94)**
>
> wonderflは、サイト上でFlashをつくることのできるサービス。
> 
> 通常Flashをつくるためには、Flash IDEやFlex、FlashDevelop等といったツールを使って、コードを書き、コンパイルする...

I have downloaded the right files to ensure this works:

[TABLE]  
[TR]  
[TD][/TD]  
[TD]import net.wonderfl.utils.FontLoader;[/TD]  
[/TR]  
[TR]  
[TD][/TD]  
[TD]import com.bit101.components.\*;[/TD]  
[/TR]  
[/TABLE]

But when I compile the code in an AS3 project in Flash CS4, I get a tonne of errors shown in the image below.

I can’t find much info on the wonderfl site, and the author is japanese, and I can’t get through to his site to ask for advice. The code on wonderfl isn’t a tutorial, and there is no support offered there unfortunately.

Might the errors be because the code is for Flash Player 11? As I am running Flash CS4, when I go to Publish settings, the highest flash player I can use is 10, so I can’t choose 11.

If anyone has time to take a peek, I have put the code together here, which contains the FLA, AS file, and the include libraries I mention above:

[http://jimpix.co.uk/typography.zip](http://jimpix.co.uk/typography.zip)

I’m really keen to work on this code, but have hit a big brick wall.

Any help much appreciated.

Thanks
