flex

Set window size for standalone application

I want to set the default window size for a flex application that runs with a standalone player. I set width and height to 100% to be able to get the ResizeEvent and being able to adjust the layout if the user changes the window size. But I'd like to also define a default size. ...

Exception when extending a flex component

Hi, when extending a flex component and trying to use it, I get a RTE. I.e. I am extending a DataCanvas and am using it like this: <MyComponent dataProvider="{dataProvider}" width="100%" height="100%" x="0" y="0" id="dc" verticalCenter="0" horizontalCenter="0" /> Has anyone seen this? How can I get around it? Thanks! Error: Constr...

Render webpage into an image using Adobe Flex

I want to render a webpage into a small thumbnail image in an Adobe Flex application. Does anyone know of a method to do this? ...

Embed a browser in Flex

Anyone know of any documentation that would help me with trying to embed a web browser component into adobe flex. I've seen in Adobe Air that there is a Item; however, in Adobe Flex 3 for a .swf file that would be somewhere - I do not see it. Any ideas? ...

pass parameters to HTTPService and use them inside the URL

Flex3 + Cairngorm. I have my service in Servicis.mxml: <mx:HTTPService id="docIndex" url="{URL_PREFIX}/jobs/{???}/docs" resultFormat="e4x"/> And I call it from my generic restful delegate like this: public function index(params:Object):void { var call:AsyncToken = services.getHTTPService(resourceName+"Index").send(params); call....

Best practices to keep a Cairngorm Flex Project DRY (don't repeat yourself)

I'm having a hard time building a Cairngorm Flex3 app that connects to a rails app... I'm used to rails DRY approad, and the Convention over Configuration thing too.. and Cairngorm in awful at these. How do you keep you flex code as DRY as possible? I've implemented a generic delegate to avoid a delegate for each command, at least. Any...

Cuddle braces in flex

How can I force flex to cuddle my curly-braces instead of putting them on a new line? ...

Is it possible to Blur a VBox in Flex?

I want to blur a VBox component when my mouse is out of it and unblur it when my cursor comes back to the VBox region. How can I blur a VBox in Flex? ...

Flex: Listening for 'Hover' over Link in text area

Hi, I am trying to find out when a link is 'hovered over' in a text area showing html text. I wonder if listening for a cursor change kind of event might be the way. I can't find anything in the docs. Has anyone any idea what event I could listen for here? Thanks ...

Flex scrolling the canvas to its top

Is there a way to programmatically scroll the canvas to its topmost position? ...

Flex/Actionscript code highlighter

On an opensource project that im working on we need to do some codehighlighting in a flexapplication. So my question is whether there exist such a project already or if know of a good library suitable for porting to action script. Or should we perhaps generate html that we display in text field? ...

Flex - Repeater Component with Grid Layout

I have a randomly-sized array of items. I'd like to display one label for each item in a Repeater component. I want them to display in a grid layout with 5 columns and as many rows as needed. How do I do that in Flex / ActionScript? Maybe there's another way to do it that I haven't seen yet, so any suggestion are appreciated. Thanks...

Flex: ArrayCollection removing sort.

Hi, After applying a numeric sort to my dataprovider(Array Collection), I can not reorder the items via a tilelist. Do I need to remove the sort from the arrayCollection. If so, is it just a case of setting collection.sort = null ? Any help much appreciated. var sortField:SortField=new SortField(); sortField.name="order"; sortField.num...

Printing ArrayCollection in Text Fields in FLex

I am getting the the output in Flex from PHP as... appSes = new ArrayCollection (ArrayUtil.toArray(event.result)); I need the value to be stored in textInput... <mx:TextInput id="keyword" styleName="glass" width="100%"/> How to ?? ...

Flex: Converting a GUID to Base64

In Flex, I have a GUID that I receive as input in the following format "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx" as a string. How would I convert this to a string of Base64 encoded values? Please note that we have to account for leading zeroes in each section of the GUID, for example, "0091AFBC-8558-482A-9CF6-64F1745E7AC1" ...

ability to add button\icon in column header of flex datagrid ?

I want to display the grid control in Flex ( version 3 ) 1. with a marker/(or)icon (which acts like a button) in each colum header of the grid. 2. on click of the button i want o popup a textaread to capture some comments. 3. on close of the popup i wan to then change the marker\icon in a way highliting it which would indicate that some...

encrypt the flv file

I am now thinking of encrypting the flv file . is there any way to do this by flex? do you have some tutorial of example to do encrypt the flv file. ...

How do select all checkbox within iteam renderer data grid using flex?

In my project i used one select all button for select all checkbox at click event . But i used datagrid ,iteam renderer within checkbox so no id of checkbox then how to select/unselect all checkbox ? <mx:DataGrid id=newdatagrid> <mx:columns> <mx:DataGridColumn headerText="1" rendererIsEditor="true" editorDataField="selected"> ...

Using two embedded fonts on one string

Hello, i would like to know how to use two embedded fonts in Flex in tag i am dynamically loading rss description into it and would like to have first character and characters unsupported by other font be in that first font. i limited the range of char of that second font so all unsupported chars and first char should be in that first f...

How to set the border color of a CircleItemRenderer

I have a linechart and dots showing the places where a datatip pops up. I can change the line to any color I want and I can set the inside color of the dot. But the border color still stays orange (from the default color). Someone knows how I can set this property easy? this is the code: <mx:LineSeries id="dayEnergieLineSeries" y...