# (MX to 2004) Actionscript Error

**URL:** <https://forum.kirupa.com/t/mx-to-2004-actionscript-error/145732>\
**Category:** Uncategorized\
**Created:** [April 25, 2005, 1:04pm UTC](https://forum.kirupa.com/t/mx-to-2004-actionscript-error/145732 "2005-04-25T13:04:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JamieMX](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@JamieMX](https://forum.kirupa.com/u/JamieMX)\
**Post date:** [April 25, 2005, 1:04pm UTC](https://forum.kirupa.com/t/mx-to-2004-actionscript-error/145732/1 "2005-04-25T13:04:26Z")

</div>

Hi Everyone,

## The following flash code is valid for Actionscript 1. However I have upgraded to Flash MX 2004 and Actionscript 2 and the code no long appears valid… What is wrong here?

Actionscript:

\_global.FONT = new TextFormat(“RaxelSerbian”, “8”, 0xFFFFFF, false, false, false, “”, “\_blank”, “left”, 0, 0, 0, 5);

Output Error:

**Error** Scene=main, layer=//GLOBALS//, frame=1:Line 10: Type mismatch.

```
 _global.FONT = new TextFormat("RaxelSerbian", "8", 0xFFFFFF, false, false, false, "", "_blank", "left", 0, 0, 0, 5);

```

* * *

Thanks in advnace  
Jamie
