flex

What is the best cross-platform language for desktop applications? (Java, Adobe Air, Flex, Silverlight??, Anything Else)

My business partner needs a desktop application programmed, and it needs to be cross-platform as he wants Mac owners (OS X) to be able to run it as well. This, of course, is a bit of a problem for me as I program in PHP for my web projects and exclusively in C# (formerly used Visual Basic) for my desktop apps. I've been using (and love) ...

actionscript image vs skin performance

Using FP 10.1, and undecide which is more efficiency if I implement a skin button with FXG contain gradient, bevelfilter, stroke for up and down state VS two state of images. Which one would use less CPU? When do I use cacheasbitmap? ...

Flex 3 reads browser http proxy setting

Is there a way to know the proxy setting of web browser under Flex 3, namely actionscript 3? We use socket library to connect remote HTTP server. It is nice to read web proxy setting to connect to HTTP proxy instead of directly to HTTP server. ...

Dynamic Spark DropDownList ItemRenderer within Flex Datagrid

I have a datagrid which contains a Spark dropdownlist that needs to obtain dynamic data. The datagrid uses a separate dataProvider. When I use a static ArrayCollection within my ItemRenderer, it works (please see listing 1). However, when I use Swiz to mediate a 'list complete' event to load the ArrayCollection, the dropdownlist does n...

how to apply tween motion on UIcomponents in flex using actionscript?

hello i want to apply tween motion on UIcomponents using actionscript in flex. i searched alot but didn't find something useful help required. thanks in advance. ...

Can somebody please explain this common binding pitfall to me? (using the wrong bindable event name)

I refer to this site link text Using the wrong event name in the [Bindable] tag can cause your application to not bind your property, and you will not even know why. When you use the [Bindable] tag with a custom name, the example below looks like a good idea: public static const EVENT_CHANGED_CONST:String = "eventChan...

openWithDefaultApplication fails on files in application folder

Hello I'll ONLY recieve an "Error #3000: Illegal path name" if I try to open a file which is placed inside the app-folder of the air. If the file is somewhere else outside of the app-folder it works. private var file:File = File.documentsDirectory; public function download():void{ var pdfFilter:FileFilter = new FileFilter...

Taking a screenshot of browser/tab window in flex

Hi all, I'm quite new to Flex. I've looked into taking screenshots in flex and have found many links on google and here on stackoverflow for taking screenshots of components and stuff like this. What I would like to do is take a screenshot of the entire tab in a browser window (or, failing that, the browser window itself or even just ...

Flex Itemrenderer issue with DropDown Control

I want to show rich text in dropdown control, for which I am using the following renderer. <?xml version="1.0" encoding="utf-8"?> <mx:HBox xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"> <fx:Script> <![CDATA[ import spark.utils.TextFlo...

How to run an EXE file from Flash/Flex/AIR?

Hi I want to run an .exe file from my Flash/Flex/AIR Application, How is it possible? What I need is to build an Interface to open a xls file and convert it into swf, I have the converter file which is an exe file, when I run convert.exe infile.xls outFile.swf. once the conversion is done, I need to show all swfs inside my Application...

Flex: Printed data grid makes huge files

Hi all, I've an AIR app which prints a couple of DataGrids with approximately 3 pages worth of data each. I get great-looking printouts, but the printing is slow - I noticed that printing these 6 pages + a title page and a page of lightweight images was sent to the printer in a file of almost 50 MB (on Windows). Is this a normal size fo...

Setting Focus on a List ItemRenderer with TextArea inside?

I've wrote a custom itemrenderer for a List component (Flex 3.5) which is a VBox with a Label and a TextArea wrapped inside. All works fine so far but I want the TextArea in the first itemrenderer to receive focus so that it instantly becomes editable when tabbing onto the List. Is that possible and if how would I achieve this? I've alr...

Custom Marshalling from Java to Flex via BlazeDS

My team are putting together a proof-of-concept Flex application sitting on top of a Spring-based server using BlazeDS. We do quite a lot of date calculations, so we use Joda Time extensively throughout the code and in our domain model. We're now trying to figure out how we can continue to use Joda Time in our DTOs that are sent back-a...

Flex 4: DropDownList doesn't work in new window

In this code I'm creating a new window when I click the button. In the new window are TextInput and DropDownList components. When the new window opens, clicking the DropDownList does nothing - you have to click it a second time round to get it to open. However, click into the TextInput field first and then try opening the DropDownList wo...

Spring MVC: RESTful web services + BlazeDS integration possible in the same web application?

I have a Spring MVC web application which provides RESTful web services via a controller class (annotated with @Controller) which has methods mapped to specific request types and signatures via @RequestMapping annotations. I have attempted to integrate a BlazeDS service destination into the mix by 1) adding the HttpFlexSession listener ...

ASMX Service and Lack of Crossdomain.xml file

I have an issue with an asmx service I am trying to access. No crossdomain file. I read there is a way around this using HTTPService instead of a webservice. Still cannot load the wsdl. See code below. Any help would be greatly appreciated: var dataService:HTTPService = new HTTPService(); dataService.url = "http://flexmappers.com/p...

Problem Sending Server Side Messages from BlazeDS to All Browsers

Hi, I've run into a bit of a wall with sending messages from BlazeDS on the server to Flex clients. I have my adapters and destinations set properly (I think) messaging-config.xml and my streaming channel setup in my services-config.xml files. The messages work beautifully in Safari (Mac and PC) but no other browsers. relevant Bits f...

How To Access a SOAP WebService From a Flex Library Project

I would like to access a soap webservice from a class in a Flex (AIR) Library Project. How can I instantiate a WebService and get data from a SOAP WebService. ...

Piechart wedge border styling in Flex

Adobe's docs describe how to apply an outline to the pie chart by using the mx:stroke element within a PieSeries, however this only changes the border of the entire chart. How do I add a border around each of the wedges in the chart? ...

Flex: Validator on RadioButtonGroup

I have a Validator on a RadioButtonGroup of 2 Radios. There's a checkbox above the RadioButtonGroup whereby if checkbox.Selected, then the Radios are enabled. So the Validator is required if the checkbox.Selected. So far so good. The problem is once a radio gets selected, the RadioButtonGroup selectedValue gets set. When I uncheck th...