flash-cs3

I need to ping to an network with flash or actionscript

好久不见. 提交于 2019-11-28 01:46:44
问题 I have created a network trouble shooting tool in flash. The design will have all the componenets on the screen. I have to ping to every component once in minute. I have finished the design part. Please someone help me how do i ping a webaddress or IP in flash. I need a sample code.. Im using Flash CS3 回答1: What do you mean by you have all the components on the screen and you have to ping every component once in a minute? If by ping you mean an app, what checks the time-response of a url,

How do I access a movieClip on the stage using as3 class?

空扰寡人 提交于 2019-11-27 18:49:14
问题 public class MyClass extends MovieClip { public function MyClass():void { my_mc.addEventListener(MouseEvent.CLICK, action); } private function action(e:MouseEvent):void { trace("cliked"); } } Timeline code var myClass:MyClass = new MyClass(); addChild(myClass); I can't able to access the my_mc (placed in FLA) movieclip. How do I access? 回答1: Try this: public class MyClass extends MovieClip { public function MyClass() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); }//

flash actionscript access filesystem without air?

蹲街弑〆低调 提交于 2019-11-26 17:18:50
问题 Is there any workaround to allow actionscript3 write to file system without adobe air? The reason is because, in order to use adobe air, each of the web visitors will need to install add-on air run-time and that is tedious. Most of the users will have flash plug-in and not Adobe Air. 回答1: This is possible in Flash 10. Take a look at the FileReference class, specifically the save method. There are certain limitations imposed for security's sake, of course. The write can only be initiated by