flex

Flex String to XML

I have a string in XML format and I want to use this string as flex XML type as following : This is my string : <Graph> <Node id="1" name="1" nodeColor="0x333333" nodeIcon="center" x="10" y="10" /> <Node id="2" name="2" nodeColor="0x333333" nodeIcon="center" x="10" y="10" /> <Node id="3" name="3" nodeColor="0x333333" nodeIcon=...

recommendation for html parser library in as3 for flex project

Hi, Can somebody recommend a simple html parsing library, written in as3 for a flex project? Thanks, Nava ...

Detecting alt keyDown keyboard event in Flex

I am trying to detect the key down event for the alt key in flex. I have a standard event listener for KeyboardEvent.KEY_DOWN and KeyboardEvent.KEY_UP but don't get any response for the alt key (or ctrl key). I know I can detect if the alt key was pressed via a mouse event, but I want to update the cursor when the alt key is pressed to ...

How to use temporary queues from BlazeDS (OR Spring-Flex)?

Is there a way to tie a BlazeDS Message Destination to a JMS Temporary queue? ...

How can I prevent an XSS vulnerability when using Flex and ASP.NET to save a file?

I've implemented a PDF generation function in my flex app using alivePDF, and I'm wondering if the process I've used to get the file to the user creates an XSS vulnerability. This is the process I'm currently using: Create the PDF in the flex application. Send the binary PDF file to the server using a POST, along with the filename to ...

Wrong getBounds() on LineScaleMode.NONE

I have write a simple example that adds a canvas and draw a rectangle with stroke size 20 scale mode none. The problem is that if I call getBounds() first time I will get a correct result but after I call scale(); the getBounds() function will give me a wrong result. It will take in cosideration the stroke but stroke has scalemode to ...

AS3 try/catch out of memory

Hi, I'm loading a few huge images on my flex/as3 app, but I can't manage to catch the error when the flash player runs out of memory. Here is the what I was thinking might work (I use ???? because i dont know what to catch): try{ images = new Array(frames); for (var i:uint = 0; i < frames; i++){ imagesBA[i] = new Bitm...

What's a good way of deserializing data into mock objects?

I'm writing a mock backend service for my flex application. Because I will likely need to add/edit/modify the mock data over time, I'd prefer not to generate the data in code like this: var mockData = new Array(); mockData.push(new Foo(1, "abc", "xyz")); mockData.push(new Foo(2, "def", "xyz")); ... Rather I'd like to store the data in...

Flex: Make columns aligned between 2 DataGrids?

I have 2 advanced data grids, one above the other. They both have the exact number of columns, and pertain to each other in the same way. But each is showing different data, which is why I split into 2 grids. However, on each one you can resize the columns, what I would like is to make it so that if you resize a column on either datagrid...

Flex renderer data inside a panel...

I have a page (below) that has a datagrid that lists "item"'s returned from an XML file (below) and when it loads it created a page in the viewstack for each item it finds (working) it also renders a page (below) inside each panel but i am having issues passing the data. Each page renders and loads but with the FIRST result of the XML da...

Using ExternalInterface.addCallback in AIR

We're building an Ajax AIR app but want to include a Flex component in it to display photos. Currently using Doug McCune's 'coverflow' but also looking at Sebastiaan Holtrop's 'sebCoverflow'. We're trying to communicate between JS and the Flex component but can only do this one-way (AS->JS) using ExternalInterface.call(). ExternalInte...

Flex/Flash Shoutcast player

I am trying to build a flash player for my company's Shoutcast server, and have seen a few articles about it on the 'net, including this SO question here. However, I can't seem to get the audio stream to actually play. It seems to be connecting alright, but calling stream.play() doesn't seem to do anything. I have tried the code i...

LoadRunner and XML Data with Flex 3

We have a Flex app that we are trying to test with Load Runner. The application runs just fine when run stand-alone in a browser. When the app initializes, an XML properties file is loaded. When trying to access the same application (using the same URL) with LoadRunner, a Fault occurs when trying to load the same properties file that ...

Avoiding escape sequence processing in ActionScript?

I need to mimic C# functionality of the @ symbol when it precedes a string. @"C:\A\File\Path" for example What is the best way to do this? Also there are some sites that will escape larger strings for you so that they survive the processing but I could not find one for Actionscript. Help? ...

Flex DataGrid Add New row via single click event

I am trying to implement the following functionality: Flex data grid has 1 default row created. When user clicks on the second row, a new row needs to be created and made editable. Here is what works already - user tabs over the columns and when the user tabs while in the last column, a new row is created with default values. Here is ...

Flex 3 scrollToIndex Help

Hello, I'm attempting to search a combobox based on text entered via a keyboard event. The search is working and the correct result is being selected but I can't seem to get the scrollToIndex to find the correct item which should be the found result (i). It's scrolling to the last letter entered which I believe is the default behavior o...

How to change the state in Adobe Flex, using ActionScript?

Hello, I`m really new to Flex and ActionScript so please be patient with me. I want to implement this script: tinyurl.com/yafqrqb ...that is doing this "magic" : tinyurl.com/y9qg32r ...but I want to tweak it a little on InfoWindowTabbedComponent. To be more precisely I`m trying to insert links in that tabs, and when you click one the ...

Flex 3: States : CreationPolicy = All

Hi i have a component with different states, when i assign some value in another state, i get a runtime error [null] How can i load all the states at once? using creationpolicy or anyther way? In TabNavigator, creationpolicy=all solves that problem, but how to solve this issue when there are many states? Thanks ...

Flex JSON: ignore certain properties?

Is there some library for flex, that will let me: define properties to fully exclude from serialization define classes to serialize without the property names (as if they were an array) thanks... ...

how do i pass the id of an image in flex

Hi, My application is going to have multiple images.. <mx:Image id="img1" source="@Embed(source='assets/mrute1.jpg')" mouseDown="mouseMoveHandler(event);"/> <mx:Image id="img2" source="@Embed(source='assets/mrute2.jpg')" mouseDown="mouseMoveHandler(event);"/> <mx:Image id="img3" source="@Embed(source='assets/mrute3.jp...