air

Listen for incoming connections in AS3 (AIR) Client whithout using Server Socket

左心房为你撑大大i 提交于 2019-12-21 16:57:49
问题 I managed to create a C# Server that sends files to AS3(AIR) Clients using sockets . On the AS3 side I'm using the flash.net.Socket library to receive the data through TCP . This is how it works: -> I turn on my server, and it listens for clients (plus I can create a list of connected devices); -> I turn on my client and it automatically receives the data; The trigger event to receive the data is made on the client, i.e., I simply turn the server ON and when the client turns ON, it gets the

How to use canvas.toDataURL() to get base64 of image in Adobe AIR?

我怕爱的太早我们不能终老 提交于 2019-12-21 14:06:13
问题 Is it possible to use canvas.toDataURL() in Adobe AIR? When I try I get the following error: Error: SECURITY_ERR: DOM Exception 18 回答1: Adobe AIR enforces same origin for images used in the canvas API. Once you've used something from another domain in your canvas, you can't get pixel data back out of it. However, you can make use of the Loader class to get the pixel data, and convert it into a canvas ImageData. For example: function getDataURL(url, callback) { var loader = new air.Loader();

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

Decompiling Adobe AIR applications

倖福魔咒の 提交于 2019-12-21 10:51:10
问题 Are there tools for decompiling Adobe AIR applications? I want to check how do they work on the apps I have made. 回答1: Here is what you are looking for ;) http://www.sothink.com/product/flashdecompiler/index.htm 回答2: Packaged AIR files (those with .air extension) are ZIP files. You can use any ZIP program to pull them apart. However, AIR apps can be written in Flash, Flex or HTML/JavaScript. If the app you want to look at is not the latter, you will need a Flash or Flex decompiler. 来源: https:

AIR App that Loads and Runs Existing AIR swf

好久不见. 提交于 2019-12-21 05:41:50
问题 I have an existing AIR app whose main content is App.swf. I would like to have another AIR app that hosts and runs App.swf. When I say run it, I mean displays it's WindowedApplication. Here's the code for the 2 AIR projects (imports are omitted for brevity): // App AIR Project -> App.mxml -> App.swf (it's just a window) <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> <![CDATA[ public function doSomething():void { trace(

Pause and resume download in flex?

孤者浪人 提交于 2019-12-21 05:38:18
问题 Is it possible in an air application to start a download, pause it and after that resume it? I want to download very big files (1-3Gb) and I need to be sure if the connection is interrupted, then the next time the user tries to download the file it's start from the last position. Any ideas and source code samples would be appreciated. 回答1: Yes, you would want to use the URLStream class (URLLoader doesn't support partial downloads) and the HTTP Range header. Note that there are some onerous

How can I use BitmapData.draw with NetStream.appendBytes?

只谈情不闲聊 提交于 2019-12-21 04:17:16
问题 I am using NetStream.appendBytes() to play a local video (no server involved) in Adobe AIR. I would like to use BitmapData.draw() to take a picture of the video output, but I am getting this error: Error #2123: Security sandbox violation: BitmapData.draw: cannot access null. No policy files granted access. Here is some sample code: package { import flash.display.Sprite; import flash.filesystem.File; import flash.filesystem.FileMode; import flash.filesystem.FileStream; import flash.media.Video

What's all this business about Flash, Flex, Adobe Air, Java FX and Silverlight?

半世苍凉 提交于 2019-12-21 04:11:25
问题 What's all this business about Flash, Flex, Adobe Air, Java FX and Silverlight? Why would I choose one over the other? and what happened to Java Applets and ActiveX controls? Oh, and where does AJAX fit in to all this? and is Laszlo relevant? Afteredit (in response to some "d'uh" type answers): the question is a bit tongue-in-cheek. I know about the various RIA technologies. I am, however, interested in the StackOverflow community's opinion about each - particularly why you would use one over

Play video from local file using Adobe AIR

别说谁变了你拦得住时间么 提交于 2019-12-20 11:33:11
问题 I'd like to play videos, as well as display images and possibly other flash content using adobe air, and reading from the local file system. I've been searching APIs and I have not yet been able to connect the dots. I know of flash.filesystem.File and flash.filesystem.FileStream and have experimented with loading and reading files. I believe I can load images this way but haven't tried. As for video: mx.controls.VideoDisplay - seems to accept a file:// URI for source, but I can't get it to