- Original Message -
From: "markgoldin_2000"
To:
Sent: Thursday, February 26, 2009 3:28 PM
Subject: [flexcoders] design time array vs. run time array
> Design:
>
> icon="@Embed('D:/projects/sfcs/assets/status_online.png')" />
>
>
> Run time:
> objectToArray = new Object;
> objectToArray.label = "Accordion";
> objectToArray.icon = "@Embed
> ('D:/projects/sfcs/assets/status_online.png')";
> lineList[0] = objectToArray;
>
> In the debugger for run time array:
> icon looks like this: @Embed
> ('D:/projects/sfcs/assets/status_online.png')
>
> but for design time array:
> it looks like this:
> test__embed_mxml_D__projects_sfcs_assets_status_online_png_1891042693$
> (@6436f41)
>
> What am I missing here?
At design time the icon image is embedded when the swf is generated -
increasing it's size. At runtime, it's loaded at runtime from a file.
> Thanks