flex

Do you know any example about system tray application using air or flex?

I made one small application using flex . it is working correctly but i want that application icon show on system tray .how wiill i do for that ? i used if (NativeApplication.supportsSystemTrayIcon) { NativeApplication.nativeApplication.autoExit = false; icon.contentLoaderInfo.addEventListener(Event.COMPLETE, ...

When an swf (or other external remote resource) is loaded using SWFLoader, is there any client side caching performed.

Would like to know if when an external remote resource (say SWF, or JPG) is loaded using the SWFLoader (or even Image component) in flex3, if there is any client side (ie. browser caching?) or the loaded resources. In particular would a second request then to access a previously accessed resource just use the cached resource or would a ...

Flex: Duplicating instance of an image

I have a drag and drop handler in my Flex application. The drag proxy, or the 'ghost' image to be displayed while dragging, must be loaded before I drag, and that takes some time. How can I make it load immediately or preload? One solution is to duplicate the image, but as far as I know, image objects can't be duplicated without creating...

Creating a "customized" soap client in flex

Hi, I am working on a web-service that says it utilizes "SOAP" but upon closer inspection, it's very very different from the standard soap request/response structures i have seen everywhere else. I was able to talk to the service with javascript (using xmlhttprequest) and parsing the result manually. Ive tried doing it with flex, but c...

How can I make my entire flex widget have rounded corners?

I am creating a Flex widget and would like to make the corners rounded. In other words, I don't want some component inside the widget rounded, I want the actual widget to be rounded. I have seen this done in many places so it cannot be too hard, but all of the solutions I find on the internet do not work. People say to set the corn...

Flex: Accessing MXML from class

I have a class that I instantiate at creation complete: public var catalog : AppCollection = new AppCollection (catalogStrip); CatalogStrip is an HBox. In this class, I create a VBox and add it as a child to catalogStrip. Here is the constructor for said class: public function AppCollection (_container : HBox) { this.container =...

Java applets vs Silverlight vs Flash (Flex)

Everybody talks about Silverlight and Flash and Flex and how cool etc... Java applets are very similar to Silverlight and Flex, but Java applets exist since 1995. What is the reason we don't have any cool Java applet applications around? My guesses so far: start up time of Java applet, restricted network connectivity, lack of dev tool...

Using Ogg Vorbis in Flash/Flex applications

I am looking to use ogg vorbis, instead of mp3s to stream audio. It seems that Flash player does not natively support ogg. Is there a codec engine that can be embedded with the app itself that can play .ogg instead of .mp3? In general, what would be a better format than mp3 for streaming audio and that is supported by Flash? ...

Flex custom components

Hello, I red I can create "MXML components" and "AS3 components". The two methods use an existing component as their bases. The question: what if I can't extend any of the existing component (because I need something totally different)? Do I have to create the component from scratch using the (commercial) Flash authoring environment? ...

Is there a way to override action scripts operators, in particular I would like to override the equals operator

Is it possible to override the equals() operator (ie. for customer classes where equality may be determined by 2 or more fields matching). ...

auto update in flex application

I am using auto update in my flex application using the updater framework. I got this article and followed the same steps. http://blog.multimediacollege.be/2008/12/using-the-air-15-updater-framework-in-flex/# But i'm getting an error and can't understand the reason: 1046: Type was not found or was not a compile-time constant: Upd...

How to know where live point is in a stream?

How to know where live point is in a stream? NetStream.seek ( 99999999999999 ) basically sends me to the latest point, but how do I find the current exact endpoint of the stream? ...

ActionScript library to convert Markdown to HTML

Hi, I'm currently working on a Flex 3.0 project in which I have to display some input text with minimum formatting. We are considering to use "markdown" as the chosen way to express this formatting, now I would like to know if there is a library for this purpose. ...

Severe Flex issues.

I seem to be having difficulties getting the trace function to output anything to the console in either Eclipse with the Flex Plug-in, Flex Builder, or even FlexBeans (the Netbeans plug-in for Flex). I have removed and then reinstalled the Flash player 10 debugger version for both Firefox and IE, rebooting after uninstalling them and th...

Linear tree in Flex

<mx:Script> <![CDATA[ private function openAllNodes():void { tree.openItems = dp..node; } private function closeAllNodes():void { tree.openItems = []; } ]]> </mx:Script> <mx:XML id="dp"> <root> <node label="Parent 1"> <node label="Child 1" /...

Adding events to menu options

//ActionScript code import mx.controls.Menu; import flash.events.MouseEvent; private var menu12:Menu; private function init():void { menu12 = new Menu(); menu12.labelField = "@label"; menu12.dataProvider = xmlDP; menu12.showRoot = false; menu12.width...

What are the options to replace Java Swing GUI?

We have a desktop client application developed in Swing. This application interacts with backend server using Servlet. The new requirement is to make a web based client. I have read about JavaFX, Flex, ExtJS, etc. I would like to know which solution is best fit to replace a swing application? Does anyone have any experience of doing th...

Flex/AS3: why I failed to listen ready event of module

follow are code snippet var depTree:IModuleInfo=ModuleManager.getModule('modules/depTree.swf'); if(!depTree.loaded){ depTree.addEventListener(ModuleEvent.ERROR, onModuleError); depTree.addEventListener(ModuleEvent.PROGRESS,onModuleProgress); depTree.addEventListener(ModuleEvent.SETUP,onModuleSetup); depTree.addEvent...

flex 3 and using name/value pairs

Does anyone have any recommendations for working with name/value pairs in Flex? Context: I want to create a Flex UI for updating a database table. I want the UI to contain the field name(read only) and current field value (which will be editable). Im using the WebService component to retrieve the field value and then asssigning it to an...

How to add mnemonic character to a regular button in Flex? (Need that for shortcuts)

How to add mnemonic character to a regular button in Flex? Show me some examples. ...