flash

Send keyboard and mouse events to Flash Movie

℡╲_俬逩灬. 提交于 2019-12-22 10:36:25
问题 I'm looking for a way to "inject" some events into a flash movie running on a browser. I know about ActionScript's ExternalInterface.addCallback function, however I'm trying to achieve this with any "random" flash from the web. Eg. send a "SPACE" keyboard event to a youtube video. 回答1: You can't do this to any random swf on any website because of security limitations. You need to have access to the DOM, which can only be done by Javascript Injections, unless you are the one with the swf

Avoid scroll-wheel hijack by embedded youtube / flash video

淺唱寂寞╮ 提交于 2019-12-22 10:25:41
问题 I am making some improvements on a web-site that has a youtube video embedded in its home-page. I have not added this code myself, but it looks like: <object width="380" height="307"> <param name="movie" value="http://www.youtube.com/v/DooLJvsH_BY&hl=en_US&fs=1&" /> </param> <param name="allowFullScreen" value="true" /> </param> <param name="allowscriptaccess" value="always" /> </param> <embed src="http://www.youtube.com/v/DooLJvsH_BY&hl=en_US&fs=1&" type="application/x-shockwave-flash"

Load xml file in flex before application start/initialises

余生颓废 提交于 2019-12-22 09:31:19
问题 I've got a configuration xml file that I need to parse for values before a flex application laods. I've created a static class that allows for the values in the xml config file to be retrieved. I'm initialising this class when the application first loads but as the xml file is loaded with a Loader class that loads a synchronously the class is being asked for values before the xml file is actually loaded - so it is throwing a error. Is there a way to load this xml file synchronously or can

How to find the ip address in as3?

徘徊边缘 提交于 2019-12-22 08:53:22
问题 Ii am trying to find the ip addres by using as3 in adobe Flash professional cs5. I don't how to do this. Is it possible to find the Ip address using as3? 回答1: No, it is not possible from AS3 without using any server side technology. You can use a loader and load something like http://whatismyip.org/ to get the IP. But without any server (i.e. from pure flash) it is not possible. 回答2: Setting Air 2.5 Target output in CS5 is the way of getting ip address. import flash.net.InterfaceAddress;

Extracting Actionscript from .fla file, without Adobe Flash

北战南征 提交于 2019-12-22 08:49:29
问题 Unlike this guy, I'm using MTASC's Haxe to compile SWF from AS. Considering I don't have Adobe CS, what are our options to extract the action scripts from any FLA file? I mean different versions, like CS4, CS5, etc. Converting older versions to CS5 would also help. 回答1: CS4 FLA container is Microsoft Structured Storage (like MS Word documents). You can open it with for example FAR Manager or OpenMCDF. Embedded AS3 code can be seen inside the objects in Unicode plaintext. You can open it with

Flash and Accessibility

前提是你 提交于 2019-12-22 08:35:08
问题 As a web developer, a number of the projects I work on fall under government umbrellas and hence are subject to 508 Accessibility laws, and sometimes W3C accessibility guidelines. To what extent can Flash be used while still meeting these requirements? For using javascript, the mantra is "Degrade gracefully" by providing the same content and function, just on different pages, or in a less interactive/dynamic way. This allows non-javascript browsers/users still use the site, as well as

Changing dyanmic text field in MovieClip added to stage by AS3 is not working?

与世无争的帅哥 提交于 2019-12-22 08:29:45
问题 When I change the text value of a dynamic text field, the text field is just going blank, not showing the new value. I have a MovieClip titled "game_board" that is added to the stage dyanmically by AS3. (stage is blank to begin with.) I have another MovieClip titled "stage_2" that is added as a child to "game_board" dynamically by AS3. "stage_2" contains a prebuilt board with different dynamic text fields on it. They all have instance names. For example "text_1". The original value of this

Remove icon gloss effect from an Adobe Air iOS app?

﹥>﹥吖頭↗ 提交于 2019-12-22 08:28:26
问题 How do you prevent iTunes from adding the default gloss effect when compiling an iOS app using Adobe Air? Using Adobe Flash CS6. . . . 回答1: Add the following to the InfoAdditions element in the application descriptor file: <InfoAdditions> <![CDATA[ <key>UIPrerenderedIcon</key> <true/> ]]> </InfoAdditions> from : http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d129907d2886-8000.html 回答2: This will require you to add a boolean UIPrerenderedIcon key to the app's info.plist file and

flash torch functionality not working through app-widget in nexus 5

天涯浪子 提交于 2019-12-22 08:11:33
问题 Flash is turning-on fine from application (added surface_view to the layout), when I try to turn-on flash through app-widget it's not working. I used Camera and SurfaceView Here is the code I am using Camera mCamera; SurfaceView preview; mCamera = Camera.open(); mCamera.setPreviewDisplay(preview.getCameraHolder()); Parameters params = mCamera.getParameters(); params.setFlashMode(Parameters.FLASH_MODE_TORCH); mCamera.setParameters(params); mCamera.startPreview(); Added permission and features

Draw cubic bezier curves in Actionscript?

爷,独闯天下 提交于 2019-12-22 08:05:26
问题 What's the best way to draw cubic bezier curves programmatically in AS3? The Graphics class only seems to support quadratic curves. :( I want to be able to do something like: var startPoint:Point = new Point(0, 0); var endPoint:Point = new Point(5, 5); var control1:Point = new Point(5, 0); var control2:Point = new Point(0, 5); var myBezier:Sprite = getBezier(startPoint, control1, control2, endPoint); For a performance target, I'm planning on having ~50 of these on the stage at once. 回答1: Note