Flex tag error again

Two errors bothers me all day, there is no error in FlashBuilder but I prefer to complete my work with IDEA

One here, I created a screencast.
http://www.screencast.com/t/FKkH9Q4w

IDEA 107.322



another Question is, how can I embed an image in flex code? code is like this,

<s:BitmapImage smooth="true" source="@Embed('assets/images/Map/Layer 14.png')" d:userLabel="Layer 14" x="-81" y="-95"/>


IDEA can't find the resource path, add, the assets is under the src folder.

Thx

11 comments
Comment actions Permalink

Unresolved DesignLayer is a bug - please open request at http://youtrack.jetbrains.net.

As for embedding assets: Spec requires leading slash, but Flash Builder uses own path resolver and doesn't care  about Adobe's own spec. So to make code clean please write @Embed('/assets/images/Map/Layer 14.png')

0
Comment actions Permalink

useless with or without slash.



Attachment(s):
屏幕快照 2011-07-29 下午2.54.50.png
0
Comment actions Permalink

Sorry, what does the screenshot demonstrate? I don't see red code in it.

0
Comment actions Permalink

Oh, sry, it's my miss. It's OK

0
Comment actions Permalink

fixed now?   so what can I do to make it run correctly?

0
Comment actions Permalink

Wait for the next IDEA EAP or update release.

0
Comment actions Permalink

Thx, Alexander:D

0
Comment actions Permalink

I have updated to the lastest 107.509.
but the tag is still red...

0
Comment actions Permalink

Sorry, haven't integrated the fix into IDEA 10.5 branch. Thank you for reminder. Please wait for the next EAP.

0

Please sign in to leave a comment.