|
Flash初学者123个常见问题收集整理(15) http://bbs.flash8.net:8000/cgi-bin/topic_show.cgi?id=14205&h=1&bpg=1&age=-1
108。问:如何实现FLASH背景颜色的随机变换 (erik168) http://bbs.flash8.net:8000/cgi-bin/topic_show.cgi?id=16519&h=1&bpg=1&age=-1
109:问:Flash 5.0 Actions 一览! (djsgh) 答:http://bbs.flash8.net:8000/cgi-bin/topic_show.cgi?id=7607&h=1&bpg=1&age=-1
110。问:如何制作动作连贯的小黑人(拾荒) 答:http://bbs.flash8.net:8000/cgi-bin/topic_show.cgi?id=35539&h=1&bpg=1&age=-1
111。问:初学者如何人打好ACTION基础(小晶) 答:http://bbs.flash8.net:8000/cgi-bin/topic_show.cgi?id=15164&h=1&bpg=1&age=-1
112。问:如何实现画中画效果(木桫椤) 答:http://bbs.flash8.net:8000/cgi-bin/topic_show.cgi?id=7552&h=1&bpg=1&age=-1
113。问:FLASH如何与后台连接?[源码] 答:使用LoadVars()对象的sendAndLoad()方法来发送和接收数据
114。问:如何实现声音的暂停/播放效果? 答:在执行stop()命令时可以用sound对象的position属性取得当前声音文件的播放时间(毫秒),然后用start(time,loop)在当前位置播放即可。
115。问:如何定义二维数组? 答:下面定义一个20*20的二维数组,值全部为0 sarray = []; for (var i = 0; i<=19; i++) { sarray[ i] = []; for (var j = 0; j<=19; j++) { sarray[ i][j] = 0; } }
116。问:如何打开指定属性的窗口?[源码][/color]
答:先JS在HTML页面中定义函数,然后在FLASH中用getURL()调用 (turbine)
117。问:如何通过MC中的按钮跳转场景? 答:在要跳转的桢上加标签,通过标签跳转:gotoAndStop("yourlable") (turbine) 118。问:如何随机设置MC颜色? 答:MC实例名为"mc" mycolor=new Color("mc") mycolor.setRGB(random(0xffffff)) (turbine) 119。问:如何实现双击效果? 答:把下面的代码放到按钮上: on (press) { time = getTimer()-down_time; if (time<300) {
|