flash-cs3

How do I amplify sounds by a specified number of decibels in AS3?

谁说我不能喝 提交于 2019-12-10 11:04:20
问题 A few days ago, this was my question, and I found the answer. Maybe this will help someone else. A. The first part of the problem: can you amplify sound using Flash? The AS3 documentation for SoundTransform says this about the volume attribute: "The volume, ranging from 0 (silent) to 1 (full volume). At face value, this means you can only make sounds quieter. In fact, if you supply a value greater than one (1.0), sounds will be amplified. You risk saturating the sound and getting poor quality

Flash CS3 + AS 3.0 Mute and unmute stage volume

走远了吗. 提交于 2019-12-10 09:23:24
问题 Can someone please help quickly mute or unmute the stage volume in Flash CS3 using AS 3.0. Thanks 回答1: What you want is the SoundMixer class. Just set it's soundTransform object like this: Mute: SoundMixer.soundTransform = new SoundTransform(0); Unmute: SoundMixer.soundTransform = new SoundTransform(1); 回答2: Put this line into your script when you want to stop the sound: SoundMixer.stopAll(); 来源: https://stackoverflow.com/questions/1362379/flash-cs3-as-3-0-mute-and-unmute-stage-volume

What is the use of void in AS3

£可爱£侵袭症+ 提交于 2019-12-08 09:06:37
问题 What is the use of void in Action Script 3.0? Can any one give brief explanation with example? 回答1: It's a function type. It means that it doesn't return any data By default Flash always expect to return a value. If you write a function like this for example: ActionScript Code: function myFunction(){ } Flash assumes that returning a value is still possible and so watch for it which uses ressources. When you specify :void you are actually telling Flash to not expect any return value so Flash

How do I amplify sounds by a specified number of decibels in AS3?

徘徊边缘 提交于 2019-12-06 08:16:01
A few days ago, this was my question, and I found the answer. Maybe this will help someone else. A. The first part of the problem: can you amplify sound using Flash? The AS3 documentation for SoundTransform says this about the volume attribute: "The volume, ranging from 0 (silent) to 1 (full volume). At face value, this means you can only make sounds quieter. In fact, if you supply a value greater than one (1.0), sounds will be amplified. You risk saturating the sound and getting poor quality, but you can do it, and for voice, you can get away with a lot. (Music is less forgiving, so

Flash CS3 + AS 3.0 Mute and unmute stage volume

我的未来我决定 提交于 2019-12-05 12:29:52
Can someone please help quickly mute or unmute the stage volume in Flash CS3 using AS 3.0. Thanks What you want is the SoundMixer class. Just set it's soundTransform object like this: Mute: SoundMixer.soundTransform = new SoundTransform(0); Unmute: SoundMixer.soundTransform = new SoundTransform(1); Tareq Rahman Put this line into your script when you want to stop the sound: SoundMixer.stopAll(); 来源: https://stackoverflow.com/questions/1362379/flash-cs3-as-3-0-mute-and-unmute-stage-volume

Actionscript problem in Dynamic TextField

落花浮王杯 提交于 2019-12-01 14:03:44
Is possible to make a word as button within the dynamic textField in flash as3? http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00000552.html http://circlecube.com/2008/12/asfunction-texteventlink-tutorial-for-as3-flash-html-link-to-call-actionscript-function-tutorial/ This will helps u. Actually contrary to the other answers for this question, you can(kind of). By using an image tag in a string value for a Textfield object's htmlText property you can use a display object in the library as its source. Then you can use the Textfield object's getImageReference() method to get the

Actionscript problem in Dynamic TextField

跟風遠走 提交于 2019-12-01 12:47:22
问题 Is possible to make a word as button within the dynamic textField in flash as3? 回答1: http://help.adobe.com/en_US/AS2LCR/Flash_10.0/help.html?content=00000552.html http://circlecube.com/2008/12/asfunction-texteventlink-tutorial-for-as3-flash-html-link-to-call-actionscript-function-tutorial/ This will helps u. 回答2: Actually contrary to the other answers for this question, you can(kind of). By using an image tag in a string value for a Textfield object's htmlText property you can use a display

I need to ping to an network with flash or actionscript

十年热恋 提交于 2019-11-29 07:54:26
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 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, then you can try to play with this code: var ldr:URLLoader = new URLLoader(); ldr.addEventListener

Passing a variable between frames with actionscript 3

淺唱寂寞╮ 提交于 2019-11-29 07:48:42
I am new to actionscript 3.0 and I'm experiencing difficulty trying to pass a variable that is created and set in frame 1 to a dynamic text box that is added to the stage in frame 4. on frame 1 the variable is set from information entered by the user: var input_dia = ""; input_dia = pdia_input.text; and should be displayed in a dynamic text box on frame 4: dia_alert.text=input_dia; I'm receiving the following error: 1120: Access of undefined property input_dia. You have to imagine - the different scenes are a lot like separate movies and flash has trouble sharing between them. The correct way

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

十年热恋 提交于 2019-11-29 05:08:39
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? Try this: public class MyClass extends MovieClip { public function MyClass() { if (stage) init(); else addEventListener(Event.ADDED_TO_STAGE, init); }// end function private function init(e:Event = null):void { removeEventListener(Event.ADDED_TO_STAGE, init);