Tuesday 4 May 2010

The class or interface 'uint' could not be loaded. Actionscript 2

If you're trying to migrate your flash project from Actionscript 2 to Actionscript 3, or you're interrating some Actionscript 3 code into your AS2 project, you may encounter this error in numerical calculation functions:


The class or interface 'uint' could not be loaded.

The reason is that the uint (and int) types only became available with AS3. with As2, your stuck with good old Number.

If you're confident that your project is AS3 ready, just change your Publish settings like so:

Flash CS3 Publish Settings Window
Note: AS3 requires flash player 9+ selection

No comments: