频道直达 - 学院 - 下载 - 交易 - 特效 - 字库 - 手册 -排名-工具- 繁體
网页教学网站开发 设为首页
加入收藏
联系我们
建站搜索: 常用广告代码   用户注册 | 用户登陆
您当前的位置:中国建站之家 -> 网站开发工具应用教程 -> Flash教程 -> 不需要Flex也可以解析MXML文件

不需要Flex也可以解析MXML文件

作者:未知  来源:转载  发布时间:2005-8-10 20:13:07  发布人:acx

减小字体 增大字体


在客户端进行MXML解析.
This is a sample of client side MXML rendering. the engine loads the maine movie which contains the parser which loads the mxml file. I added an attribute ''assets'' to the application node which specifies a swf that contains all the components. This allows u to only add the components you need. On loading it will parse your xml (similar to mxml but different due to client side processing and anot having the same classes flex uses). Right now its proof of concept. Basically what it does is reads the node names of the XML nodes and instanciates the component or the non UI class. it transfers the attributes i.e styles/properties/setters after the component has loaded (it auto detects so if your component supports the v2 architecture i.e. inherits from UIComponent) and then loads the next... It doesnt support nesting cause i havent made the classes to emulate HBox, VBox, ScrollPane etc.. I''m trying to make it so that the engine doesnt know anything bout the components besdies them inheriting from UIComponent and support v2 architecture.... so these containers classes would need to be created or wrappers made for MM''s. No source available since it was a study to see how flex could be made on the client side and from what i see it is very, very, doable. The code i wrote supports the {rf} in attributes to evaluate the variable, supports events and defining AS in those events like ''click="a=3"'' for a button, supports arrays in arrtibutes like setSize="[20,40]" etc. Take a look at the XML to see what i''ve managed to make it do HERE Thanks to Enclosure for his amazing AS interpreter which makes interpreting of AS code in attributes and the script tag possible Sample Movie (XML is HERE)


http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' type='application/x-shockwave-flash' width=480 height=360>http://www.nuthing.com/mxml/MXML.swf

将本文收藏到QQ书签与更多好友分享
[打 印]
[] [返回上一页] [收 藏]
上一篇文章:Flash JSAPI 入门
∷相关文章评论∷    (评论内容只代表网友观点,与本站立场无关!) [更多评论...]
精彩推荐
热门文章
· 注册码大全二
· 注册码大全四
· 注册码大全一
· 要10G免费网络硬盘的请进..
· 通过google 赶快来赚美金..
· 注册码大全十
· 头像-qq头像(qq新头像)4..
· 让你轻松架设FTP服务器1..
· 注册码大全三
· 梦幻背景图片7
· 卡通动物图片6
· 网页制作素材-按钮素材2..
· 让你轻松架设FTP服务器5..
· 风景图片8
· 注册码大全九
· 让你轻松架设FTP服务器2..
关注此文读者还看过
· 用控件仅一条指令实现界..
· 网站banner欣赏全集(一..
· Photoshop打造超可爱Q版..
· flash中通过XMLSocket监..
· 用ASP实现对Web搜索引擎..
· Actionscript优化教程 高..
· 视觉识别的技巧方法
· 读取目录下的所有文件(..
· 用asp解析图片地址,并将..
· PHOTOSHOP快捷键[隐藏的..
· 对ASP脚本源代码进行加密..
· 互联网精英聚会沙龙温都..
· 声音处理---让你的声音变..
· Linux简明系统维护手册(..
· 在FLASH中创造角色的注意..
· “翻页”的做法
相关文章
· 在不支持FSO的服务器上使用..
· 在网页XHTML文件中引入CSS样..
· Java对象与XML文件之间相互..
· 制作网页时是先准备CSS文件..
· 超长文章内容如何进行分页并..
· 注意:HTML文件也能格式化硬..
· XMLTextReader和XmlDocumen..
· XMLTextReader和XmlDocumen..
· XMLTextReader和XmlDocumen..
· ASP生成WML文件源代码样本
· ASP生成静态Html文件技术杂..
· ASP生成静态Html文件技术杂..
· 实用HTML文件的增强标记
· 实用HTML文件的增强标记
· 如何用Asp动态生成xml文件
· 把HTML表单提交的数据转化成..
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 人才招聘
网站合作、内容监督、商务咨询:QQ: 9576619
Copyright ? 2005--2008 中国建站之家版权所有
粤ICP备05092265号