开发者

display mxml tag as text

i am new to flex,i want to disply mxml code as a text on mxml page(i dont want to evalute mxml tag it should be disp开发者_开发技巧lay as text only).something like shown in below link http://examples.adobe.com/flex2/inproduct/sdk/explorer/explorer.html

how can i do this?

thanks


You can always compile your project with the view source option enabled, and then your project code will be visible with out any additional fiddling.


Use a TextArea control and set its text property. If this text is properly indented, if will be shown as the example you refer to.

Note that you cannot just read the MXML code at runtime since it is compiled down to ActionScript code. You'll need to copy the code into a string.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜