Class fl.controls::CheckBox could not be found

爱⌒轻易说出口 提交于 2019-12-08 09:16:09

问题


I am loading external swf that contain checkbox on the stage. but when I try to load that swf I get an error "Class fl.controls::CheckBox could not be found."

I build the application with pure as3 in flash builder 4 and the external swf made by flash pro cs4

Thanks,


回答1:


fl.controls namespace is a part of Flash Pro.

To integrate with Flash Builder, you can either add the package by SWC or via code:

Adding Flash Components to Flash Builder:

Adding by SWC:

  • Right-click on your project in Flash Builder, and go to Properties.
  • Select "ActionScript Build Path" from the left.
  • Go to the "Libary path" tab now available on the right.
  • Click "Add SWC..."
  • Add libs from Flash such as flash.swc or IK, depending on what version of the Flash IDE you have and where you installed it.

Windows:
C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0\libs\flash.swc

Mac OS X:
/Applications/Adobe Flash CS5/Common/Configuration/ActionScript 3.0/libs/flash.swc

Adding by source folder:

  • Right-click on your project in Flash Builder, and go to Properties.
  • Select "ActionScript Build Path" from the left.
  • Go to the "Source path" tab now available on the right.
  • Click "Add Folder..." The Flash components should be in a location with a path similar to the following, depending on what version of the Flash IDE you have and where you installed it.

Windows:
C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface

Mac OS X:
/Applications/Adobe Flash CS5.5/Common/Configuration/Component Source/ActionScript 3.0/User Interface



来源:https://stackoverflow.com/questions/13035052/class-fl-controlscheckbox-could-not-be-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!