flex

Open source testing app for Flex app using AMF and BlazeDS

I am looking for an open source tool that measures response time as well as provide result status of a Flex application using AMF and BlazeDS. I am not very familiar with Flex technologies, but would like to capture this information from a calling Java method, if possible, for monitoring purposes. ...

Techniques for debugging Flex Framework errors

Every now and then I come across an exception being thrown by the Flex framework. Often from ListBase code that renders itemRenderers and such. I'm looking for techniques to use to figure out even which of my ListBase instances is even throwing the error. The difficulty arises when the top of the call stack originates in a callLaterDi...

AdvancedDataGridEvent - Why do certain properties of the event come back null?

Hi gang, Yet another woe with the AdvancedDataGrid - this time, with the AdvancedDataGridEvent. It seems that when listening to the ITEM_EDIT_END event, several of the event properties are returned null. I've been getting null for event.column, event.item, etc. Has anyone experienced this before? If so, did you find a way to resolve...

Multiple instances of views in PureMVC: Am I doing this right?

What I'm doing NOW: Often multiple instances of the view component would be used in multiple places in an application. Each time I do this, I register the same mediator with a different name. When a notification is dispatched, I attach the name of the mediator to the body of the notification, like so: var obj:Object = new Object(); ...

Spring security as applied to Flex AMF channels?

The Spring/BlazeDS documentation is not clear on what happens if you just put <flex:secured /> Within the <flex:message-broker> stanza. That is, do not put any of these in there: <flex:secured-channel channel="my-amf" /> What happens? Will all channels be secured by default? or no channels? Piggyback question: Even if you put i...

Flex: Error message about "well-formed" markup, even though XML is well-formed

I am reading attempting to load XML from a ByteArray as follows: var xmlString:String = myByteArray.readUTFBytes(numBytes); var myXML:XML = new XML(xmlString); When I do that, I receive the following runtime error on the XML constructor when I run in Flash Player 9: TypeError: Error #1088: The markup in the document following the roo...

How to get the available area on the screen

In my Flex application, the modules can be larger than the resolution of the screen and have a vertical scrollbar. When the user clicks somewhere, I popup a small component at the position of the mouse co-ordinates. However, if the user clicks too close to the edges of the screen, I need to prevent the component from appearing outside ...

How to specify more than 1 condition with && for a property in Flex

I need to specify more than one condition for visibilty visible="{data.allow && data.open}" However, this gives the error "The entity name must immediately follow the '&' in the entity reference." I could use a function, but I'd like to know if it is possible to do this directly with different syntax. ...

Coping swf resources with flex-mojos to the custom folder

How I can configure copy-flex-resources goal and swf dependencies to copy swf files to the custom folder in my web-app? By default it copies to the web-app root. More about copy-flex-resources goal here: https://docs.sonatype.org/display/FLEXMOJOS/Copy+Flex+Resources ...

Flex Chart Legend - how to get fine grained programmatic control?

I am looking to get access to individual legend items in actionscript (a Legend Item being the label and coloured block identifying a chart series). Does anyone know of a property of the Legend or Chart that gives access to all of the currently displayed LegendItems in a Legend? I know this is possible by using LegendMouseEvents, as the...

Avoid FocusOut event trigerred when apllication loses focus

Dear all, I have done an ovveride of the standard TextInput component In this component I have : addEventListener( FocusEvent.FOCUS_OUT, handleFocusOut ); My method is trigerred when the field loose focus for another field (nice) Problem : It is trigerred alose when the whole flex application lose focus (when my field has the curre...

Flex missing styles at runtime (getStyle returning null for indicatorSkin in formitem)

I have a slightly odd problem. I have a 2 flex applications that both use some RSLs. RSL1 declares a container that forms get shown in, and RSL2 defines a form that gets shown. App 1 is reasonably complicated, and works just fine - the form container from RSL1 can be instantiated, and the form from RSL2 can be shown inside it. App 2 i...

ActionScript Interfaces with custom namespaces

Hello! Is there any way to get interface to play along with custom namespace? Example follows. IHeaderRenderer.as: public interface IHeaderRenderer{ function set header(value:IHeader):void; function get header():IHeader; } HeaderRenderer.as import fi.test.internalNamespace; public class HeaderRenderer implements IHeaderRenderer{ ...

Dynamic/Real-Time Update using 2 different states in Flex project.

Hi All, I am trying to update a visual component giving some information in 1st state, while I make changes in the 2nd State...Question : Is it possible ? If yes, then is just data binding the solution? how ?! Clearer Description : State 1 : Has a form, in which I enter some data value for 3 boxes. State 2 : Has 3 boxes, who have t...

How to use automatic layout while retaining some control?

I have two panels and a button nested within an hbox. I want the panels to appear side-by-side and the button to appear under both panels equi-distant from the sides of the hbox (i.e. in the center). Getting the panels side-by-side was easy, but how do I get the button below both panels and in the center. Currently, the button show up ...

How to create trendline using adobe flex

I have a bubble chart where i need to draw a trendline on that showing the trend. I have Months on X axis and values (intergers or numerics) on y axis. I have gone through this link http://stackoverflow.com/questions/43224/how-do-i-calculate-a-trendline-for-a-graph , but i'm not able to understand what to use x-axis value and y- axis va...

Can I set an effect's duration as a percentage of its parent's?

When I'm building an composite animation, I'd like to specify the components as fractions of the parent, like so: <s:Sequence id="example" duration="2000"> <s:Fade alphaFrom="0" alphaTo="1" duration="10%"/> <!-- not legal --> <s:Scale scaleXTo="2" scaleYTo="2"/> <s:Fade alphaFrom="1" alphaTo="0" duration="10%"/> </s:Sequenc...

Best way for a Flash client to talk to a Java server through a full-duplex connection (chat or game)

My client is in Flash/Flex (game with chat) and it will be talking to a Java server. What is the best way (protocol / interface) for my Flash client to talk to my server? I heard about Flash Remoting MX, but it is a request / response mechanism. I could always request something and wait for asynchronous notifications from server. Then re...

How do I set a header on the request generated by FileReference?

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference.html How do I add my own request header to the POST requests generated by FileReference.upload()? ...

Export Grouped AdvancedDataGrid as CSV text

I'm trying to export an AdvancedDataGrid to CSV. This is easy enough for non-hierarchical data, but when using a HierarchicalCollectionView to show treed data it gets trickier. Any suggestions on how to access each of the cells just as they appear on screen when all of the nodes are expanded? ...