flash

Can all flash games be readily ported to adobe air for deployment on ios?

别说谁变了你拦得住时间么 提交于 2019-12-21 11:57:44
问题 Can all flash games be readily ported to adobe air for deployment on ios? For example, if I develop a 2D platform game in AS3, can I simply re-package that for deployment on iOS using Adobe AIR, without needing to modify the codebase? If possible, how do I do that? Just re-package using the AIR SDK's ADT tool? In my game, I use the mouse and keyboard to control the character... the hero follows the mouse cursor and left click fires... how will that translate to touch? I'm new to AIR and haven

TouchEvent.TOUCH_BEGIN, onTouchBegin Freezes after several Reloads

落花浮王杯 提交于 2019-12-21 11:56:21
问题 I am building an Adobe Air AS3 IOS and Android App, in which i have a movie clip in the center of the stage. When you start touching this movie clip, you can move it all around the stage. This is how i'm doing so : Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT; MC_M1.alpha = 1; MC_M1.addEventListener(Event.ENTER_FRAME, ifHitAct); MC_M1.addEventListener(TouchEvent.TOUCH_BEGIN, onTouchBegin); MC_M1.x = 0.516 * gameIntro.stageWidthToUse; MC_M1.y = 0.75 * gameIntro.stageHeightToUse; MC

AS3 ExternalInterface call using jquery

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 11:45:16
问题 I'm calling into a flash app embedded in a html page using the ExternalInterface. The following code works fine (I'm using a button to test): $(document).ready(function(){ $("#button").click(function(){ var app = document.getElementById('ApplicationID') console.debug(app) app.pageUnloading() }) }) So this calls into the flash app fine and prints: <embed id="ApplicationID" width="600" height="400" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go

Image Upload progress using URLLoader AS3

荒凉一梦 提交于 2019-12-21 09:33:55
问题 I am developing image uploader in Flash. I use FileReference.browse to browse image then resize this image to 1000 x 1000 px, if the image is very big and then upload to server. I want to show progressbar for the image upload progress. I am usinng URLLoader to send binary data of the resized images, but ProgressEvent on URLLoader doesn't work the way it is supposed to work. It is fired only after the image is completed uploaded instead of showing intermediate progress. ProgressEvent on

How to suppress Flash migration warnings (1090)

有些话、适合烂在心里 提交于 2019-12-21 09:22:12
问题 In Flash Professional CS4, I get "migration issue" warnings when I use mouse/keyboard input handler names such as onMouseDown, onKeyUp, etc., even though I have added event listeners for them. These names are perfectly legal for functions, but since these were automatically fired in ActionScript 2.0, we are now (albeit sensibly) warned that their use is no longer automatic in AS3. I understand the purpose of the warnings, but they aren't useful for me. I want to suppress these warnings, but

Send array from Flash (AS3) to JavaScript

蹲街弑〆低调 提交于 2019-12-21 09:22:11
问题 Is it possible to send an array from Flash (AS3) to JavaScript using an ExternalInterface call? I currently am calling a function multiple times from a 'for each' loop inside Flash but it goes too fast for the JavaScript to keep up. My idea is to create an array of the attributes, pass that to the JavaScript function and then to loop through that in the JavaScript. Thanks, Josh 回答1: Further to the suggestion of using JSON, this should be faster for small arrays and wouldn't require the use of

Face detection javascript/html5/flash [closed]

南笙酒味 提交于 2019-12-21 06:29:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . What is the best way for face detection in a web page ? Which is the most used one ,actually what i need is detect the faces ,capture one face. i have no experience about this . is there any js solution available ? whats ur suggestions and opinions ? Thank you. Friends : I am testing all your answers : i will

in flex, dynamically load Sound object from encoded bytes

雨燕双飞 提交于 2019-12-21 06:28:20
问题 I have a legacy file format that contains sounds embedded in it (in various encodings). I would like to be able to play these sounds in Flash (Air?) by reading the sound bytes out of the file and instantiating a Sound object with them. If the sound is unencoded (e.g., raw pcm), I've found that I can use the new flex 4 SampleDataEvent.SAMPLE_DATA event to play the sound. However, if the sound is encoded (e.g., mp3), then I'm at a loss. The sound expected by SampleDataEvent.SAMPLE_DATA has to

AS3 Components in Flash Designer

青春壹個敷衍的年華 提交于 2019-12-21 06:15:30
问题 In an ActionScript 2 project I can create a new MovieClip, right-click on it on the library and select "Component Definition" to add parameters that can be referenced inside the MovieClip. This parameters can be easily changed in the MovieClips's properties. Now, I'm working on an ActionScript 3 project but haven't been able to figure out a way to obtain the values passed in those parameters. I defined a parameter named "textToDisplay" but when I write the following in the Actions for the

Javascript to flash via ExternalInterface

…衆ロ難τιáo~ 提交于 2019-12-21 06:06:14
问题 I'm wondering if someone could look over my code. I'm trying to pass a dummy variable from javascript to actionscript 3 with the following code: HTML: <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="music_player" width="500" height="375" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"> <param name="movie" value="music_player.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#869ca7" /> <param name="allowScriptAccess"