I think it should be possible to specify a url source as a string.

On Aug 8, 2016, at 3:37 PM, Christofer Dutz <[email protected]> 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 <[email protected]>
> Datum: 08.08.16 12:55 (GMT+01:00)
> An: dev <[email protected]>
> 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