flex

How to save locally user data in AS3, and then read it/export it?

Hey there, i was wondering what the AS3 experts would do to perform this task: save user data (registry form) locally, and then be able to read it or export it into something client can read. Thanks in advance, i am quite new to the AS3 approach to this things, thing to notice is this project is pure AS3, and deployed in Adobe AIR, so n...

Differences Between Flex SDK and Flash Builder

Can Anyone tell me the differences between Flex SDK and Flash Builder ?? Like - "Mobile development using Adobe Flex SDK "Hero" and Flash Builder "Burrito" Are Both same ?? Please clarify in details. We understand that Flex is an IDE or SDK(software development kit ) where we build,compile and deploy projects with sets of components a...

LCDS / Spring integration for Assemblers

I have a Flex / Spring / LCDS project, and I'm trying to use the Spring/Flex integration module. It works fine for exposing simple destinations & messaging end-points, however I'm unsure how to configure to use Assemblers. The vanilla, no-Spring-integration-way involves declaring a destination such as: <destination id="book.service"> ...

AS3/Flex 4: Most Practical Way To Find Nested Children

Hey guys, I'm sort of jumping in headfirst to some Flex/AIR stuff. I have a pretty solid background with AS3, but given the inherent hierarchal complexity of Flex (compared to regular Flash), I'm running into an issue. Let's assume that you have an app where pretty much everything is event driven (common). Accessing elements in the n...

Flex 4 skin in FXG or image which is more efficient?

I need to display the skin as a piano keys which has up and down state. Compare to a commercial grade music player like NI Kontakt, it doesn't consume over 10% (around 3-5% to be exact) of my CPU when playback a song or I abuse by press the keys repetitively as fast as I can. However, I see my Flex app will use over 10% which is double ...

For Loop Variables declration

How to initialize and make condition for 2 variables in single for loop in Flex let keep i and j are two variables ...

Can you bind an ArrayCollection with custom class objects to a Tree?

I made a class Person.as with a few variables. Then I made an ArrayCollection and did addItem(person1); addItem(person2); and binded this arraycollection to my tree with dataProvider="{oadp_tree}". Now it doesn't show up in my Tree.. While I made an example with dummy data in MXML and it does show up in my tree (MXML example uses . Do I...

adding crossdomain.xml to tomcat 6.0.24 to access webservices with Flex

I have to deploy a webapp on Tomcat 6.0.24, serving some webservices that should be accessed with REST-style methods (not fully REST, since the used flex class HTTPService can just send GET and POST). The webservices are deployed at http://localhost:8080/-webappname-/rest/-methodname- The problem is that the policy of flex sandbox (i ...

passing values from 2 flex movies

I have a flex compiled swf module inside my flex program I just need to pass it some values like I do it when I use chat.swf?username=john : that works ! I tried it with flex swfLoader and Image SWFLoader source="../bin-debug/chat.swf?username=john" Image source="../bin-debug/chat.swf?username=john" This does not work: these values a...

xOr'ing Two Images Together Using Actionscript 3.0/Flex

Isn't there some way to combine two images together using the xOr operator? I realize I can step through pixel by pixel, but with all the graphics options available to Flash, I am reluctant to take such a ham-fisted approach. How can this be accomplished efficiently? var pixel1:uint; var pixel2:uint; var xorMergedPixel:uint; for (var ...

Writing changes from editable datagrid back to local data store - Adobe Air/Flex

Hi I am using Adobe Air to get data from SalesForce, and present it in a datagrid. I am using a query to get the data, and then put it into an arraycollection that is bound to the datagrid, this works correctly and the data is displayed. I have made the datagrid editable, and I am able to change the values in the datagrid, but I canno...

Html wrapper issue

Hi, My Flex application is built using ant. The html wrapper task is as follows: <target name="wrapper"> <html-wrapper title="{$title}" file="login.htm" height="300" width="400" application="app" swf="Main.swf" version-major="9" version-minor="0" version-revis...

Flex: Auto-resize contents of a group to fit a printed page

Hello all, I have a large Group which contains two rulers and labels for distances, and a varied amount of smaller groups consisting of images and labels. Now my task is to print the large group on a page with a header and a footer. The large group extends outside the edge of the page and pushes the footer off the page. If I was printin...

buttonMode and useHandCursor property in DataGrid doesn't work

Set proprty of "buttonMode" and "useHandCursor" to true in DataGrid, it does not work as I expect. Only move the cursor to the edge between two rows, the hand cursor can show. What I expect is that no matter where the cursor is moved, it should always show hand cursor following is one of itemRenderer: <?xml version="1.0" encoding="utf...

Which is efficient: Switch, If or function?

I will need to handle a piano key that can respond as fast as possible without high CPU load with repetitive key press and release on virtual piano in Flex application. Is calling function much effective or Switch? Example: switch(keyNote) case 'c4': keypress.button=down; case 'c4': keypress.button=down; case 'c4': keypress.button=do...

Resources for advanced LCDS topics?

I'm looking to bone up my LCDS knowledge, but find that resources for anything beyond simple examples is lacking. I'd appreciate if anyone could share sites and/or training courses they can reccommend that cover things like: NIO configuration on LCDS Configuring LCDS as an Edge server Configuring LCDS in a cluster, and appropriate fai...

AIR - Different behaviour when the app is installed and when it runs inside the builder

Hi, we are developing an Adobe AIR app using Flex4. We are facing lot of bugs that didn't show up when we run the application inside Flash Builder (both debug mode and run mode), but when we install the app and run it, the app shows a different behaviour. Any idea ? what does it change between running the installed application in the bui...

Framerates in Flash/Flex apps

In MXML-based apps, you set the target framerate for the app and I believe this is a core part of Flash as well. Two questions... In many games you want the game to run as fast as it can for graphical smoothness, with some upper cap like 50-100Hz. How can you have variable framerates in Flash, or is it really not how things work? What ...

[Adobe AIR] How can I detect and convert text encoding?

Some text (or html) document from web is not encoded as UTF-8, so I want to convert encoding of text document to UTF-8. Do you have any clues for dealing with text encoding? And I found that, when application draws element with encoding-broken text (such as "¿©¼º ½̾ ±â"), the application is often killed with alert dialog "adl quit une...

actionscript dictionary contain function

I want to initial all states such as c4.currentState='down' so that I could call dictionary key to execute the function, is it possible? private var keyMap:Dictionary = new Dictionary(); private var c4v1:Object = new Object(); private var c4v0:Object = new Object(); private function initial_keyEvent():void { keyMap[c4v1] = "c4.cur...