Display inline images in Flash / Flex Builder

I use embedding images in Flex 4 (the same thing happens with Flex 3). I have one class with a lot of

[Embed(source="../assets/icons/icon1.png")] 
public static const image:ClasS

And I reference them using:

<mx:Image source="{imagesResources.image}"/>

When I launch the application, I see the icon, but in Flash (Flex) Builder I do not see the image while working in development mode. Is there a way to enable image rendering in Flash Builder design mode? or the best way to include resources.

thank

+3
source share
2 answers

. ( ), source , Design Flex Builder Flash Builder.

, , static source = "mypath/myimage.jpg", , Class.

+2

@Embed() MXML? " @Embed() MXML"

0

Source: https://habr.com/ru/post/1748868/


All Articles