flex

can you give example for using php in flex application ?

How can wirte php script in flex application ? . at the same time this script can be asp.net,javascript ... ...

How do I save a flex application snapshot to a file with PHP and then display it in the browser?

I'm trying to save a snapshot of a component in my flex app that is then sent to a php script to be saved and then spit back out into the browser window. I can't seem to get this to work. Here's my FlashBuilder code: private function saveImage():void { var parameters:String = "snapshot=" + takeSnapshot(this); var variables:UR...

Why does FLEX LineChart render before HTTPService object request supplies data

Hello, I am having trouble binding a LineChart to XML data via HTTPService object. Here is my code: <mx:Panel xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:ui="flex.utils.ui.*" xmlns:charts="flex.utils.ui.charts.*" layout="vertical" horizontalAlign="center" verticalGap="2" paddingBottom="0" paddingTop="10" xmlns:...

Is it possible to embed Log4Fx LogPanel inside a Flex Application?

I've been investigating logging in Flex, and I really like what I see in Log4Fx. Their runtime log view in Eclipse is great -- and I've been able to add it to one of my views: <mx:Application layout="vertical" minHeight="600" minWidth="955" xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:view=...

AS3: Rotate a DisplayObject with the Mouse

I am basically trying to create a display object transformation manager which will allow me to scale/rotate objects. I am currently trying to figure out how to rotate an object so its corner follows the current x and y of the mouse. I always get confused on the math of things like this. I know how to listen for the events and everyt...

Can we build any application in Flash/ Flex/ Flex AIR so that it capture particular flash screen which is runnig on desktop?

Hi, Please tell me the possibility, Can we build any application in Flash/ Flex/ Flex AIR so that it capture particular flash screen which is running in a browser just like a print –screen? Suppose I have a flash running on my screen. The intention is to capture the current state of the flash and upload it like a photo. If, I want to s...

Sprite scaling children even though stage.scaleMode = "noScale" and stage.align = "TL"

I am creating an AIR nativeWindow. I am adding two children, an HTMLLoader and a Sprite. The child Sprite has two children, a TextField and a Sprite that will be used to draw. I have set stage.scaleMode = "noScale" and stage.align = "TL", which the HTMLLoader seems to respect. However, the child Sprite scales its children whenever I set ...

Problem using Maven to obtain Flash Builder 4 Libraries?

My question is related to this one, but is not exactly the same: http://stackoverflow.com/questions/828960/how-can-i-add-maven-dependencies-to-the-flex-build-path-in-flex-builder-3 Given that Maven will happily download all the correct version of all the swc's of the Flex SDK, it seems that I could point to those from the Library setti...

JSON Array in Flex

Hello! I have code: api_result = '{"response":[{"uid":1969258,"first_name":"Walle","last_name":"Woo"}]}'; var myobj:Object = JSON.decode(api_result); So, how I can get uid, first_name and last_name from "response" array? ...

Using Bulkloader to load several HTTPServices in FLex 4

Bulkloader (code.google.com/p/bulk-loader) typically loads different types of URL, Images, XML, etc. Is there a way to include Flex 4 HTTPService calls as loadItems. Or any other way of bulk loading with overall progress for multiple HttpService calls? Any help, suggestion or recommendation would be welcome. ...

Static layers missing when loading a flash generated swf using swf loader in AIR

We have a Flash game which need to be loaded and played from an AIR app. using the swf loader, the game swf is loaded into the AIR app. But the static background layers of the swf are not appearing in the loaded game. Those graphical elements which are generated via action script only are appearing. When we are playing it independentl...

Flex 4 ItemRenderer Question

I have a DataGroup with a Custom ItemRenderer. Within the itemrenderer, there are 2 states. normal and hovered. I have a <s:Group> within the itemrenderer that shows a bunch of data but i only want to be shown when hovered so I can do includeIn="hovered" which is good. the problem is the x,y position of this group needs to be outside th...

Flex 4 data management - how do I approach this?

Hi guys, quite an explanation here, hope someone has the patience to read it through I'm building an application in Flex 4 that handles an ordering system. I have a small mySql database and I've written a few services in php to handle the database. Basically the logic goes like this: I have tables for customers, products, productGroup...

flex: trouble resize and position SWFLoader

I have a complicated problem with a couple of SWFLoaders. I have an application that loads a swf with a SWFLoader. The loaded swf loads another swf (just a compiled fla). I am adding all my resize and position logic in my loaded swf and it works good on event resize, but when I'm trying to run the same code in my swfs applicationComplet...

in Flex, how to check if a component exists or not

In flex, How can I check if a component exists? ...

Filtering out all but a specific color of an image in Flex

Let's say I have an Image in Flex, and I want to filter it such that only the Green Pixels are visible... For example this image: Would show up on the screen as: How can I accomplish this in Actionscript/Flex? ...

How can I get a smooth text crawl using Flex?

I'm working on a standalone Flash application (written using Flex 3/ActionScript 3) that features a text crawl, like what you might see at the bottom of your TV when watching a cable news channel; it's a long narrow box that text moves across from right to left. I've implemented it by creating a Label element, populating it with text, a...

Regroup hierarchical data/rearrange tree control

I have advanceddatagrid with hierarchical data as input so that I can show tree table. Does anyone have an example of hot to rearrage and regroup tree? E.g. if my tree shows: item 1 -- childitem 1 -- childitem 2 -- childitem 3 item 2 -- childitem 1 -- childitem 2 I would like the result to be: childitem 1 -- item 1 -- item 2 childite...

Flex 4 preventDefault strange behaviour

Hi, Hope you can help me with this. In a Flex 4 app I have a List I use for navigation. When the user clicks on one item the application goes to the appropiate view. Now I want to do some validation before the user moves to the new view, so I wanted to prevent the item selection, make the validation and if it is OK change the selectedIt...

How to create Stacked ColumnCharts with different colors in Flex

Hi, I am trying to create a stacked column chart that will show three different values on a column with different colors. Please let me know how to achieve that. Thanks, AM ...