flex

How to centre an image horizontaly and vertically in an Image Control?

Hi, How can I center a loaded photo [lets say 200x300] in an image control [lets say 400x600]? My image control has fixed dimensions while my contents have different dimensions and I want them to get centered automatically. Thanks in advance ...

passing multiple parameters to resulthandlers in flex

Hi, Is there a way to extend the ResultEvent class in flex. i have the following code: var token:AsyncToken = remoteObject.setQueryAndGetPromptValues('country', queryString); token.addResponder(new mx.rpc.Responder(resultCountrySearch,faultCountrySearch)); var token:AsyncToken = remoteObject.setQueryAndGetPromptValues('c...

Flex: handling exceptions

I am using Flex 4 with LCDS 3. I am having problems with properly handling exceptions. I have a simple commit service like; var commitToken:AsyncToken = _serviceName.serviceControl.commit(); // Commit the change. commitToken.addResponder(new AsyncResponder( function (event:ResultEvent, token:Object=null):void { Alert.show(...

is it possiable can defult sort in datagrid with itemRender label ?

We know already Datagrid defult sorting , when we click on header of dategrid then automatically sorting records well . But how can we sort within inline itemreander linkfield label in datagrid . In project defult sorting properly work in datagrid but linked field column only not sorting ? Is it any way to sort functionality? if u know...

Securing access to my custom servlets using Spring Security Blazeds integration

Hi All, I have configured spring security with my flex blazeds application successfully and access to all the beans is now secured. How can I secure access to HTTPService ( servlets) defined in proxy-config.xml. I have tried the following approaches but none worked. 1) In my custom authentication provider i have added the following lin...

AS3/Flex Decorator Pattern

I'm trying to create a decorator class in AS3/Flex in order to add some functionality to a UI element. The problem is that I don't know how to automatically "redirect" method and property calls to the object being decorated. I suppose I'm looking for something like the __call() "magic method" from PHP, which is called every time the appl...

how can build a txt document and write in flex application ?

how can build a txt document and write in flex application ? ...

highlight matching text?

I have flex 4 and writing my own autocomplete component (based on the popupanchor) to search for different books. In the dropdown box, how can I highlight the text that matches? For instance, a user types in "ema" and the search returns "Pet Sematary"....I want to highlight the letters "ema" within "Pet Sematary" ...

Disable databinding in MXML

When the Flex SDK converts MXML to actionscript it generates a lot of databinding code. Sometimes, however, I don't want to bind a variable, for example if I know the variable will not change. I can't seem to find a work around in Flex to disable the autogenerated databinding. Also, I was hoping this might also help with some of the...

Flex bar chart not working

XML Data to plot: <?xml version="1.0" encoding="utf-8" ?> <spearkerslist> <speakers langid="afb" countryid="SA" countryalpha3id="SAU">200000</speakers> <speakers langid="acw" countryid="SA" countryalpha3id="SAU">6000000</speakers> <speakers langid="ars" countryid="SA" countryalpha3id="SAU">8000000</speakers> <speakers la...

bind combobox text

I have an editable combobox. How can I bind the text the user enters? I can only do binding when the user selects whatever it is they typed in...how can I bind it as they type? ...

auto select datagrid row

I have a datagrid. How can I put the focus on a particular row (ie row #5) of a datagrid via actionscript? I'm partially there, but not quite: stage.focus = myDG; this obviously just sets the focus to the datagrid and not the row. ...

flex remove buttons border from toggle button bar

hi, how to remove the border of a togglebuttonbar button, with keeping the theme color?? i want to put the style in css file ...

Multidimentional Vector in AS3

How can I initialise two-dimentional typed Vector is AS3? Now I can get working only this: private var _mainArray : Array = new Array( MyConst.DIMENTION ); public function MyArray() { for ( var i : int = 0; i < MyConst.DIMENTION; i++ ) { _mainArray[ i ] = new Vector.<int>( MyConst.DIMENTION ); } } ... _mainArray[...

flex 4.1 s:List: how can i force the list to load all the items, not only the visible items ?

Hello. I'm creating a facebook application in flex. I'm actually working on the friends component that shows your friends who are using the application. now, each friend has a profile image. I created the component using a s:List element. In the Skin Class of the element i configured the requestedColumnCount to 3, which means it shows...

Do you do client-side logging?

How do you capture errors that happen on client side when building RIA apps using Flex and Silverlight? What are the common practices? I have seen some asynch js calls to a web service implemented but would like to know how the community is dealing with it. ...

Urgently need help with flex tree

I need to construct Flex Tree with the given result I got from the service call . Below is my data.(I dont know how to remove this namespace, I tried with the removeNamespac(), That didnt work). I have to dispaly the filename as some parent and under it versionNumber as children, when clicked it points to that link. I need it very ur...

Saving a file in Flex Air

Hi there, I'm trying to copy my SQLite file that is used in my Air app to user's selected directory using var fileSaveDest:FileReference = new FileReference(); fileSaveDest.save(dbWorkedFile,'Inventory.DB'); dbWorkedFile is a File dbWorkedFile = File.documentsDirectory.resolvePath("Inventory.db"); I tried this but the saved file i...

flex togglebuttonbar buttons width

Hi, How could i use percentage width for buttons at tooglebuttonbar, because i dont want to use the width property. ...

Actionscript 3: Why override custom event...and when to override it?

Hi guys.. I always have a question about override custom event. I am not sure why or what do to inside override function. I searched google but didn't get too many feedbacks. I appreciate if someone can light me up. Thanks. EDIT: My projects seem work fine even though I use my custom event without override. Anyone could explain it? ...