flex

Looking for a sample/example for Adobe Air (flex) app to generate a word document.

Like the title said, I'm looking to generate a word doc (or something word can read formatted) from an Adobe Air application. My second alternative would be to generate an HTML doc and format it like the word document but it would be more convenient to use a word processor. I eventually will tie this to a database (probably php). Any ...

Flex Spark List scroll to bottom when new data is added

I have a Spark List (spark.components.List) backed by an ArrayCollection for its dataProvider. The List has a vertical scrollbar when there's too many rows to display. What I want is when a new row is added to the List for it to scroll to the bottom to show that new row. I've tried calling List's ensureIndexIsVisible from a listener on ...

In Flex, is there a way to have a common base implementation?

I have following class hierarchy interface IBaseModel interface IChildModel_A extends IBaseModel interface IChildModel_B extends IBaseModel class BaseModel implements IBaseModel class ChildModel_A extends BaseModel implements IChildModel_A class ChildModel_B extends BaseModel implements IChildModel_B I am trying to write unit tests f...

Change BorderContainer background color with AS - Flex 4

I'm trying to change the background color and or text color of a BorderContainer in flex 4 using Action Script, but have not idea how to. The Border Container component doesn't seem to have any properties like: idname.color = "#333333"; idname.backgroundcolor = "#333333"; How might I go about doing this? thanks! ...

Flex OLAPDataGrid Sorting

I'm trying to provide some default sorting within the OLAPDataGrid component in Flex. There appears to be a dataCompareFunction on OLAPAttribute, but nothing I do seems to actually trigger calls to that method. Any suggestions around using this method or any others to provide sorting of the dimensions on OLAPDataGrid? ...

Flex tree space default event listener

I have noticed that when I select tree node if space is clicked the selected node gets opened... how could I remove this event? ...

Spring: Accessing the correct WebApplicationContext with multiple dispatchers decalred

I have two Spring contexts declared in my application - one for Spring-MVC requests, and another for Flex/BlazeDS messagebroker requests, mapped to different url-patterns: <servlet-mapping> <servlet-name>spring-mvc</servlet-name> <url-pattern>/app/*</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>flex</servl...

Radio button in datagrid for selecting the entire row

Hi, I have a Datagrid in Flex. I need to add a radio button in first column such that when I select that radio button, entire row should get selected. I have tried using following code - <mx:DataGridColumn id="selectColumnRadioButton" sortable="false" textAlign="center" editable="false" width="18"> <mx:itemRen...

How do you use Parsley with GraniteDS in Flex?

I want to use the Parsley framework and I want to use GraniteDS for remoting. As of 2.1, GraniteDS generates AS3 service classes from your Java code as local proxies, and I want to use these classes in Parsley. I can successfully inject the service classes with Parsley but when I call any of their methods I get a null object error at o...

Flex + custom component + design-time + binding

Hello, I'm trying to create simple custom component with two labels with this MXML: <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="250" height="30"> <mx:String id="result" /> <mx:Label x="5" y="7" id="titleLabel" text="{label}" width="120"/> <mx:Label x="125" y="7" id="resultLabel" text="{result}" width="120...

flex MS Project library

Hello all, Is there ActionScript library that works with MPP(MS Office Project)? library that parses MS Project XML? Also please advice me all links that may help me ...

Set time 5 seconds to dispatch cairngorm event in flex

Hi, I have a live chart. I need to refresh the chart with 5 seconds time interval. For displaying the live chart i disptach the event (myEvent) extends cairngormevent. And after 5 seconds , the same event has to dispatch again adn get the data to display thelie cart. And how the event dispatch after 5 seconds with out any manula cal...

Flex: How Do I Reference the System Font?

Hi, I've embedded a font in my component. All of the text in the component uses the embedded font. But, I want a button to use the standard system font. How do I set the button's fontFamily to the system font? <mx:Button label="Hello" fontFamily="?" /> Thank you. -Laxmidi ...

Flex3: Is it Possible to Embed only a Few Letters from a Font?

Hi, Is there a way to embed only a few letters from a font instead of embedding the whole thing? I only need say 7 capital letters from a font. Thank you. -Laxmidi ...

Data Grid not displaying data in array collection

My data grid is displaying stale data, rather than the real time data available in it's data provider (array collection). I've tried refeshing the data in the collection, but that has no effect. Below is my code, does anyone see what could be the problem? <mx:Accordion/> <fx:Script> <![CDATA[ private var _gridData:ArrayCollecton = new ...

Changing font size in Flex app

How can i change font size in all flex application? ...

Flex Compilier says source-path and package definition mismatch

Here's the issue: I have three files in the same package: com.foobar The directory to these files is: C:..\mylibrary\src\com\foobar\ then inside I have foo.as and bar.as When I try to run mxmlc C:..\mylibrary\src\com\foobar\foo.as I get the error: A file found in a source-path must have the same package structure ' ', as the defini...

Flex video/audio chat for a site

Looking for a component which can be embedded inside my site (PHP, ASP.NET...whatever) and give a support for video chat. I'm not a flex developer and would like to use a component. There are some/many video chats available, like flashcoms, red5chat...but all of those are heavy(monolit) components. What I would like to have on my sit...

How vunerable to XSS attacks is Flash?

The reason why I ask is that I'm telling a vendor of ours they have to use the MS AntiXSS library with the ASP.NET UI components they make, but they also work with Flex to build Flash based UIs - and I was wondering if there's an equivalent for Flash (assuming it's vunerable). ...

Flex/AIR: Export DataGrid to Excel with multiple sheets

Hello, I have an AIR application with two DataGrids that I would like to export to Excel. I've found the as3xls library, but it can only handle one sheet (as per the comments). Ideally, I'd like to export both DataGrids into separate sheets in the same workbook. The AIR application is running entirely on the user's desktop and doesn't...