apache-flex

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

Flex: parentDocument inconsistent between SDK version 4.1 and 4.5

雨燕双飞 提交于 2019-12-24 07:48:50
问题 I'm seeing some inconsistencies with parentDocument between Flex SDK 4.1 and 4.5. In a nutshell, existing code that works in 4.1 is broken in 4.5 (and 4.6). Here's a small example to demonstrate: TestProject.mxml <?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://ns.adobe.com/flex/mx" minWidth="500" minHeight="500" xmlns:local="*"> <local:SubComponent x="50" y="50"/> </s:Application>

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

Is there a fixed-point library for actionscript 3?

℡╲_俬逩灬. 提交于 2019-12-24 07:35:34
问题 I would like to code a calculator in Flex but can't find any fixed-point libraries on the web. For the calculator, I need more precision then IEEE 754 can guarantee. For example: trace(1.4 - .4); //should be 1 but it is 0.9999999999999999 Can someone suggest a good fixed-point library please ? Thank you in advance 回答1: It works but it is not perfect, all credits go to Josh from http://joshblog.net/2007/01/30/flash-floating-point-number-errors/ /** * Corrects errors caused by floating point

flex mobile : textInput does not clear prompt on focus

浪尽此生 提交于 2019-12-24 07:35:12
问题 a simple <s:TextInput x="163" y="117" prompt="hello"/> Does not clear the prompt on focus, but clears the prompt when user first type in a letter. This is the behaviour on flex mobile (behaviour is OK on swf ) Is that a bug and how to correct that ? regards 回答1: There May be an-other way to get rid of that, but my approach is that you may add a focusIn event and do some thing like : <s:TextInput id="textInput" x="10" y="24" prompt="Enter SomeThing" focusIn="textinput1_focusInHandler(event)"/>

.Net/Flex: How to read partial results from URLRequest?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 07:29:46
问题 I'm working on a batch process script that's executed from Flex. The batch script is in a .aspx Page and returns partial results through the following class: public class ResponseLogger { private HttpResponse _response; public ResponseLogger(HttpResponse response) { this._response = response; } public void Start() { _response.Clear(); _response.ContentType = "text/plain"; _response.ContentEncoding = System.Text.Encoding.GetEncoding("ISO-8859-1"); } public void End() { _response.End(); }

Flex app cannot download images from other servers

牧云@^-^@ 提交于 2019-12-24 07:15:35
问题 in my flex application: <mx:Image id="imgItem" source="http://notMySyte.com/1.jpg"/> when i run my app, I catch this error: SecurityError: Error #2123: Security sandbox violation: Loader.content: http://mySite.com/2/BusFlex/BusProducts.swf/[[DYNAMIC]]/2 cannot access http://cs9621.notMySite.com/u7397474/c_b51d9fe6.jpg. A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::Loader/get content() at mx.controls::SWFLoader/get content()

How to open and Write specified file in flex web app?

别说谁变了你拦得住时间么 提交于 2019-12-24 07:15:27
问题 In webApp. I want to create file in users desktop with some name and I want to write into it How to do this? is it possible using File reference? Filereference.save() method i tried but it opens dialog box for saving, but i want file to be save in given path without opening dialog box. 回答1: From a browser based Flash app; you cannot save a file to the users machine in Flex without user input. FileREference.save() is the correct approach, but as you discovered it opens a dialog box for user

Flex: Modify an embedded icon and use it in a button?

半城伤御伤魂 提交于 2019-12-24 07:07:09
问题 Just that, if you embed an icon: [Embed(source='icons/checkmark.png')] private static var CheckMark:Class; You end up with a dynamic class. You can pretty easily assign the icon to a button at runtime by calling the setStyle method: var btn:Button = new Button(); btn.setStyle("icon", CheckMark); But what if you wanted to alter the icon at runtime, like changing it's alpha value or even redrawing pixels, before assigning it to the button? So far I can't find a satisfactory answer... 回答1: This