Maybe images should be set with beads instead. The ImageURLBead,
ImageBinaryBead, etc.

Peter

On 8/8/16, 10:04 AM, "Alex Harui" <aha...@adobe.com> wrote:

>How do you set a binary image to a <img> tag in HTML?
>
>Otherwise, my first reaction is that this sounds like a separate
>BitmapImage component.
>
>Thoughts?
>-Alex
>
>On 8/8/16, 6:06 AM, "Harbs" <harbs.li...@gmail.com> wrote:
>
>>I think it should be possible to specify a url source as a string.
>>
>>On Aug 8, 2016, at 3:37 PM, Christofer Dutz <christofer.d...@c-ware.de>
>>wrote:
>>
>>> How about a "source" property accepting source objects having UrlSource
>>>and BinarySource implementations?
>>> 
>>> Chris
>>> 
>>> 
>>> 
>>> Von meinem Samsung Galaxy Smartphone gesendet.
>>> 
>>> 
>>> -------- Ursprüngliche Nachricht --------
>>> Von: Harbs <harbs.li...@gmail.com>
>>> Datum: 08.08.16 12:55 (GMT+01:00)
>>> An: dev <dev@flex.apache.org>
>>> Betreff: FlexJS Image.source
>>> 
>>> I¹m implementing support for setting binary data to images.
>>> 
>>> Currently, Image (and ImageModel, etc.) has a source property and a
>>>urlChanged event.
>>> 
>>> I can do one of two things:
>>> 
>>> 1. I can change source to url and add a binary property. This would go
>>>along with a ³binaryChanged² event.
>>> 2. I can change source to untyped and allow setting (and getting) of
>>>either strings or BinaryData. I think the event name should be changed
>>>to ³sourceChanged².
>>> 
>>> I started implementing it the first way, but I wanted to hear if anyone
>>>has a compelling reason to do it the second way.
>>> 
>>> Harbs
>>
>

Reply via email to