flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Martin <chrsm...@outlook.com>
Subject Re: Custom Item renderer to show various icons
Date Sat, 21 Mar 2015 22:52:51 GMT
Mark,


Can you give some details about how you get their names from the backend?


Chris






Sent from Windows Mail





From: mark goldin
Sent: ‎Saturday‎, ‎March‎ ‎21‎, ‎2015 ‎10‎:‎53‎ ‎AM
To: users@flex.apache.org




I am not. I am trying to find a solution for loading images using their
names received from backend.

On Sat, Mar 21, 2015 at 12:18 PM, Subs <subscriptions@leeburrows.com> wrote:

> how are you creating your swf file?
>
>
> On 21/03/2015 17:12, mark goldin wrote:
>
>> But what I dont understand is how I will provide a path to an image in a
>> first place.
>>
>>
>>
>> On Sat, Mar 21, 2015 at 11:27 AM, Subs <subscriptions@leeburrows.com>
>> wrote:
>>
>>  you can access library objects of the swf with embed:
>>>
>>> [Embed(source='SWFFileName.swf', symbol='symbolName')]
>>>
>>> (see http://help.adobe.com/en_US/flex/using/
>>> WS2db454920e96a9e51e63e3d11c0b
>>> f60546-7ff2.html#WS2db454920e96a9e51e63e3d11c0bf69084-7fa3)
>>>
>>>
>>>
>>> On 21/03/2015 16:00, Chris Martin wrote:
>>>
>>>  How would this work if I compile all my resources into a swf file? How
>>>>
>>>>> can
>>>>>>
>>>>>>> I then get an image source at the run-time?
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>>
>>>>>>>> On Wed, Mar 18, 2015 at 3:42 PM, Alex Harui<aharui@adobe.com>
>>>>>>>>
>>>>>>> wrote:
>>>>>
>>>>>> Did you try:
>>>>>>>>>>
>>>>>>>>>> if (data)
>>>>>>>>>> {
>>>>>>>>>>    var c:Class = data.status == 0 ? _icon1 : _icon2;
>>>>>>>>>>    image.source = new c();
>>>>>>>>>> }
>>>>>>>>>>
>>>>>>>>> --
>>> Lee Burrows
>>> ActionScripter
>>>
>>>
>>>
> --
> Lee Burrows
> ActionScripter
>
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message