apache-flex

Building Flex projects in ant/nant

不问归期 提交于 2020-01-12 17:35:27
问题 We have a recurring problem at my company with build breaks in our Flex projects. The problem primarily occurs because the build that the developers do on their local machines is fundamentally different from the build that occurs on the build machine. The devs are building the projects using FlexBuilder/eclipse and the build machine is using the command line compilers. Inevitably, the {projectname}-config.xml and/or the batch file that runs the build get out of sync with the project files

How to inherit states with mxml?

倖福魔咒の 提交于 2020-01-12 14:33:51
问题 I have the following panel component called AdvancedPanel with controlBarContent: <!-- AdvancedPanel.mxml --> <s:Panel> <s:states> <s:State name="normal" /> <s:State name="edit" /> </s:states> <s:controlBarContent> <s:Button includeIn="edit" label="Show in edit" /> <s:Button label="Go to edit" click="{currentState='edit'}" /> </s:controlBarContent> </s:Panel> I created a second panel, called CustomAdvancedPanel based on the AdvancedPanel since I don't want to redeclare the controlBarContent <

What does the Flex [Bindable] tag do?

寵の児 提交于 2020-01-12 07:54:08
问题 Meaning . . . I've seen cases where I've bound components to a [Bindable] dataProvider. When I updated the data in the dataProvider, the component doesn't reflect the change immediately. Do I need to do something to refresh the data? What event causes a component to refresh its dataProvider data? 回答1: This is probably overkill, but if you are really interested in what happens under the hood when you add the [Bindable] tag, I strongly recommend checking out Michael Labriola's Diving in the

Relationship of Adobe AIR SDK and Flex SDK?

六月ゝ 毕业季﹏ 提交于 2020-01-12 06:53:13
问题 I'm trying to make sense of the whole mess of the Flash platform (mainly so I understand the terms being thrown around) and so far, I haven't been able to figure out how exactly the AIR and Flex SDKs are related. Without actually having looked at the SDKs, my understanding would have been that AIR enables you to develop Flash (i.e. ActionScript, and apparently also JavaScript/HTML) applications that can be run by the AIR runtime without the need of a browser (such as a pure desktop or

Multiple Inheritance in ActionScript 3

耗尽温柔 提交于 2020-01-12 03:36:29
问题 Multiple Inheritance in ActionScript 3? Is it possible? I have read somewhere that it is possible in as3. If yes then how? this is my Doucument Class A.as package { import flash.display.MovieClip; public class A extends MovieClip implements B { public var value1:Number=10; public function A() { trace("A Class Constructor"); } public function hit():void { trace(value1+' from hit'); } } } Another is interface B.as package { public interface B { trace(' interface '); function hit():void; } }

Asynchronous function call in Flex

萝らか妹 提交于 2020-01-12 01:37:59
问题 Is it possible to call a function asynchronously in Flex? I want to parse a file at regular intervals without blocking the rest of the application, what is the recommended approach for this? 回答1: Actionscript doesn't support multithreading, which I think is what you are really asking about here. While the functionality isn't inherent in actionscript (or Flex) you could set up a mock system using events and timers. I'm a little unclear on your exact question, so I'll give two answers: 1) You

How to add a “flat” message header to a flex web service call?

﹥>﹥吖頭↗ 提交于 2020-01-11 14:20:29
问题 I have a flex client connecting to a web service that needs an authentication token added as a header, named "Identity". An example of the expected message is: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <Identity xmlns="ns">2188dcbe-0325-4c1e-9a77-19110e0ea99f</Identity> <To s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">https://localhost:8001/MyService</To> <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com

Conditionally including Flex libraries (SWCs) in mxmlc/compc ant tasks

断了今生、忘了曾经 提交于 2020-01-11 10:52:31
问题 I have been struggling trying to figure out how to conditionally include Flex libraries in an ant build based on a property that is set on the command line. I have tried a number of approaches with the <condition/> task, but so far have not gotten it to work. Here is where I am currently. I have an init target that includes condition tasks like this: <condition property="automation.libs" value="automation.qtp"> <equals arg1="${automation}" arg2="qtp" casesensitive="false" trim="true"/> <

Security Sandbox Violation: Lack of Policy File Permissions

混江龙づ霸主 提交于 2020-01-11 09:35:09
问题 I'm using as3httpclientlib to post data to my web service, but I'm continually getting the following security violation. Does anyone know how to resolve this? My crossdomain.xml file is below the security violation notice. NOTE: I'm using apache to proxy requests to the web service, therefore the target url/port and the url/port serving the applet are the same -- i.e. http://192.168.100.101 . Also, the crossdomain.xml file is located in the root of the web app which serves the applet rather

implementing singleton class for Actionscript

一曲冷凌霜 提交于 2020-01-11 07:24:18
问题 I know actionscript does not allowed private contstructor at any time and But if i want to write a sinlgleton class in action script So how to implement it in actionscript. Can anyone provide an sample example of a singleton pattern in actionscript? 回答1: I use something like this: package singletons { [Bindable] public class MySingleton { private static var _instance:MySingleton; public function MySingleton(e:Enforcer) { if(e == null) { throw new Error("Hey! You can't do that! Call