flash

Recording and saving sound from Flash AS3

倖福魔咒の 提交于 2020-01-16 18:46:10
问题 How can I record and save sound in flash AS3. I have writing access to the server and also access to PHP files. Any ideas? 回答1: As far as i know you have to stream the audio from the user to a Flash Media Server or Red5 server and save it there. This is one question i would love to find out i am wrong. 回答2: Record the data locally compress them to mp3 send the bytearray to the server to be saved 回答3: As of FP10 you can save files without the need for a server side. http://cookbooks.adobe.com

Recording and saving sound from Flash AS3

大憨熊 提交于 2020-01-16 18:45:28
问题 How can I record and save sound in flash AS3. I have writing access to the server and also access to PHP files. Any ideas? 回答1: As far as i know you have to stream the audio from the user to a Flash Media Server or Red5 server and save it there. This is one question i would love to find out i am wrong. 回答2: Record the data locally compress them to mp3 send the bytearray to the server to be saved 回答3: As of FP10 you can save files without the need for a server side. http://cookbooks.adobe.com

How to detect Event.MOUSE_LEAVE when wmode=opaque or wmode=transparent

感情迁移 提交于 2020-01-16 18:30:13
问题 I have a customized drag event that works great for most things: stage.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag ); function beginDrag( e:MouseEvent ) { stage.addEventListener( MouseEvent.MOUSE_MOVE, drag ); stage.addEventListener( MouseEvent.MOUSE_UP, endDrag ); stage.addEventListener( MouseEvent.DEACTIVATE, endDrag ); stage.addEventListener( Event.MOUSE_LEAVE, endDrag ); stage.addEventListener( Event.REMOVED_FROM_STAGE, stageEndDrag ); //trigger beginDrag event } function drag( e

How to detect Event.MOUSE_LEAVE when wmode=opaque or wmode=transparent

纵饮孤独 提交于 2020-01-16 18:30:08
问题 I have a customized drag event that works great for most things: stage.addEventListener( MouseEvent.MOUSE_DOWN, beginDrag ); function beginDrag( e:MouseEvent ) { stage.addEventListener( MouseEvent.MOUSE_MOVE, drag ); stage.addEventListener( MouseEvent.MOUSE_UP, endDrag ); stage.addEventListener( MouseEvent.DEACTIVATE, endDrag ); stage.addEventListener( Event.MOUSE_LEAVE, endDrag ); stage.addEventListener( Event.REMOVED_FROM_STAGE, stageEndDrag ); //trigger beginDrag event } function drag( e

Flash Accessibility, detect screen reader

风流意气都作罢 提交于 2020-01-16 18:21:29
问题 I'm working on making a SWF application accessible for visually impaired people who use JAWS or Windows Eyes. I installed both JAWS and Windows Eyes demo versions. When running my swf (locally) in a browser on a html page, Capabilities.hasAccessibility turns out true, but Accessibility.active turns out false, every time - even when checking it after a couple of seconds. Is it because I am using demo versions or am I just missing out on something like setting a parameter for SWFObject perhaps?

Flash Accessibility, detect screen reader

拜拜、爱过 提交于 2020-01-16 18:20:28
问题 I'm working on making a SWF application accessible for visually impaired people who use JAWS or Windows Eyes. I installed both JAWS and Windows Eyes demo versions. When running my swf (locally) in a browser on a html page, Capabilities.hasAccessibility turns out true, but Accessibility.active turns out false, every time - even when checking it after a couple of seconds. Is it because I am using demo versions or am I just missing out on something like setting a parameter for SWFObject perhaps?

Camera.setMode sets small resolution

。_饼干妹妹 提交于 2020-01-16 17:59:35
问题 I have a Lenovo tablet with Windows 8.1 with front and rear cameras. The rear camera is IMX175 and should supports 3280*2464 pixels. When I call setMode with those dimensions I never got them back (in Camera.width/height) but some lower numbers. In IE (11) I get 1280*960 In Chrome I get 1920*1440 I tried to change the frame rate to several options, set the stage.quality to StageQuality.BEST. Any help will be appreciated 回答1: There are several reasons between the cam-specifications, flash

Set the bgcolor attribute value

这一生的挚爱 提交于 2020-01-16 14:36:31
问题 The following doesn't work: <!DOCTYPE HTML> <title>Test</title> <embed id="foo" src="http://www.w3schools.com/media/bookmark.swf" width="400" height="40" type="application/x-shockwave-flash" /> <script type="text/javascript"> document.getElementById("foo").setAttribute("bgcolor", "#00FF00"); </script> But if you change setAttribute to ("width", "800") , it works with no problem! What am I missing? Any help is appreciated! Mike 回答1: document.getElementById("foo") .setAttribute("style",

actionscript3 calculator sound playing

会有一股神秘感。 提交于 2020-01-16 09:44:13
问题 I'm trying to make a math app using as3 in air for android. I have many frames with some stuff like stop(); QuestText.text = "0+2" Button1.LabelText.text = "6"; Button2.LabelText.text = "2"; Button3.LabelText.text = "0"; And I have some sounds: From 1.mp3 to 20.mp3 and plus.mp3 with minus.mp3 var DigitSound0:Sound = new Sound(); var DigitSound1:Sound = new Sound(); var DigitSound2:Sound = new Sound(); var DigitSound3:Sound = new Sound(); var DigitSound4:Sound = new Sound(); var DigitSound5

Rotation in flash causing image borders to look “pixely”, how to fix?

北城以北 提交于 2020-01-16 08:06:19
问题 I have a bitmap loaded in flash, for a 2D game. The bitmap represents a character and is rotating when the user uses the A (left) or D (right) keys. The problem I have is that the border of the image becomes ugly while rotating, you can see "pixels" (you can always see pixels, but I hope you understand what I mean). How can I fix this in actionscript 3, maybe change the rotation algorithm or "fix" the image after rotation? Or should I save/render the image differently in eg. Photoshop before