Skip to main content
February 17, 2011
Question

How to parse data

  • February 17, 2011
  • 2 replies
  • 537 views

I am making a basic graphics program in Flex 3 and I am wondering how to parse data into drawings on the stage, I know there is no full File IO support for AS3, only AIR, but I'm just trying to figure out how it would work.

This topic has been closed for replies.

2 replies

Inspiring
February 17, 2011

I think you might want to have a look at Adobes new interchange format, thats based on svg :

http://en.wikipedia.org/wiki/FXG

February 24, 2011
function(){return A.apply(null,[this].concat($A(arguments)))}

moccamaximum wrote:

I think you might want to have a look at Adobes new interchange format, thats based on svg :

http://en.wikipedia.org/wiki/FXG

This is an interesting idea, but I don't want to be reliant on a format that is created by Adobe. It would mean I would have to fit their specification rather than mine. An example of my format in XML:

<Document signature="Vector Graphics Format" minversion="0.98" version="1">

<Canvas width="200" height="200" AlphaEnabled="true">

<Layers>

<Layer name="Layer 1" order="0" colour="0xFFFFFF">

<Symbols>

</Symbols>

<Groups>

</Groups>

</Layer>

</Layers>

</Canvas>

</Document>

Actually, I have just read further about FXG. It seems it relates much more closely to what I seek to achieve. Thanks for replying.

Message was edited by: LukeTerry2010

February 17, 2011

I'm not too sure what you're looking for, but it sounds like XML would work for you.

February 24, 2011

Thanks! I found that XML was much easier to work with than binary format.