actionscript-3

Raw Camera Display on Air

房东的猫 提交于 2019-12-24 08:48:56
问题 We are trying to display Camera on a part of screen(raw camera). It shows a strange black and white display on Android device, but it works properly on emulator. What do you have any idea about how to solve this problem ? EDIT: "Tour de Mobile Flex" application in Camera->Raw Camera have same problem. 回答1: I set <renderMode>direct</renderMode> in app.xml. That configuration solve my problem. 回答2: Setting render mode to direct works for me as well (AIR 3.4 on Nexus S 4.1.2). If you don't want

Flex DataGrid row color spreads when scrolled up down

女生的网名这么多〃 提交于 2019-12-24 08:39:44
问题 I'm facing issue with datagrid row background color being spread when datagrid is vertically scrolled. I'm assuming this is happening because ItemRenderers are recycled. Here's my code : <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" minWidth="955" minHeight="600" > <mx:Script> <![CDATA[ import mx.events.FlexEvent; private var rendererFactory:ClassFactory; protected function btn_clickHandler(event:MouseEvent):void {

(as3) Sync data between 3 or more identical flash objects on the same page

放肆的年华 提交于 2019-12-24 08:29:12
问题 I have asked something similar before, but never go to the solution I need. So am starting a new stack to not confuse my issues, and to make a little clearer. What I need to do I have multiple flash objects on a html page, they are all identical, and all of them need to be sync'd with the correct time. In its current state, each one queries the timeserver, and gets the time, which works great. BUT what I want to achieve is the first one to load to be the only one that sync's with the time

Asynchronism in Action Script 3.0

ぐ巨炮叔叔 提交于 2019-12-24 08:29:02
问题 I wonder, how is asynchronism implemented in AS3? Lets take the Timer class. A timer runs asynchronously and dispatches some events. Seems like it creates a new thread for himself. And how are the functions, called when timer event occurs, being thread safe? How is thread safety implemented in AS3? 回答1: AS3 now supports multi threading using "ActionScript Workers" in the latest build. You can see how it is used here in this preview... http://www.bytearray.org/?p=4423 回答2: AS3 [used to be] not

Draw a Hand Signature in Flex 4

我的未来我决定 提交于 2019-12-24 08:22:12
问题 I am creating an application that requires a user to draw their hand signature on a tablet. Does anyone the best way to do this on Flex mobile 4.5? What do I draw on to, a Sprite, canvas? Also, I would need to save the signature as a .jpg, could this be done? 回答1: Have a look on the following: http://www.jamesward.com/2010/03/22/flex-paint-updated-to-flex-4/ It may give you some hints. 回答2: The BlackBerry-provided sample signature capture app ought to be a good starting point. 来源: https:/

Mannually connecting Flash Player (debug) to Flex/Flash Builder

眉间皱痕 提交于 2019-12-24 08:21:27
问题 Is it at all possible to connect the Flash Player debug version to the debugger in Flex Builder using source code? I'm running an app which has no right click menu, and I therefore can't right click and select connect to debugger. 回答1: I don't know if you can connect it from code, by this maybe helps you: If you want to run the Flex Builder with the Flash Player Debug you have first to get the Flash Player Debug then copy the Flash Player Debug into [Flex Install Directory]\Player\win , paste

How can we use Feathers UI for developing Web and Desktop Application?

自作多情 提交于 2019-12-24 08:19:11
问题 I found tutorials for developing Actionscript Mobile application using Feathers UI,Is it possible to do Actionscript web application and desktop application using Feathers UI? 回答1: Of course. "Light-weight, skinnable, and extensible UI controls for both mobile and desktop applications." Feathers is for use with the Starling 2D framework, so you will need to have an understanding of how to use that. Whilst Feathers seems perhaps more targeted at AIR Mobile deployment, it can still be used to

Adobe ASC 2.0 and ASDoc

 ̄綄美尐妖づ 提交于 2019-12-24 08:16:04
问题 After upgrading to the AIR 3.6 SDK which uses the new ASC 2.0 compiler all the ASDoc tasks in my Ant build files fail. I'm getting the error: BUILD FAILED E:\Projects\Eclipse\project\build\build_swc.xml:51: The following error occurred while executing this line: E:\Projects\Eclipse\projectbuild\build_swc.xml:209: Problem: failed to create task or type asdoc Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check

AS3: Weak Listener References Not Appropriate During Initialization?

不想你离开。 提交于 2019-12-24 08:13:08
问题 as i currently understand, if an event listener is added to an object with useWeakReference set to true, then it is eligible for garbage collection and will be removed if and when the garbage collection does a sweep. public function myCustomSpriteClass() //constructor { this.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownListener, false, 0, true); this.addEventListener(MouseEvent.MOUSE_UP, mouseUpListener, false, 0, true); } in this case, is it not appropriate to initialize an object with

Getting error Type 1061: Call to a possibly undefined method addEventListener through a reference with static type

眉间皱痕 提交于 2019-12-24 07:48:18
问题 I moved my code from my Application to a separate AS class file and now I'm getting the following errors: 1061: Call to a possibly undefined method addEventListener through a reference with static type Class. 1180: Call to a possibly undefined method addEventListener. . package managers { import flash.events.Event; import flash.events.EventDispatcher; public class RemoteManager extends EventDispatcher { public function RemoteManager() { } public static function init(clearCache:Boolean = false