--- In [email protected], EECOLOR <[EMAIL PROTECTED]> wrote:
> image. If thats the case you can do the following:
> 
> 1. Store the binary data from the xml in a BytesArray.
> 2. Use Loader.loadBytes() to make it an image.

hi greetz,

i've given that method a solid newbie try but i can't get the data
loaded into a ByteArray from the xml. i've tried 

// any legends in this?
thisLegend=XML(TreeListData(super.listData).item.legend);
if (thisLegend) {
        var loader:Loader=new Loader();
        var ba:ByteArray=new ByteArray();
        ba.writeObject([EMAIL PROTECTED]);
        loader.loadBytes(ba);
        addChild(loader.content);
}
but flex keeps throwing runtme "Error #2124: Loaded file is an unknown
type." errors.

any ideas?

thanks.







--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to