apache-flex

Performance testing Flex applications [closed]

浪尽此生 提交于 2019-12-17 19:25:05
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . What's the best method for performance testing Flex applications with a BlazeDS/Java severs backend. We're looking at JMeter but can it be used with the amf the protocol at a more sophisticated level where values in a request can be manipulated? 回答1: My Company (UBIK

Compiling mxml files with ant and flex sdk

允我心安 提交于 2019-12-17 19:24:50
问题 I am just getting started with flex and am using the SDK (not Flex Builder). I was wondering what's the best way to compile a mxml file from an ant build script. 回答1: The Flex SDK ships with a set of ant tasks. More info at: http://livedocs.adobe.com/flex/3/html/help.html?content=anttasks_1.html Here is an example of compiling Flex SWCs with ant: http://www.mikechambers.com/blog/2006/05/19/example-using-ant-with-compc-to-compile-swcs/ mike chambers 回答2: I would definitely go with the ant

What is Adobe Flex? Is it just Flash II?

主宰稳场 提交于 2019-12-17 15:05:54
问题 Question Alright, I'm confused by all the buzzwords and press release bingo going on. What is the relationship between flash and flex: Replace flash (not really compatible) Enhance flash The next version of flash but still basically compatible Separate technology altogether ??? If I'm starting out in Flash now, should I just skip to Flex? Follow up Ok, so what I'm hearing is that there's three different parts to the puzzle: Flash The graphical editor used to make "Flash Movies", ie it's an

Setting background color for datagrid row in Adobe Flex

吃可爱长大的小学妹 提交于 2019-12-17 14:53:47
问题 I need to programmatically change the background color for a single row in a datagrid in Flex. I've scoured the Net and found reference to "dg.setPropertiesAt," which is not a supported method (according to the compiler). Also, there are suggestions to extend the dg's "drawRowBackground" method but I need to set the background externally (not from logic inside the dg). Any and all suggestions welcome. TIA, Bob 回答1: You'll have to use an itemRenderer in order to accomplish this. See the

Setting background color for datagrid row in Adobe Flex

北战南征 提交于 2019-12-17 14:53:34
问题 I need to programmatically change the background color for a single row in a datagrid in Flex. I've scoured the Net and found reference to "dg.setPropertiesAt," which is not a supported method (according to the compiler). Also, there are suggestions to extend the dg's "drawRowBackground" method but I need to set the background externally (not from logic inside the dg). Any and all suggestions welcome. TIA, Bob 回答1: You'll have to use an itemRenderer in order to accomplish this. See the

Flex's FileReference.save() can only be called in a user event handler — how can I get around this?

非 Y 不嫁゛ 提交于 2019-12-17 10:59:22
问题 I need to call FileReference.save() after a web service call has completed, but this method has a restriction: "In Flash Player, you can only call this method successfully in response to a user event (for example, in an event handler for a mouse click or keypress event). Otherwise, calling this method results in Flash Player throwing an Error exception." (from the documentation here) This restriction is a bit vague. Does it mean that I can only call the FileReference.save() method from within

Can maven projects have multiple parents?

不打扰是莪最后的温柔 提交于 2019-12-17 10:34:09
问题 We have Java and Flex projects. We currently have 1 base pom that contains the configurations we want to use for both projects. Problem with this is: Flex projects inherit configuration, for example, for javadoc and pmd plugins, which is not desirable. I want to clean it up and have a real base pom, and then a java-base-pom and a flex-base-pom . But how does this work in a multi-module that has both a Flex part and a Java part? We have plugins to our own application where we use the following

Calling java from PHP exec

为君一笑 提交于 2019-12-17 09:45:53
问题 I am doing the following in PHP: exec('java -jar "/opt/flex3/lib/mxmlc.jar" +flexlib "/opt/flex3/frameworks" MyAS3App.as -default-size 360 280 -output MyAS3App.swf'); When I run this from the command line, it runs fine and finishes in a second or two. When I run this command from PHP exec, the java process takes 100% CPU and never returns. Any ideas? I have also tried running the above command with '/usr/bin/java -Djava.awt.headless=true'. I am running Mac OS X 10.5.5, MAMP 1.7, PHP 5.2.5 回答1

How to fix closure problem in ActionScript 3 (AS3)

给你一囗甜甜゛ 提交于 2019-12-17 09:21:32
问题 In the code below I'm trying to load some images and put them in the stage as soon as they get individually loaded. But it is bugged since only the last image is displayed. I suspect it's a closure problem. How can I fix it? Isn't the behaviour of closures in AS3 the same as in Java Script ? var imageList:Array = new Array(); imageList.push({'src':'image1.jpg'}); imageList.push({'src':'image2.jpg'}); var imagePanel:MovieClip = new MovieClip(); this.addChildAt(imagePanel, 0); for (var i in

How to fix closure problem in ActionScript 3 (AS3)

你说的曾经没有我的故事 提交于 2019-12-17 09:21:30
问题 In the code below I'm trying to load some images and put them in the stage as soon as they get individually loaded. But it is bugged since only the last image is displayed. I suspect it's a closure problem. How can I fix it? Isn't the behaviour of closures in AS3 the same as in Java Script ? var imageList:Array = new Array(); imageList.push({'src':'image1.jpg'}); imageList.push({'src':'image2.jpg'}); var imagePanel:MovieClip = new MovieClip(); this.addChildAt(imagePanel, 0); for (var i in