views:

330

answers:

1

Hi guys, Im having a problem with Flex 4 beta 2...

I cant call a class using: "<fx:Script source:"myClass"/>

For some reason, no matter what I do, the error is always the same.

"Packages cannot be nested".

I googled it and I found links to help.adobe.com... but they are all broken links...

So, is this a Flex bug or there is a new way to use external classes in Flash Builder 4?..

Thx in advance.

A: 

i think you have to write: <fx:Script source="myClass"/> ( no colon but the equal sign .... )

... and myClass must be an actionScript file and not a class

nsp
Actually, the Flash Builder intellisense tells me that I must use ":".And about the class, it is a file with .as extension inside a proper package... I just dont know what is happening.
Artemix