设为首页 加入收藏 网站搜索 繁體中文 中国建站网 — 站长资源分享平台

使用XMLconnector组件连接xml文件

来源:136z.Com 作者:佚名 时间:2005-06-29 00:12:29

使用Flashmx2004 professional制作(loader组件、TextArea组件和XMLconnector组件的使用)


1、新建一Flash文档(有点废话)
2、预先写好的一个XML文件featuredbook.XML
代码如下:



Macromedia Dreamweaver MX 2004 with ASP, ColdFusion, and PHP : Training from the Source


Author: Jeffrey Bardzell


Synopsis
Developers of static Web sites who are familiar with HTML as well as Dreamweaver MX 2004''''s design and layout tools should find everything they need here to enter the world of object-oriented programming, servers and database connection.


From the Back Cover
As a designer himself, author Jeffrey Bardzell is keenly aware of the dilemma you''''re faced with today: With clients and users demanding more than the static, HTML pages that defined first-generation Web sites, you have no choice but to migrate to dynamic, service based sites. But that means a world of programming, servers, databases, and configuration options you know little about.

3、在第一层上拖进一个loader组件,设置实例名为cover_ldr, 设定宽为:90,高为100; 再拖进一个TextArea组件, 设置实例名为description_txt, 在“属性检查器”中设置如下: 按此在新窗口浏览图片
最后拖进一个XMLconnector组件,设置实例名为XMLcoon,在“属性检查器”中设置如下: 按此在新窗口浏览图片

4、打开“组件检查器”,选中XMLconnector组件, 在架构选项卡中,单击“从示例XML文件导入架构”选择featuredbook.XML文件。
5、选中绑定选项卡,单击+号添加绑定,如图,然后双击bound to的值列,选择loader组件,如图。同样再添加一个绑定给TextArea组件,绑定到内容字段,完成如图所示。 按此在新窗口浏览图片 按此在新窗口浏览图片 按此在新窗口浏览图片

5、打开“行为”面板,新建一个图层,选定第一帧,然后添加一个行为如图,选中XMLconnector组件实例XMLcoon,确定后返回。

按此在新窗口浏览图片

完成预览:

按此在新窗口浏览图片

点击浏览该文件

Tags:

  • 好的评价 如果您觉得好,就请您
      0%(0)
  • 差的评价 如果您觉得差,就请您
      0%(0)
  • 相关文章
    广告赞助

    文章随便看看 设计素材 建站学院 网页模板 视频教程

    网友评论

    共有 0 位网友发表了评论,得分 0 分,平均 0 分    查看完整评论

    用户名: 查看更多评论

    分 值:100分 85分 70分 55分 40分 25分 10分 1分

    内 容:

             通知管理员 验证码: