flex

Do superfluous calls to addEventListenter("event", thisSpecificFunction) waste resources?

I have ItemRenderers that need to listen for events. When they hear an event (and when data changes), they dispatch an event with their current data value. As item renderers are reused, each of them is going to add its callback in set data(value...)and pass the callback function in the event as well as the current data value. So, the l...

Updating external Flex components from an action

Hello, I'm new to Flex and am having trouble understanding Events. I think Events are what I want to use for my situation. I have 2 components, addUser.mxml and listUsers.mxml. I access these from a ViewStack in my main application. When I load listUsers.mxml it shows a list of current users in a datagrid via a HTTPService call. When...

MXML Component Life Cycle

Hi, I am new to flex. I am confused with how component life cycle goes when component build in MXML. and if MXML calls methods automatically then how to call any method in life cycle explicitly. Could anybody please explain me Thanks Shruti ...

Flex Catch Keydown

I want to handle the keydown event globally in my application and as such have added the event handler to the top most DisplayObject in the display list. However, the event doesn't seem to fire unless the cursor focus is on a Textbox or Datagrid or the like. How can I have key presses handled globaly by the application? ...

Flex 3 file download - Without URLRequest

Hey guys, My Flex client app has got some data from the back end (RemoteObjects, BlazeDS, Spring). Client has got all the data it needs, it now needs to put some information in a CSV format and make it available for download. Using Flex 3 for this. Any ideas? Thanks, Sri ...

How to open new explorer when clicking links in webpages loaded by app of Flex/Air?

In my application I tried using following codes to do this: <mx:HTML x="0" y="0" width="100%" height="100%" location=“http://www.example.com”/&gt; The page is loaded fine.But when I click the links I found sometimes there was no any response while I need a new explore window opened with the linking url.And also I tried: <mx:Script> <...

flex actionscript not uploading file to PHP page HELP!

hello, please help! I am using actionscript 3 with flex sdk 3.5 and PHP to allow a user to upload a file -that is my goal. However, when I check my server directory for the file... NOTHING is there! For some reason SOMETHING is going wrong, even though the actionscript alerts a successful upload (and I have even tried all the event lis...

Flex - Cancel drag operation via keyboard

Hello I would like to be able to cancel a drag operation with the Escape key. The following did not work so far: calling stopDrag() on the component --> nothing happens calling DragManager.acceptDragDrop(null) --> nothing happens calling mx_internal function DragManager.endDrag() --> drag partly stops, the drag proxy image disappe...

Is it possible to open a new frame in html bellow an existing frame in HTML?

Hi friends I have a html main.html as given ----- main.html---------------- <title>FlexTrail</title> <script src="main.js"></script> <frameset rows='200,200'> <frame id='one' src="file:///C:/Documents%20and%20Settings/demo/Desktop/FlexTrail/project1/bin-debug/project1.html" frameborder='0' /> <fram...

How do I use ANT to produce a .air file?

This is a sample from my build.xml <mxmlc file="${SRC_DIR}/Main.mxml" output="${DEPLOY_DIR}/@{market}.air" locale="@{locale}" debug="false" optimize="true"> <arg value="+configname=air"/> <load-config filename="${FLEX_HOME}/frameworks/flex-config.xml"/> <library-path dir="${FLEX_HOME}/frameworks/li...

Flex - How to edit a xml file on the server

Hi! I was wondering if it was possible to edit an xml on the server side from a web based flex application. When you use XML files in a Flex application and then compile it to upload it in the server, Flex Buidler generates a swf file with the xml data embedded. How should I do to have access to those XML files?? Thanks for your answ...

How do I use Flex's Binding in a Flash AS3 project

I have a flash app using the flex framework - I would like to bind a display object textField with data from my dataModel. How do I do this without the flex binding brackets "{ }" Thanks in advance everyone. ...

Flex code region?

Is there a way in flex (Flash Builder 4) to make regions like in c#, to group a part of the code allowing us to collapse it and see through our project more easily? In c# it's like: #region exammple // my funtions I want to group #endregion ...

flex grid scrollbar pushing all columns to the left

I have a flex grid where I have the verticalScrollPolicy="auto".But every time when the scrollbar appears all the columns get pushed to the left, making the columns not align as they should. I tried setting minWidth on all the columns to prevent this, but that doesn't seem to work. Any ideas? ...

Actionscript / Flex: a question about handleAllEvents() method.

Hi, in Adobe tutorials, they suggest to create a class to handle the events (see below the copy/pasted code, and link to page). I was wondering if I have to handle all events with the function handleAllEvents, using if statements to check if the target is the one I want, and the event is the one I want. i.e. if (event.type=="click") &...

embedded Italic, bold fonts don't look the same in flex as in Windows...

...unless they're something like "Times New Roman" or some other established font with a fully designed italic and bold, presumably in seperate files. Let me explain what I mean (though why no one has commented on this before I have no idea.) Numerous, numerous fonts do not have a seperate file for italic and bold, and in fact to the b...

Flex Builder not building new source code.

I have imported an existing project into flex but any changes I make to the source are not being built and displayed when I test run the application. The original files which are in the bin-debug folder dont seem to be changing at all. I have tried cleaning the project, deleting the bin-debug folder even reinstalling flex builder, but n...

How to do call Google Conversion Tracking Code from Flex?

What are the best practices for calling Google Adword's conversion tracking code from Flex? All Google gives is javascript that is meant to be inserted in an html page. But with Flex, there is only one html page and I only want to call the conversion tracking code when a certain UI action happens in the Flex app. Any thoughts are appre...

ComboBox, is there an event for item hover?

I'm using the <s:ComboBox> flex component which I suspect is very similar to the mx one <mx:ComboBox> What I'm trying to do is listen to the event of the mouse moving between the items of the list. There's a change event, but it kicks in only when the item is clicked/selected from the list. What event would I need to listen for when i...

Technique/class to clean invalid XML in AS3/Flex 4?

I'm looking for a way to load invalid (malformed) XML into an AS3 XML object. Do you know a class or a technique to do so? I have to load malformed HTML and parse it as XML. This is a Flex project so I can use Flex specific classes if needed! I thought of using the HTMLLoader since it accepts all kinds of malformed HTML and renders it ...