从php送回的json数据中,是对象或者数组,用for each…in来遍历是最好的方法(最快)。 php对于array(‘a’=>1,’b'=>2)转换为json,发给flash,flash通过json类转换json为对象 object { ‘a’:1, ‘b’:2 }
VIEWED
- 你没有浏览过任何文章或者你没有开启cookies。
Posts Tagged ‘as’
各类电脑文档手册
Tagged: actionscript,as,chm,FLEA,FLEAPHP,HTML,html css,javascript,JS,mootools,php,中文,代码,手册,框架,电脑,语言 | Cat: 网络笔记 | 6 CommentsHTML手册: 文档下载:http://www.pconline.com.cn/pcedu/sj/famous/fif/0611/acc/fifdoc_html_flash.zip 在线文档:http://www.phpx.com/man/dhtmlcn/ JAVASCRIPT中文手册: 文档下载:http://www.94share.com/upload/javascript.chm 在线文档:http://www.itlearner.com/code/js_ref/contents.htm CSS2.0中文手册: 文档下载:http://www.w3cn.org/resource/down/2004/css20.chm 在线文档:http://www.chinaue.com/tool/css/ XML中文手册 文档下载:http://www.bookdown.com.cn/Download.asp?ID=1103 (迅雷下载) 在线文档:暂无 HTML DOM中文手册 文档下载:http://www.cainiao8.com/web/html_dom/htmldom.rar 在线文档:暂无 PHP 中文手册 文档下载:http://www.ugia.cn/manuals/other/php_manual_zh_20061105_.rar 在线文档:http://phpeye.com/phpmanual/index.html ACTIONSCRIPT 中文手册 文档下载:http://livedocs.adobe.com/flash/9.0_tw/ma...
昨晚思维极端混乱,两个多小时编了个FLASH计时器
Tagged: as,FLASH,timer,计时器 | Cat: flash | 15 Comments原来晚上工作,其效率是特别低的!!因为编写程序得时候人疲劳了也没感觉,很多东西会忽略,思维会错乱,下次不熬夜写了。 主要代码:
timer_mc.onEnterFrame=function(){ time++; if((1/30*time)%(timeout/60)==0){ second++; timer_mc.line_mc.duplicateMovieClip("n"+time,timer_mc.getNextHighestDepth()); timer_mc["n"+time]._rotation=time/(timeout/2)*6; } if(time==timeout*30){ time=0; delete timer_mc.onEnterFrame; _root.gotoAndStop(1); } }效果:http://xiebiji.com/works/media/timer.swf 源文件地址:http://xiebiji.com/works/media/timer.fla