flex

Trying to set flex richtexteditor's default font-size

I just want to lock or set a default font size for the rich text editor. I tried setting font-size = 16, which although it did set the default to 16, also made all the labels etc... in the editor to font size 16. ...

How to integrate flex with existing web app?

I'm having trouble conceptually understanding how to integrate flex components -- forms, charts, data grids, etc. -- with an existing web app. There are certain aspects of the web application where I believe it makes more sense to use flex -- however, I DO NOT want to replace the (html/js/java) web-app with a pure flex based app. For e...

Flex prevent URL encoding of params with HTTPRequest

I'm trying to port an existing AJAX app to Flex, and having trouble with the encoding of parameters sent to the backend service. When trying to perform the action of deleting a contact, the existing app performs a POST, sending the the following: (captured with firebug) contactRequest.contacts[0].contactId=2c33ddc6012a100096326b40a501...

Flex layout - resizing "inline" text components

Hi, I'm trying to create a simple layout of 3 horizontal Label/Text components. I'd like the components to resize depending on their text content, which will change at runtime. The components should look something like this: <mx:Label text="{firstNum}" /> <mx:Label text="-" /> <mx:Label text="{secondNum}" /> The output would look li...

Flex ViewStack With A Repeater - Repeater Gets Placed At The Bottom

I have a problem when creating a ViewStack, with a repeater along with other components (i.e. vBox) inside the ViewStack. The repeaters get placed at the bottom of the view. Despite the repeater is listed before other components, it is placed at the bottom. Is there a workaround where I can get the repeater drawn before the other compo...

Force system cursor usage in Flex

Let's say that you're using some black box library (i.e. no source code) that sets your cursor to something when rolling over a certain sprite. You can override that by catching rollOver and rollOut events, blocking propagation and using the CursorManager. Question: is there a way to tell the CursorManager to use the system cursor? Ob...

Flex w/ AMF Returning results slowly.

I think this is just a matter of fine tuning some different elements, but I'd like to know your take. I've got a Flex app, using the Flex 4 data services, communicating with Zend AMF services. One of the services returns all the results in a database using SELECT * FROM table there are ~1200 rows (140KB package size). My problem is the ...

Adobe Air - Opening a File With Air

So I've created an Air app that saves to a custom file type. I've set up the file associations when I publish the app and, when you double click the file it opens the air app. What are the hooks for me to detect that the app has been opened via a file? Obviously, I need to detect this and then get the app to open the file itself. ...

Dealing with automatic adding scrollbars

Hello, everybody. I have such problem: I'm creating a container and it's content at runtime. Here's a rough structure: --VBox ----Form -------FormItem ... -------FormItem ----ControlBar I have fixed maxHeights for the form container to keep it in bounds of screen. But when I get vertical scrollbar, the horisontal also appears (se...

How does flex know where to look for .swz files?

I don't do flash myself: in this company, flash is generally used just for design elements, so the designers build the flash and my job is just getting it onto the site. All fine so far, but now one of the designers wants to move to using Flash Catalyst. Here's my understanding of how it works. If I'm wrong, please tell me. 1. Flash Cat...

Copy BitmapData From mx:Image

How can I copy or duplicate the bitmapdata from a mx:image component? I need to display the same image in multiple screens of my application and don't want to have to download the image multiple times. I could just use a urlrequest to download the image as a bitmap and copy that but I like the way you can can just set the source of th...

Integrating R and Flex

How can you integrate R and Flex (e.g. web server using rapache)? ...

Liferay for delivering RIA

Hi Stackoverflow, I am currently looking into Flex and Liferay for delivering an RIA. We are replacing a rather large existing application built on an internal AJAX/Java library. For this, Flex seems to meet our needs for development but we've had a wrench thrown into the works. We need to integrate with another internal app that's been...

What are considered 'views' in flex?

What qualifies as a 'view' in flex. Are 'views' containers like panels? Or are they flex components? Examples would be great. Thanks. ...

Flex 4 chart - sometimes data is backwards

I am using an area chart in Flex 4, though I've tried it in other SDKs & get the same result. I have a php call that returns 1 yr's worth of data. All is fine & the data shows up correctly. So far, so good. I have another that returns 4 months of data but the chart displays it in reverse order. Kind of weird, because I know that the da...

Matching Parentheses with Regex in Flex

For some reason I can't seem to match a parentheses in Flex using Regex to save my life. What's wrong with this? var commandTxt:String = "switchview(adf)"; var switchViewArray:Array = commandTxt.match(new RegExp("switchview\(", "i")); I've tried dozens of things, but I can't seem to get a match the parentheses. What's the catch here...

Flex Chart won't filter

I have flex 4, zend & php. I am trying to generate a chart w/ 5 yrs of data & then let the user (without making another call to the server) get a 1 yr chart w/ the same data. (In other words, the 1 yr's worth of data is a subset of the 5 yrs). I can get the initial 5 yr chart but when I try to apply a filter, as below, I get no data. Wha...

How to send PUT HTTP Request in Flex

I want to send HTTP PUT Request on one URL to update that content of XML via using API. URL is like this: https://domainname.com/someurls/id.xml I want to update that content. But When I am sending this PUT request, I have seen that in Network Monitor of Flex 4, Its going as the POST request on this web, while I am setting method as P...

Cannot access a property or method of a null object reference.

I try to do preloder in Flex for my project written in Flash. I make this with the help of this site link text My Flash project have next source in main class called Game stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown); stage.addEventListener(KeyboardEvent.KEY_UP, keyUp); private function keyDown(event:KeyboardEvent) { if ...

flex skin problem

how can i add flex style reference in flex skin like below example whenever i add this code in my flex file in f:style tag it remove all skin styles how i can set SparkChromeWindowedApplicationSkin thankss skinClass:ClassReference("spark.skins.spark.SparkChromeWindowedApplicationSkin"); ...