flash

Adobe record sound and save

心不动则不痛 提交于 2019-12-31 04:23:31
问题 In the following code i am trying to save the microphone contents to a file.The saved file doesn't play and Every time the file is saved i see that the size is only of 10 bytes only.What am i doing wrong in the code.Can someone please show me the correct code to save it .And the saved file should play the recorded contents accordingly. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library:/

Mod_rewriting a query string onto a swf file

强颜欢笑 提交于 2019-12-31 04:18:08
问题 I'm attempting to use mod_rewrite to clean up the URL's to a flash video player. First, here is the original URL that I'm trying to rewrite to: library/player.swf?path=path-to-file.flv The above URL works perfectly fine when I access it directly. I have coded the swf to automatically grab the path parameter and play the video. No problems there. Now here is my attempted rewrite rule: RewriteRule ^player/(.+)$ library/player.swf?path=$1 [QSA,L] When visiting the url player/path-to-file.flv, I

How do you define custom behaviours for the Android phone's volume buttons using Adobe AIR (ActionScript 3)?

╄→尐↘猪︶ㄣ 提交于 2019-12-31 04:12:12
问题 For buttons like the MENU or BACK button you can just add a listener for KeyboardEvent and check if the event keyCode is Keyboard.BACK or Keyboard.MENU. However I don't see anything for knowing if the phone's volume buttons were pressed. Is there a way to listen for volume up and volume down keyUp/keyDown events in AIR (ActionScript 3)? 回答1: Nope. There isn't any support for detecting the volume buttons. (In AIR 3, you can write a native extension to access native features that aren't

Flash doesn't connect to socket even though policy allows it

依然范特西╮ 提交于 2019-12-31 04:07:25
问题 In my Flash app, I'm connecting to my server like this: Security.loadPolicyFile("xmlsocket://example.com:12860"); socket = new Socket("example.com", 12869); socket.writeByte(...); ... socket.flush(); At port 12860 I'm running a socket policy server, which (according to this document) correctly serves up my policy like this: 00000000 3c 70 6f 6c 69 63 79 2d 66 69 6c 65 2d 72 65 71 <policy- file-req 00000010 75 65 73 74 2f 3e 00 uest/>. 00000000 3c 63 72 6f 73 73 2d 64 6f 6d 61 69 6e 2d 70 6f

Clipboard management with websites

一世执手 提交于 2019-12-31 03:30:29
问题 I would like to know how to put text into the clipboard like some popular websites are able to do. I have seen sites like www.photobucket.com and www.hulu.com somehow make copying to the clipboard automatic and cross browser. How can I do the same? I saw a cross browser way to do it using flash, but it won't work with the current version? 回答1: Take a look at this: http://ajaxian.com/archives/seeding-the-clipboard-in-flash10-with-zero-clipboard 回答2: One option is Clippy, "a very simple Flash

ComboBox Text Formatting through AS3

人盡茶涼 提交于 2019-12-31 01:11:09
问题 I am developing an AIR application and I need to change the font size of the text that is displayed in the dropDown List as well as the main text on the comboBox. My ComboBox is quite big in size but the text displayed in it is very small. I tried using the setStyle method by passing a TextFormat into it like : cmbEmployee.setStyle("textFormat", txtform); but it didn't work. Although the same method works well with a TextField. Can somebody help ? 回答1: A ComboBox is a container that contains

Accessing child/nested movie clips with JSFL AS3 CS5.5

元气小坏坏 提交于 2019-12-31 01:02:51
问题 How can I access a movie clip's children (specifically child movie clips) in jsfl? I am already at the instance level from flash.documents[0].timelines[0].layers[0].frames[0].elements[0].instance I've found this documentation but not much else. Thanks in advance. 回答1: The thing to remember in JSFL is that elements on stage are also items in the library, so it doesn't matter how many times you have something nested, it's still a clip in the library, and often that's the thing you want to work

Dynamic Object Initiation As3

人盡茶涼 提交于 2019-12-30 15:02:01
问题 I notice in older version of flash you can create an instance of a dynamic class. I am creating a game that will have many different classes that can be displayed on the stage but can very from time to time. How would I go about calling them dynamically. for example var newObject = new ["DynamicObject"](); ?? Is this possible in As3 ?? 回答1: I think there are 2 ways you can do that: 1.Using ApplicationDomain.getDefinition('DynamicTemplate') something like: var DynamicClass:Class = this

Passing data/variable from a Visual Basic form to a Flash Object

别等时光非礼了梦想. 提交于 2019-12-30 13:59:07
问题 I'm pretty sure that this can be answered somewhere here on stackOverflow but I'm out of options with this. I have a VisualBasic form with an button object on it. I would like that button to have an onClick procedure so that clicking it passes a variable or other command to another window which has a Shockwave Flash "movie" running. (For example, there is a function on the ActionScript of the Flash file to display some text in the Flash Video running when invoked.) What am I missing to make

Prompt request to enable flash on browsers

家住魔仙堡 提交于 2019-12-30 13:38:08
问题 I have a webpage that has an animated flash gallery on its homepage. By default, google chrome/firefox/safari ... does not let this page enable the flash plugin, so the gallery doesn't show. Not only this happens, but also there is no prompt from the webpage requesting the user to enable flash, and the gallery completely disappear when flash is not enabled, so there's not even an error message saying that you need to enable flash to see the gallery. What do I need to do on the page so that it