flex3

What is the way to handle a user preferences file in Flex3 ?

Hi, I need a way to handle user preferences in a file. Of course, users can update their preferences. What is the best way to do that ? .ini file or .xml file ... Any snippet to start with ? TIA ...

Can I add a node to a tree without adding it to the dataProvider?

I've got a couple trees that I allow a user to drag and drop from one to another, works great except one apparent limitation. I'm picking up where they drop it in the list and adding it to the dataProvider manually. The user can drop it everywhere except after the last child of any particular node it seems, since it reads that position a...

How to access planes "child" nodes in AS3/Flex/Papervision3D

Be aware that I might be doing this totally wrong, so I apologize in advance. I have mxml thingy, for example: <mx:VBox id="isThisVBoxAwesomeOrWhat" width="500" height="500" backgroundImage="@Embed('images/500x500.jpg')" verticalAlign="bottom" includeInLayout="false" blendMode="{BlendMode.ERASE}" x="-1000" y="...

Why doesn't AIR start full size?

I have an AIR application set to 800px wide and 600px high. When I launch it, the window starts too small with horizontal and vertical scrollbars? Isn't this dumb? What am I missing? Test.mxml: <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="800" height="...

Using navigateUrl in flex values are not posting to sercerside

Hi when i try with navigate url it is working but one problem I am facing .it is very critical for me. When I am posting one value to jsp.with urlVariables through method=POST values are not getting in jsp, null values getting and window is opening, why i used this navigate only if i open using externainterface new window is creating and...

Flex Modules and custom text field

Hey guys, This is a really strange one. I've created my own CustomTextField class which I am using to embed the font and set the defaultTextFormat. This is working absolutely fine, but for some reason when I try to create a new CustomTextField in any module but the parent application, text text is only showing sometimes. Here is my Cu...

How to access root in Flex3/AS3 ?

Say I have code in my main mxml and in a function like this: this.addChild(someContainer); and now I want to refactor code and move this to it's own class and method in a separate file. How could I access root now, since this obviously now points to the new class I created. ...

In Flex how can I set the <input type=file/> value

I have an AIR app that download a webpage using HTMLLoader and I want to set the value of a form input element with a type=file. I've read that this is not allowed for security reasons but I've also found a Firefox extension that does it. Below is the js function they use. If a Firefox extension can do it, is there now way for an AIR app...

Appending logs to flashlog.txt?

Hi, I have few questions regarding flex logging... i. how do i append logs in existing flashlog.txt??? ii.can we append timestamp to name of flashlog.txt??eg.flashlog_2/25/2010_14:07:32.974.txt Can anyone help me? ...

How to get row index or column index on right click in datagrid

I want to add/delete row from datagrid when a user right click within the data grid but actually i am unable to get the row index(or column index or selectedIndex) .Any one ?? ...

Using one data source for multiple datagrids in Flex3

Hi there! I want to use one data source (e.g. an Array) for multiple Datagrids that have different filterFunctions attached and show different columns. First, I thought I use a very straight forward apporach: create the Array create an ArrayCollection for every DataGrid and set the "source" property to the Array create the DataGrids an...

Sha or Md5 algorithm i need to encrypt and decrypt in flex

Hi I am developing my application in flex and JSP, so when I am passing values through HTTP Service Post method with request object but these values are tracing and modifying by testing team so I am planning to encrypt values in flex and decrypt it in jsp.so is there any algorithms like SHA or MD5 more secure algorithms, so please send a...

Can I get changeWatcher to fire when XML is appended to?

So I had a requirement to add an undo function to my app and I discovered this nifty ChangeWatcher class, but it's not doing exactly what I want and I'm hoping someone knows how. ChangeWatcher seems to monitor assignments to the variable reference. So when I say: myXML = <xml/> it fires off it's function just fine and dandy, but wh...

How to Change the Style in TileList Selected Item using Flex?

My TileList Contain some text Boxes. i want to change the text color if it's selected. Please any one help me.. Thanks ...

ADVANCED DATA GRID: Setting properites of individual columns in grid mxml tag

Hi Friends, Is it possible to control the properties of 'advancedgridcolumns' in 'advanceddatagrid' mxml tag. For e.g. suppose the grid data provider has 3 different fields. Out of these 3 fields, one field is 'to_be_decided'. This field should not be displayed initially. Only the remaining 2 columns should be displayed (visible true) a...

Flex: Basic expectations from a flex(actionscript) developer

Hi Friends, Knowledge has no limits but still in your opions, what are the basic requirements for an individual, where he can call himself a flex developer. To make it a bit concrete lets say after having a 2-3 years experience. In my perspective it should be something like below. It is a very (very) rough idea and please let me know yo...

How can I get a datagrid to behave like the ctrl key is active?

I want my data grid to behave by default as if the user is holding the control key down. So when an item is clicked, then another item they are both part of the selection, clicking them again removes them from the selection. I already have allowMultipleSelection = true but I can't seem to find any setting that does this. I'm working on ...

Finding x,y position of a datagrid / adavancedDataGrid row in Flex

I have flex advancedDataGrid (could use dataGrid if that works better, though i like my meta-column headers), and i want to have a component popup on top of a selected row. The problem is, i can figure out how to reference an actual rendered row of a datagrid (rather than an item of the dataprovider) in order to get its position on the ...

which multi-touch hardware devices are programmable via Adobe AIR 2?

Hi, everyone. Thank you for your interesting in my question. You can help me out from this little problem. I am looking to buy the new hardware that is appropriate to use as development machine for multi-touch feature in Adobe AIR 2. I found HP TouchSmart series, which used in Mr.Kevin's demonstration in Adobe MAX 2009, is too expansi...

error using timeouts in flex3/actionscript

Ok, this is what I have so far - but it gives me an error saying that I am missing a semicolon somewhere, but I cant figure out where. Basically what I want it to do is when the button is clicked a random number is generated, then one pic is hidden, one is shown - then after a pause, that pic is hidden and a different one is shown. <mx...