flex

Flex: Thread style reply

Hi, One of the functionalities in my current flex application requires me to maintain a comments section. Here, the users can post the comments and the replies to existing comments. All I want is like the usual thread style commenting. Let say, I am replying to someone else's comment, so, it will align my comment by a tab or so and pe...

Flex: center Window?

I am trying to center a launched window in flex, there is a NativeWindow.x and NativeWindow.y but flex uses the Window class which does not have these properties, so does anyone know how to center a window? Thanks!! ...

Selecting a Checkbox and deleting a data grid row in Flex

Hi, I am trying to implement the following : 1> First column of datagrid has a checkbox. 2> Select checkboxes, and then delete the datagrid column. 3> Dynamically, add checkbox when row is added dynamically. 4> Do not show check box if now data in row. Can someone give some guidance ? ...

Flex 3 StringValidator Highlight Field

I want to perform simple validation against multiple fields. Please note these fields are not within a mx:Form since the way they are displayed isn't the norm. The validation works properly, however, it does not highlight the textInput with the error message. myValidator.source = empName1; myValidator.property = "text"; if(myValidator.v...

Flex: Button style messing up FlexChrome

My air app is using the FlexChrome instead of the system chrome. The problem is I also have a .CSS for skinning that sets the skins for the Button class. This is also changing the 3 buttons (minimize, maximize, close) in the flex chrome which is undesired. Is there a way to make it not effect the Flex chrome buttons? Also the css file i...

Flex Embedding Hindi Fonts Problem

For the attached code, I get the following compile time error : exception during transcoding: Font for alias 'myFontFamily' with bold weight and italic style was not found by family name 'Kundli Hindi Normal' I have installed other Hindi fonts, and I get the same error for them as well. Though I don't get any error for standard fonts...

What would you go for a back-end web application: Flex, GWT, JQuery?

Hi, I should build a web application for back-office purposes and one of the main requisites is a good UI. On server-side I'll use Java very likely Spring framework, depending on what I'll be using client-side. I think to basically have 3 choices for client-side: a "normal" web application, meaning JSP pages, using JQuery framew...

How to find checkbox value ( checked/unchecked) in iteamreander of data grid ?

i have 3 checkbox for calculating amount purpose . i used Datagrid within datgrid used mx:DataGrid > mx:itemRenderer> mx:Component> mx:CheckBox id=mycheckbox change="calc()"> mx:CheckBox> mx:Component> mx:itemRenderer> public function calc():void { statistic.dataProvider =mycheckbox.selectedItem; } but it's throws...

ArrayCollection reverses order of my objects

I'll show you the function first. private var areaCollection:ArrayCollection; private function generateAreaCollection():void { areaCollection = new ArrayCollection(); areaCollection.addItem({Areal: "Totalareal:", Verdi: int(totalArea * 100) / 100 + " kvm"}); areaCollection.addItem({Areal: "Hovedtakets areal:", Verdi: in...

When you have two of the "same" objects in flex datagrid then only one of them can be selected.

When you have two of the same records in your data providor (i.e. the same object twice in an array) then the datagrid only allow you to select one of them, see the example below - you can only select the last "Moo". <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute...

Using google transliteration in Flex

Attached code is an example of how to use Google transliteration feature in certain html textboxes. I need to enable the same transliteration feature for a flex application. Is there a way I could do it? <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/javas...

Flex Chart : Change style for positive and negative values

Hi, Is there a way to change the style of Flex Chart according to the values. For example, in column chart, set green for positive value and red for negative value? ...

clone flex component

Hey I am trying to duplicate a flex component at run time. For example if i have this mx:Button label="btn" id="btn" click="handleClick(event)"/> i should be able to call a function called DuplicateComponent() and it should return me a UI component thts exactly same as above button including the event listeners with it. Can some one ...

In Flex, how do I deselect all radio buttons in a group?

In Flex, sometimes when you need to clear a form you run into the problem that radio button groups seem to defy clearing: try as you might, setting selected=false on all buttons, setting selection=null on the group, doing both, doing them twice, etc., you always seem to end up with one pesky little radio button that's still selected. How...

In Flex, how can I detect when a component moves?

When a Flex component moves directly, so that its x and y properties change, then a "move" event is dispatched on the component. That's all fine. However, a component may also move as a result of its parent component moving — or its parent moving, and so on. Now when a parent component moves, its children just "move along" without any p...

Problem in returning values from javascript function to flex

In the attached flex code, I am trying to call a javascript function in its HTML wrapper. The example is also live at : http://www.cse.epicenterlabs.com/mbm/ajax_api.html The problem I am facing is, that I have to click the button twice to get the desired output. Seems like there is some delay in setting the "output" variable. How could ...

how to keep a nativewindow on top

I need to keep a NativeWindow I am creating on top of the main window of the application. Currently I am using alwaysInFront = true, which is not limited to the windows in the application. I can successfully synchronize the minimize/restore/move/resize actions, so the top window behaves appropriately in those cases. Even though using th...

How do I update a has_and_belongs_to_many collection RESTfully?

I have two scaffold-generated Models, student and class. They have a many-to-many relationship implemented with has_and_belongs_to_many. I'd like to be able to change which classes a student is in as well as which students are taking each class. That is, I want to modify a student's classes variable (adding and removing items from it) ...

Add new datagridRow, sort the datagrid and give serial numbers, in FLEX

Hi, I have a datagrid. I add a row to the datagrid using an ADD button. Once I add, I sort the datagrid based on a column. I also provide the serial numbers i.e. row numbers as first column to the datagrid. But, the serial number function does not apply after sorting. Hence, a new row added for e.g. row 5, based on sorting should be row...

Structuring application w/ same functionality but different resources across multiple categories

I am updating a Flex application which has the same functionality across a variety of categories (i.e. Baseball, Basketball, Football), but only needs access to the resources (~400kb images) of one category when it loads. I need to separate out the resources for each category so it only loads the ones its needs in order to save bandwidt...