开发者

How to start working on as3yaml?

I am a newbie in yaml but I have to work on as3yaml which I don't have any knowledge on it.

I already 开发者_StackOverflow社区downloaded as3yaml and attached to my project which is Flex project and I already read about yaml syntax. But I don't have any ideas how can I start to work on it. I don't know how to new .yaml file with eclipse. I can't find any .yaml new file. For now I understand that I have to create .yaml file and have to write the function on Actionscript Class to encode/decode the .yaml file.

And I also need some get started websites which I can learn myself.

Pls help!


I've never used Yaml as well, however it seems pretty straightforward:

var yaml:YAML = new YAML();
var data:Object = YAML.decode(yourYamlString);

You should really try reading the docs. Also, I wouldn't recommend using YAML unless you really have to. If you can, use AMF (native, faster, parses directly into model) but if you want something a little more 'web standardized' you can use JSON with the as3core library to parse it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜