flex

AIR-FLEX: Keyboard events only sometimes working?

I am adding a key listener to my AIR application like so: <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" keyDown="onKeyDown(event)"> Yet only sometimes when I press keys does it actually invoke. I have no clue why, I thought maybe something else has focus. Well I cannot add key listeners to NativeWindow or...

search results filter effects - flex

I've created a search with a couple of comboboxes that allow users to filter their search results. The results are currently using a TileList & itemRenderer to display, and now I'd like to add an animation effect when the user filters their results. I know that you can use the itemsChangeEffect to create an animation effect when the us...

Changing image "source" dynamically in runtime

Hello, i am trying to modify during runtime an image in my application, this image is located inside assets folder, so thats why i dissable -use-network=false flag, then i call something like this: img.source="../assets/pict.png"; but it's not working. i know its a silly question but i am stuck here. any hint i appreciate. Br ...

flex arraycollection - can i specify the size for an arraycollection?

Context: I use an ArrayCollection object as follows: 1) Number of elements is fixed. 2) Elements are inserted at a given position, based on some order. Question: Can I set the max size of the ArrayCollection? Will fixing the size improve the performance, as elements keep getting inserted into this collection? -Thank You ...

Delay rendering or force re-rendering in Flex

Hi there, In my Flex application, using a custom control, I am making a JSON request to grab some data from the server. My rendering depends on this data such as knowing how many boxes to draw. How can I either force the rendering to wait until I've got the data before drawing to screen or have the boxes draw once we receive the data? ...

Parse boolean values in strings for use with Function.apply

I'm using String.split to parse a command line string into an array of strings. The result is then used to call a function using the Function.apply API. If apply(null, ["17"]) is called with this function: static function test(foo:int):void { trace(foo, typeof(foo)); } it works as expected (output: 17 number). However, calling...

Open a file in flex 3

Hi, How can I create a .txt file using flex 3? And I want to write some datas in to this file...... Is it possible? Any one can help me? Thanks in advance.. Nimmy ...

Advance DataGird Header column Drag drop

Hi.. I want to prevent drag drop in some column header . Thanks My code private function _headerShift(evt:IndexChangedEvent):void{ var dg:AdvancedDataGrid= AdvancedDataGrid(evt.currentTarget); var column:AdvancedDataGridColumn = dg.columns[evt.newIndex]; var dropTarget:AdvancedDataGrid ...

flex open source sdk compile error of samples on linux

I downloaded lastest version of flex open source sdk. I wanted to compile some samples specifically explorer example. At first build.sh gave me weird error and with little search I nailed it by converting all bash files and mxml files with dos2unix. It is file type error. However now I get this error ./build.sh Error: Could not resolve...

How to save ByteArray to HardDrive from Flash swf?

How to save ByteArray to HardDrive from Flash swf? So... I have a generated if flash ByteArray Now I want to save it to Hard Drive. How to du such thing? ...

filter functions problem

I'm working on a search component for an app I'm working on and I needed to add some filters to it. I've found an example and got the first filter working fine. Now I'm trying to add a second filter I'm running into problems... In the example I found they use filterFunctions, but I only get an option for filterFunction, why is that? He...

Actionscript classes to 1 SWC file

I'm using Flash Builder 4 (the version after Flex Builder 3, so very similar to Flex Builder 3) and have a bunch of actionscript classes that I frequently need to reference. I have them in a separate folder/package to keep things clean. I know that it's possible to create a SWC from these actionscript files. My question is how do I do ...

How to make sliding button sidebar in Flex

Hi, I'm fairly new to Flex. I want to make a button (icon) on the far right in the middle of the page that display a sliding side bar with multiple buttons in it when you hover over it. I want when the user hover out of the button bar it slides back again. Conceptually I got the basics of that to work. The issue I'm having is that when...

Push data to flex client

Howday, I want to push data to flex clients. I am talking about anywhere between 5000-15000 concurrent users, need to get data every time a currency is changed so that means lots of changes for lots of users. I have been looking into WebOrb.net, but the performance seem very poor (100 users concurrent) for a product so pricy (we purcha...

variables with dollar sign in the flex debugger?

when I debug a flex application in the properties of display objects i also see variables that start with a dollar sign, like: $alpha, $width, $x, etc.. what are they? are they different from the "normal" alpha, width, x properties? ...

Flash 4 BitmapImage and events

Hi, I am trying to use BitmapImage spark class instead of mx image class. Image loads the same, fine <s:BitmapImage id="img" source="sample.jpg"> </s:BitmapImage> But I have an issue with adding mouse events on it, eg: img.addEventListener(MouseEvent.CLICK,clicked); do not trigger any mouse events when clicking on the image Hel...

How do you combine a Move and Rotate effect in Flex 3?

I realize you can make one of each effect, set the same target, and hit .play();, but this produces weird results (acknowledged by Adobe, fixed in Flex 4). I'm trying to have an object move from the top of the screen to the bottom while it rotates around it's own center. When called independently, both of these effects work perfectly. ...

How to send Data from HTML Form to Flash SWF?

So I have a html form. I need to send its data to flash on submit buttom push. How to du such thing? We have this HTML form <form> First name: <input type="text" name="firstname" /> <br /> Last name: <input type="text" name="lastname" /> </form> We want ON Form items values change to recive tham in Flash app (Via JS for example) ...

AIR SQLite IN expression not working

Hi, I'm having a problem with an expression in my sql statement in SQLite for Adobe AIR basically I have this sql = "UPDATE uniforms SET status=@status WHERE customerId IN(19,20)"; updateStmt.parameters["@status"] = args[1]; updateStmt.execute(); if I run the above code it works, updating the status when the id are 19 and 20 but if...

flex image component

hi, I want to display a png with flex's builtin image component. There's a specific x, y that I want this image to be displayed. How do I do it? I am pretty new to flex. ...