flex

What architecture do I use for a Flex and Java application

Hi I am thinking of migrating a Java/Swing application to Flex3. The existing app architecture is as follows: Java/Swing client, JDO(Kodo) - Java Persistance engine, JMS - Messaging (for real time updates), EJBs - Business logic, Weblogic, UDB - Back-end database I am looking to reuse a lot of the java server side functionality of the ...

Why would a flash/flex RIA choose Base64 XML over AMF

I have recently been using Charles the debugging app. And noticed a very chatty app named skyrocket (a very very cool slide presentation app) sending a lot of data across the wire. It is built in flex by the looks and I was wondering why they had chosen to send their data using base64 and not amf. Is it because they don't want to be lock...

Flex: DisplayObject Singleton

Hi, I want to display an Flex component in several different places through out the application. And it should be the same instance of the component, but not the copies. So I think of making the Component as an Singleton. But the problem is : when I do something like this : var vb1: VBox = new VBox(); var vb2: VBox = new V...

Flex: load xml from flex swf

I'm creating an (desktop) application with flex but AIR is not an option. (I've heard you need air-installer to play the .exe) My flex app needs to load a php generated xml but it has to run from the swf file when you export a release build. When testing my flex application on the localhost, everything is fine. The xml is loaded and I ...

getElementById equivalent in Actionscript?

I want to dynamically access a bunch of objects in my mxml. I can construct their name/id. In Javascript I can do "getElementById(ID)" to get the object. How can I do this in Actionscript? I really can't do getChildByName because it is too cumbersome: I have access to object A, which has a child B, which has a child C, which have the c...

How to update a MySql DB using Flex

Hello everybody. Just got developing with Flex, and i like it. I've done some simple apps to get the felling of it, nothing involving updating a file or a database. I wanted help, how to do a query to a MySql DB from a Flex application (thats gonna be running in a web server). I didn't saw any duplicated questions, sorry if any exist...

Flex buttons and styles

I am creating a SWF file using a MXML file. The MXML file define several MX:Button and uses an external stylesheet to style them. There is a problem I am facing at the moment, I am aiming to style the buttons in a way that is similar to the way I can style HTML button elements. However, I could not achieve such look and feel. For examp...

communication between two flex apps

I have 2 flex apps on the same page. I want them to be able to call each other's public functions. I am thinking of using either externalInterface calls or FaBridge to do so. Is there a better way to do it? ...

Flex: Problems using scale9Grid with Image

I'm trying to create an image component that can be scaled using 9-slice scaling. I'm 100% positive the grid rectangle is inside the image's bounds. However, the scale9Grid property seems not to affect anything. I have tried many different things. Here is my last attempt where I try to put the image in a canvas. Any idea what I'm doing...

adt air flex core

I made an dance.air file but it has 3 directories inside the dance.air file. but when i installed this air file in macintosh then only one file was extracted or installed in macintosh desktop directory. But when i installed in windows xp then all directories are extracted in desktop. So, now question is, is there any possibility to m...

Flex Framework RSL - Specifying location at runtime.

Hi, Can anyone tell me if the following is possible and if so, how I would set it up… I have a Flex(3.3) web app which makes use of the Framework RSL. It currently loads the rsl from a location I have specified when compiling the app. However, for reasons I won't explain, I need to be able to specify the location of the Framework RSL ...

Instant Message on browser

Introduction: I want to develop the chat client that user can chat on the browser and I use the protocol call xmpp. Because of HTML5 web socket not yet available I try flash xmlsocket instead. Problem: I cannot connect to the server via browser. I'm not sure why, but I think that it is the problem of the server configuration. Question:...

Making image span across several components in Flex

Recently I've found a nice on-line diagramming tool - LovelyCharts. I like the way UI is designed - you can view screenshot here. I wonder how to make an image that span across multiple components, like the LovelyCharts logo in the upper right corner of the screenshot. Could anybody kick me in the right direction? ...

Flex : Styles vanishing when opening multiple HBoxes and appears back on scrolling down

Hi, My Flex application contains a set of Hbox,Vbox combination that is shown/hidden depending on users actions. There is an option provided to show all these containers as open(from their previous hidden state). At that point, the styles used in my page vanishes! The page becomes really lengthy and when I scroll down a bit, the styles ...

Changing Flex Components Language

Hello everybody. When we are building a application in Flex the components that we add are in English. Lets say that i want to change then to French, Spanish or Portuguese. How could i do that?? I've google a bit about it, but nothing good. I didn't look too much, because you guys always now things, and here in SO its more faster to...

Why is accessibility turned off in Flex by default?

I'm a blind developer who is considering learning Flex. According to this link when you compile a flex application with the defaults it isn't accessible to screen readers. Why is this, are there performance issues I should be aware of, or was this just an arbitrary choice Adobe made? ...

Flex: resizing the restore-window of a maximized window

I have a window, the window I programmatically change the size of the window depending on the current view it is displaying. The user cannot resize the window them self, but they can maximize the window. The problem is if the view is changed while it is maximized, the maximized window size changes, I do not want this, I want it to only ...

To build a flex volume control component similar to that of Youtube

Hey, I've been assigned to design a flex 3 volume control component similar to the one Youtube players have. I mean, you move the mouse over the volume icon and a vertical slider appears. My only doubt is about how making this vertical slider to appear and to hide properly. Should I extend a PopUpButton somehow? Maybe another kind of P...

How can I call a varargs function with an array in ActionScript?

I need to call a varargs function: function doSomething(... args): Object { // do something with each arg } However, I'm building the arguments for this dynamically: var someArgs: Array = ['a', 'b', 'c']; doSomething(someArgs); The problem is, when I call the function in this way args ends up being a 1-element array with someAr...

How can I determine the position of an XML instance in an XMLList in ActionScript3?

What it says on the tin: I have an XMLList, and I want to find where in it a particular XML item falls. First index is good enough for my purposes. Note that I have no problem writing a function to do this by hand... but I was hoping that the API has something buried somewhere that'll do it for me. I didn't see it, though. ...