论坛交流
首页办公自动化| 网页制作| 平面设计| 动画制作| 数据库开发| 程序设计| 全部视频教程
应用视频: Windows | Word2007 | Excel2007 | PowerPoint2007 | Dreamweaver 8 | Fireworks 8 | Flash 8 | Photoshop cs | CorelDraw 12
编程视频: C语言视频教程 | HTML | Div+Css布局 | Javascript | Access数据库 | Asp | Sql Server数据库Asp.net  | Flash AS
当前位置 > 文字教程 > Flash教程
Tag:flash cs,flash 8,鼠绘,as,手绘,工具,文字,loading,入门,初学,mc,影片剪辑,声音,mtv,游戏,引导,遮罩,菜单,补间,广告条,时钟,视频教程

flex 以及本人为cctv做的

文章类别:Flash | 发表日期:2008-9-21 20:06:16

  本人为cctv做的,体验一下flash的力量吧, http://211.154.171.77/meet/host.html 没有密码,不过仅供参观两天。 在这个程序里请大家注重一下左边的导航菜单,该菜单支持内嵌组件,并且可以通过xml或是dataprovider动态定义, 我采用了一种名叫混合的设计模式,定义该组件的dataprovider是一种类似于二叉树一样的东西, 请看 ///以下的数据与舞台的实例无关组装list的唯一数据源
list_menu_dp0 = new DataProviderClass();
list_menu_dp0.addItem({label:"new", data:{label:"最新动态", icon_label:"arrow"}});
list_menu_dp0.addItem({label:"new_stuff", data:{label:"最新上网的人员", icon_label:"arrow", data:{label:"new_stuff", data:{obj_link:"new_stuffSymbol", height:210}}}});
list_menu_dp1 = new DataProviderClass();
list_menu_dp1.addItem({label:"quick_mode", data:{label:"快速浏览", icon_label:"arrow", data:{label:"quick_mode", data:{obj_link:"TFTreeSymbol", height:200, event_obj:global_event_obj, data_obj:"cctv.xml"}}}});
list_menu_dp1.addItem({label:"detail_mode", data:{label:"具体浏览", icon_label:"arrow", data:{label:"detail_mode", data:{obj_link:"TFTreeSymbol", height:200, event_obj:global_event_obj, data_obj:"cctv.xml"}}}});
list_menu_dp1.addItem({label:"top_ten", data:{label:"点击率前十名", icon_label:"arrow"}});
list_menu_dp1.addItem({label:"search", data:{label:"搜索人员", icon_label:"arrow", data:{label:"search"}}});
list_menu_dp2 = new DataProviderClass();
list_menu_dp2.addItem({label:"view_BBS", data:{label:"查看公告", icon_label:"arrow", data:{label:"ww1", data:{obj_link:"FCalendarSymbol", height:170, event_obj:global_event_obj, data_obj:list_menu_dp}}}});
list_menu_dp2.addItem({label:"publish_BBS", data:{label:"发布公告", icon_label:"arrow"}});
list_menu_dp3 = new DataProviderClass();
list_menu_dp3.addItem({label:"survey", data:{label:"在线调查", icon_label:"arrow", data:{label:"ww1", data:{obj_link:"TSimListBoxSymbol", height:300, event_obj:global_event_obj, data_obj:list_menu_dp}}}});
list_menu_dp3.addItem({label:"advise", data:{label:"提出您的建议", icon_label:"arrow"}});
list_menu_dp4 = new DataProviderClass();
list_menu_dp4.addItem({label:"manual", data:{label:"系统使用手册", icon_label:"arrow"}});
list_menu_dp4.addItem({label:"goal", data:{label:"系统设计目标", icon_label:"arrow"}});
menu_dp = new DataProviderClass();
menu_dp.addItem({label:"new", data:{iconLabel:"new", smallLabel:"最新消息及动态", bigLabel:"What''''s new ?", data:{label:"new", data:{obj_link:"TColListBoxSymbol", height:300, event_obj:global_event_obj, data_obj:list_menu_dp0}}}});
menu_dp.addItem({label:"stuff", data:{iconLabel:"stuff", smallLabel:"浏览查找摄像和导演", bigLabel:"Stuff Explore", data:{label:"stuff", data:{obj_link:"TColListBoxSymbol", height:300, event_obj:global_event_obj, data_obj:list_menu_dp1}}}});
menu_dp.addItem({label:"chat", data:{iconLabel:"chat_room", smallLabel:"交流发布信息", bigLabel:"Chat Room", data:{label:"chat_room", data:{obj_link:"TColListBoxSymbol", height:200, event_obj:global_event_obj, data_obj:list_menu_dp2}}}});
menu_dp.addItem({label:"survey", data:{iconLabel:"survey", smallLabel:"在线调查,意见反馈", bigLabel:"Online Survey", data:{label:"survey", data:{obj_link:"TSimListBoxSymbol", height:150, event_obj:global_event_obj, data_obj:list_menu_dp3}}}});
menu_dp.addItem({label:"help", data:{iconLabel:"help", smallLabel:"帮助", bigLabel:"Help", data:{label:"help", data:{obj_link:"TSimListBoxSymbol", height:150, event_obj:global_event_obj, data_obj:list_menu_dp4}}}});
menu_dp.addItem({label:"about", data:{iconLabel:"about", smallLabel:"关于", bigLabel:"About"}});
tree_dp = new DataProviderClass();
tree_dp.addItem({label:"item1", data:"data"});
tree_dp.addItem({label:"item1", data:"data"});
tree_dp.addItem({label:"item1", data:"data"});
tree_dp.addItem({label:"item1", data:"data"});
content_dp = new DataProviderClass();
content_dp.addItem({label:"BBSGrid", data:{obj_link:"FDataGridSymbol"}});
//content_dp.addItem({label:"miniGrid", data:{obj_link:"FDataGridSymbol"}});
content_dp.addItem({label:"miniGrid", data:{obj_link:"FDataGridSymbol"}});
content_dp.addItem({label:"newsPanel", data:{obj_link:"TDetailNewsSymbol"}});
content_dp.addItem({label:"miniPanel", data:{obj_link:"MC"}});
content_dp.addItem({label:"bigPanel", data:{obj_link:"FScrollPaneSymbol", height:477}});
content_detail_dp = new DataProviderClass();
content_detail_dp.addItem({label:"stuffDetail", data:{obj_link:"TDetail"}});
content_detail_dp.addItem({label:"BBSDetail", data:{obj_link:"TDetailBBSSymbol"}});
content_detail_dp.addItem({label:"newsTicker", data:{obj_link:"FTickerSymbol", event_obj:global_event_obj}});

有点类似于flex的感觉,即通过xml即可定义整个程序 另外,本人还在系报上专门发表了一篇关于通过xml以及组件的机制来动态生成应用程序,没想到两个月以后出了个flex 看来flex是大势所趋 详情请与sunnycn@263.net 联系
上一篇:{实例}齿轮转动的另一种制作方法 人气:1678
下一篇:{实例}新编A3的菜单 人气:1786
视频教程列表
文章教程搜索
 
Flash推荐教程
Flash热门教程
看全部视频教程
购买方式/价格
购买视频教程: 咨询客服
tel:15972130058