Personal tools

Views

Talk:Flex Framework:overview

From Adobe Labs

"A file found in an actionscript-classpath must have an externally visible definition. If a definition in the file is meant to be externally visible, please put the definition in a package."

This error appears when i compile my application, which was made in flex 1.5. What I must do to migrate from Flex 1.5 to 2.0?

[edit]

Answer (from flex 2.0 alpha docs)


Using packages The package statement syntax has changed. In addition, you are now required to put custom ActionScript components inside packages.

If you do not put a class inside a package, then the class is only visible in the current script. For example:

class Foo {}


is a class that is not in any package, so it is only visible in the current script. If you put a class in an unnamed package:

package { public class Foo {} }


Then you can access the class from any script. All scripts import the unnamed package by default.硬梆梆

[edit]

Severity Description

Retrieved from "http://labs.adobe.com/wiki/index.php/Talk:Flex_Framework:overview"