开发者

flashbuilder 4.5 can't find import flash.display.*;

开发者 https://www.devze.com 2023-03-12 00:10 出处:网络
i opened a flash pro project in flashbuilder 4.5 but it puts a question mark next to my import statements for example:

i opened a flash pro project in flashbuilder 4.5 but it puts a question mark next to my import statements for example: im开发者_开发百科port flash.display.; I have tried rebuilding the project in a new folder. I have the latest SDK. why would Flashbuilder have a problem finding flash.display.; or import flash.events.*; very irritating is there a way to fix this or should i just continue to use textmate to code as3?


I'm having this issue myself from time to time, even in current Flash Builder 4.5 (never figured out how to replicate it though).

To solve it do this:
Right click on your project in Project Explorer tab of Flash Builder > Properties
Once there select ActioScript Build Path > Library path > Add SWC folder
Select this directory C:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0\FP9

(optionaly) If you wish to target FP10, add this dir instead C:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0\FP10


Try this:

import flash.display.*;

You were missing the .*


This is what I found:

When I create a new Flash Professional project from FlashBuilder 4.5, the Flash IDE opens and my flash.display.Sprite import looks like it's broken.

If I close the Flash IDE, FlashBuilder opens it right back up again, and my imports look fine after that.

YMMV

0

精彩评论

暂无评论...
验证码 换一张
取 消