actionscript-3

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?

display and navigate a web page from a flex tab

烈酒焚心 提交于 2020-01-16 18:12:47
问题 i have a flex project that runs in using flash player 11. What i am trying to achive is to have a tab of my project which, when loaded displays a web page within the tab. I do not want to naviagate away from my project but display it within my tab layout. Is this possible? i have found plenty of info on how to do this using air but nothing with regards to my flex project not using air. thanks 回答1: No, this isn't directly possible. The HTML and StageWebView components would do the trick, but

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

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

Zooming in and out in AS3

故事扮演 提交于 2020-01-16 09:44:07
问题 I'm making a file where I need to be able to zoom in and out on an Image (Converted to a symbol and given an instance name) using the middle mouse scroller. I've written something similar to : image1.addEventListener(MouseEvent.MOUSE_WHEEL, function1){ image1 = image 1 +50; } so all the scrolling works to increase the image size, but what can I do to make it where if I scroll back the mouse wheel, it scrolls out of the image? From what I understand, there is no converse operation to MOUSE

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

Flash Builder: 1172 Definition Could not be found

試著忘記壹切 提交于 2020-01-16 07:54:32
问题 I have an actionscript project in Flash Builder and get 1172 errors on these lines: import flash.filesystem.File; import flash.filesystem.FileMode; import flash.filesystem.FileStream; i'm comming from flash where i have to set in the publish settings that i want to compile an AIR application. I can't find an equivalent in flash builder. 回答1: In Flash Builder 4, I don't think you can create an ActionScript only AIR Project using the project setup wizard. You'll have to create an ActionScript

SWC Instance name on movieclips?

佐手、 提交于 2020-01-16 01:03:59
问题 Is it possible to compile movieclips to swc with the instance name as property name? This happends when I add a dynamic text field, but i would like this also on some UI elements. 回答1: Tick the "Export for ActionScript" box in the symbol properties and give it a class name. That will make it show up in the swc. So if you have a Car clip containing a Driver clip you will need to check "Export for actionscript" on both these clips. If you then give the Driver clip an instance name it will show

How to get Flex SWFLoader unloadAndStop to unload sound also?

人走茶凉 提交于 2020-01-16 00:59:08
问题 public var swfLoader:SWFLoader = new SWFLoader(); [Embed(source="/some/file1.swf")] public var file1:Class; [Embed(source="/some/file2.swf")] public var file2:Class; then I do: swfLoader.load(file1); Later on: swfLoader.unloadAndStop(true); which unloads the video, but not the sound! So I add in SoundMixer.stopAll(); Which is ok, for a while. Later on, I do: swfLoader.load(file2); And eventually, while watching file2, file1's audio will start playing in the background over file2's audio, with