flash

Does MOUSE_WHEEL have a min delta value before it fires?

走远了吗. 提交于 2019-12-23 08:53:14
问题 I am having some trouble with MOUSE_WHEEL delta values. It seems like the event doesn't fire unless I REALLY spin the dammed wheel. Which makes sense because the only values I get range from 3-30. I was hoping to catch 1-3 as well because if I just spin a few notches, nothing triggers and the app feels sluggish. FYI every other program on my machine feels those 1-notch spins just fine so it's not the mouse. Will AS3 not fire if the delta is less than 3? Here is the code private function

Open .fla file without using Flash Authoring tool [closed]

房东的猫 提交于 2019-12-23 07:37:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I have a .fla file with some text that I want to get at. Is there a free app than you can use to open .fla files, or just a tool to dump strings and pics? 回答1: With such question, I just experiment... I went to deviantART, went to the Flash .FLA Files gallery and downloaded one at random. I got a .fla file of

Copy childs of one movieclip to another movieclip

送分小仙女□ 提交于 2019-12-23 06:12:38
问题 i have two movieclips container. MovieClip_1 MovieClip_2 now MovieClip_1 contains one child _child_1. now by pressing button i want to add that _child_1 of MovieClip_1 to MovieClip_2 without removing from MovieClip_1. i tried following code in button press event but it removes _child_1 from its past container. var mc:MovieClip = MovieClip(MovieClip_1.getChildAt(0)); MovieClip_2.addChild(mc); 回答1: It is not possible to add the same display object to two different parents. Trying to do so will

Copy childs of one movieclip to another movieclip

白昼怎懂夜的黑 提交于 2019-12-23 06:12:02
问题 i have two movieclips container. MovieClip_1 MovieClip_2 now MovieClip_1 contains one child _child_1. now by pressing button i want to add that _child_1 of MovieClip_1 to MovieClip_2 without removing from MovieClip_1. i tried following code in button press event but it removes _child_1 from its past container. var mc:MovieClip = MovieClip(MovieClip_1.getChildAt(0)); MovieClip_2.addChild(mc); 回答1: It is not possible to add the same display object to two different parents. Trying to do so will

swfloader: can I catch all the exceptions from the loaded swf?

佐手、 提交于 2019-12-23 06:02:14
问题 I am loading a swf into another swf using swfloader, I want to catch all the exceptions thrown by the inner swf, is it doable? 回答1: Here are some basics that may help. In short, you cannot use try/catch here. Errors in loading external content cannot be caught with try..catch..finally statements. Instead you have to create event handlers to handle and “catch” the error events. If you do not have an event listener assigned to an error event and that error occurs, the Flash player will inform

swfloader: can I catch all the exceptions from the loaded swf?

老子叫甜甜 提交于 2019-12-23 06:01:53
问题 I am loading a swf into another swf using swfloader, I want to catch all the exceptions thrown by the inner swf, is it doable? 回答1: Here are some basics that may help. In short, you cannot use try/catch here. Errors in loading external content cannot be caught with try..catch..finally statements. Instead you have to create event handlers to handle and “catch” the error events. If you do not have an event listener assigned to an error event and that error occurs, the Flash player will inform

best way to loop audio in the browser?

僤鯓⒐⒋嵵緔 提交于 2019-12-23 05:37:15
问题 I'm making a site that involves a lot of multi-tracked, audio loops. I'm wondering what the best way to implement these in (with javascript, etc)? should I use: -flash or some related flash library or -html5 audio or something else? it's very important that the audio loops be seamless what are some good libraries for this? In the past I've used soundmanager. The files will mostly be mp3s. 回答1: You can use the Web Audio API if you are content to sticking with WebKit browsers.. Here is some

Flex Timer example

老子叫甜甜 提交于 2019-12-23 05:33:05
问题 I am trying to use timer in flex. I referred to this example : Timer : blog.flexexamples.com. Here is what I want to achieve: I want to start the timer, showing minutes elapsed since timer started. It should be independent of the region you are in.( irrespective of whatever zone you are in, timer should work fine in every zone). Timer should continue, unless some button is clicked, where I want to show the time elapsed in minutes, in an Alert Box and then timer should start again from 0

Flex Timer example

孤街浪徒 提交于 2019-12-23 05:33:04
问题 I am trying to use timer in flex. I referred to this example : Timer : blog.flexexamples.com. Here is what I want to achieve: I want to start the timer, showing minutes elapsed since timer started. It should be independent of the region you are in.( irrespective of whatever zone you are in, timer should work fine in every zone). Timer should continue, unless some button is clicked, where I want to show the time elapsed in minutes, in an Alert Box and then timer should start again from 0

Flash AS3 KeyboardEvent not firing

喜欢而已 提交于 2019-12-23 05:31:27
问题 I have a class like this: public class GameOverScreen extends MovieClip { public function GameOverScreen(useMouseControl:Boolean) { if(useMouseControl){ Mouse.show(); restartButton.addEventListener(MouseEvent.CLICK, onClickRestart); } else{ this.addEventListener(KeyboardEvent.KEY_DOWN, onPushSpace); } } public function onClickRestart(mouseEvent:MouseEvent):void{ dispatchEvent(new NavigationEvent(NavigationEvent.RESTART)); } public function onPushSpace(keyboardEvent:KeyboardEvent):void{ trace