flex

Eclipse/Flex WTP Project Stops Working within Eclipse

I have a Flex/WTP project within Eclipse that was running within Eclipse for a short time but then all of a sudden stopped working. Specifically, it was complaining about not being able to find a Java class on the server-side. I have not made any configuration or path changes to the project. The specific error is: [FaultEvent fault...

difficult syncronization problem with FLEX commands (in cairngorm)

My problem, simplified: I have a dataGrid with a dataProvider "documents" A column of the datagrid has a labelFunction that gets the project_id field of the document, and returns the project name, from a bindable variable "projects" Now, I dispatch the events to download from the server the documents and the projects, but If the documen...

FLEX Cairngorm commands... odd behaviour

while trying to solve my problems in serializing the execution of cairngorm commands, I tried to bypass completely the event dispatching and simply instantiated the command I wanted to execute, then called it's execute method. In this method there's a call to a delegate that calls ServiceUtils that performs the HTTPService.send thing... ...

AS3: Whats determines the order of: for..in

OK I am looping through the properties in an object like so: private var _propsList:Object = {'Type':'product_type' ,'Kind':'product_type_sub' ,'Stone':'primary_stone' ,'Stone Color':'primary_stone_sub' ,'Metal':'metal_type' ...

customizing flex MenuBar or removing the hover effect

Is there a way to disable the hover effects? I don't want flex to highlight the entire component for both link buttons and menu bar. On the menubar, I applied a backgroundSkin, so having flex highlight the whole menubar when the user hovers their mouse on top quitely destroys the design. ...

Approaches / libraries for resize dragging

I'm currently working on a WYSISYG editor that allows the user to move, resize and rotate shapes by directly manipulating them. The resizing seems to be fairly complex when the shape is rotated. I got this working for non-rotated shapes, but it will take some trigonometric calculations to resize shapes that are rotated. The registration ...

Flex - How to count colors in .SWF vector file

Suppose I've converted a vector image file (.AI/.SVG) to .SWF for ease of importing dynamically as the source of an Image in Flex. To count colors now, I have to create a "new BitMap", then ".draw()" and iterate over all pixels and use ".getPixel()" to retrieve the color. Unfortunately, because of anti-aliasing, this seems to return se...

Styles that are not found in Flex documentation

Hello all, today I wanted to change the border color of TextInput when user has a focus on it. I could not find any style that would allow me to change that. A little bit of Google searching and I found answer to be themeColor. Why is it that there are some styles that work and which are not even mentioned in the Flex documentation? (...

Accessing root node of XML in Flex

I'm having trouble accessing the value of the root node of an XML variable in flex. For example: var X:XML= <Message Type="abc"> Content123 </Message> I can change the "Type" attribute above with X.@Type="xyz"; But how do I change "Content123" to something else? If the xml document were longer/deeper, I could say something ...

Send ByteArray to JavaScript

How to send a jpg image as ByteArray from as3 to javescript? And how to convert ByteArray to image in javascript? ...

flex 4 status ( use as beta? )

Hi All My company is considering upgrading to flex 4 ( mainly to use the richtextlayout ) I would like to know from your experiance what is the status of the product ( how far is it from official release ) and do you recomend using it now or wait till its complete its beta stage Thanks ...

How do I prevent RemoteObject from batching AMF messages together?

I am using Google AppEngine, in conjunction with PyAMF to provide RemoteObject support. In my Flex code I make several RemoteObject method calls at once which tends to batch the AMF Messages into a single HTTP request. Most of the time this is fine but AppEngine applies some strict per request limits (in this case I am hitting a Deadlin...

Updating an ASP.NET iFrame without a page refresh using Actionscript 3

I would like to have a FLEX SWF Menu in .NET that is animated, and use button clicks to update an iFrame in an .NET 2.0 Ajax enabled application without a page update or refresh. If I use URLVaribles in Flex, The only way I've gotten to them to ASP.NET is via URL Page Navigation which always refreshes the screen. There is a LOADVARS fun...

How can I Force flex apps to load on a local domain?

I have a situation where I need my swf to load from a domain. Currently my flex set up always loads a SWF from file//... I would prefer the domain to be local.somedomain.com Does anyone know how to do this? ...

flex 3 passing data from modules to parent application to switch views in the viewstack

Hello Fellow stackoverflowers, I´m stuck writing a piece of code. I have application with a viewstack witch load 5 modules. each module is loaded via the moduleLoader tag and they all have an id. Every loaded module has a context menu. the context menu has 5 menuItems. one menuItem for each view for the viewstack. The context menu is ...

Flex : Problem with instantiating an mxml component

I have two mxml files in a flex project: But when I trace a.cBtn, it is null. Why should it be? test.mxml : <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="runIt()"> <mx:Script> <![CDATA[ public function runIt():void { var a:abc = new abc(); ...

while build my Flex project through Ant i got error that "not enough memory "

while build my Flex project through Ant i got error that "not enough memory " so how could i resolve this ? ...

How to Decrypt data in Flex using RSA?

Hi, I have encrypted my data using RSA in Asp.net. Now i need to use the data in flex by decrypting it. Could any one guide me how to decrypt the data in Flex which was encrypted in .Net using RSA. Thanks in Advance. ...

Bubbling events within custom components in Flex

I am using a custom component within another custom component in a flex mxml application file.Is it possible to bubble events from an inner component to the outer component and handle events in the outer component? ...

HTTPService AsyncToken and AsyncResponder example

Where can I find an example of Flex application which implements an HTTPService asynchronously called by an AsyncToken and an AsyncResponder? Thanks in advance the httpservice send a string like this with a certain frequency: row#column#number#row#column#number#row#column#number#.... EDITED CODE: <?xml version="1.0" encoding="utf-8"?...