error : A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be ext

来源:互联网 发布:死神结局知乎 编辑:程序博客网 时间:2024/05/21 22:27

A file found in a source-path 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.

and

Unable to locate specified base class 'org.osflash.arp.samples.pizza.flex2.view.OrderFormClass' for component class 'OrderForm'

Reason: You have not updated your ActionScript class to use the new package keyword. In ActionScript 3, you define a classes' package separately, not in the class signature.

Solution: Use the package keyword to define the package for your class -- package org.osflash.arp.samples.pizza.flex2.view { public class OrderForm { //... } }.

 
原创粉丝点击