flex

Flex resizing Canvas where to put such code ? (diagram inside)

Hi all, I have two Canvas A and B, A is the child of B. A can be resized by some user actions like adding some UI components to its base. A is bounded by an other Parent canvas B which should show scolling handles if its child A gets too large. I would like A to have the same width and height of B (or really close) while the calculated...

Flex input and output in PHP.

I want to print the input value in flex to PHP. My Flex Code... <mx:HTTPService id="sendReq" result="google(event)" showBusyCursor="true" method="POST" url="http://localhost/search/index.php" useProxy="false"> <mx:request xmlns=""> <keyword> {keyword.text} </keyword> </mx:request> </mx:HTTPService> ...

Custom shape panel/form in Flex

Hello, What I'm trying to do is to create a fancy custom-shaped login panel. It's functions and containing components should be pretty standard, just like in regular login panel - FormItem, TextInput, Validators, etc. I did some research and found that it is possible to create skins using Fireworks, however this does not solve my probl...

Navigation issue in Flex - ViewStack, states or something else?

Hi, I have a bit of doubt regarding my application which is being created using Mate framework. The first thing user has to do is to log in, so I created Login.mxml view. After a successful login I need to display the main view with applicationControlBar at the top and a workspace below. At the moment I have two separate views, so if I ...

Flex Question: Can I use a ComboBox in Flex to change a view stack?

I am trying to use a combobox in flex with an array to change to a canvas in a view stack. Can I do this with some custom action script? The UI I am designing could really benefit form this. ...

Flex appending history tracking elements below application

I've got a Flex application that uses link buttons. As soon as I incorporated the link buttons (I assume) the Flex framework started putting history tracking elements below the app in the DOM. For example IE6-8 get an iframe element with id of ie_historyFrame, chrome/safari get a safari_rememberDiv and FF gets a firefox_anchorDiv. Now, ...

Extracting asset from swf file?

As I am building a Flex framework for minigames, I plan to bundle a bunch of graphic assets (movieclip symbols) into a single swf file, which I will load into my Flex application, before extracting the symbols from the swf file for use in my application. My question is this: how do I do this through actionscript? Thanks! ...

Cannot access arrayCollection's children in datagrid

Hi Guys, I've got a Flex 3 application with an HTTPService returning an Atom feed. I catch the result from it and store it in an arrayCollection which is then the provider of my Datagrid. I have no problem accessing the data from the "first-level" of my Array, but cannot go under it. Not very clear, so here is some code: My XML [part o...

how to wordwrap in flex tree node

I have a Tree object in my Flex code. It's width is 100%, and it is contained by a Panel with width=200. I am using a custom itemrenderer that extends TreeItemRenderer. I need the text in each node to word wrap if it's too big (as happens often). I have tried label.wordWrap = true; in my item renderer without any luck. Any other sugg...

Can you require a function parameter to be a static constant of the function's Class?

Let's say I have a Custom Event Class, and it has several Event types stored in static Constant: package customEvents { public class { public static const DISAPPEAR_COMPLETELY:String = "disappearCompletely"; public static const SIT_DOWN:String = "sitDown"; public static const STAND_UP:String = "standUp...

Best Practices: How do you code layouts in Flex?

Hi there. I want to code a simple form layout in flex. Something like the following: [label] [text field] [label] [text field] Initially, I've tried coding this using vboxes and hboxes for my layout. Like the following <hbox> <vbox> <label /> <textfield /> </vbox> <vbox> <label /> <textfield /> ...

JSF vs Flex

I want to settle on a GUI framework, and use AJAX, as simply as possible. Assuming adequate skills in both JSF and Flex, but not too skilled at AJAX/javascript, and assuming Java as the language for the application, and using a DB, which is a good choice, or both have equal set of pros/cons? ...

Resize Flex/Flash object from the left side?

I'm working on Flex component which can be resized using handles on the right and left (that is, if you click and drag the left side, the component will grow to the left, if you click and drag on the right, it will grow to the right). Right now I am using: var oldX:Number = this.x; this.x = event.stageX + (initial.x - initial.stageX); ...

Noticeable Flex 3 performance increase using Canvas vs VBox/HBox?

I was told that there is an increase in performance when using Canvas versus HBox or VBox when laying out out the position of children. As a result, a number of our components have been converted over to using Canvas. However, now there is code being added to calculate the x and y positioning of some of the child elements based off of th...

Flex/AIR: Sending email with embedded image.. how?

I'm making e Flex AIR application that will produce a giftcard from a webcampicture. This giftcard needs to be sended in an e-mail to a recipient provided in the program. Should I upload the picture to a server and use php to send the mail? ...

possible to display an arrayCollection of Sprites in a List component?

I have an arrayCollection of objects that extend Sprite, and have bitmaps within them. I want to display these in a list (or some other component that would allow a user to scroll through them, and see their associated data.) When I do: myList.dataProvider = myArrayCollection the list just shows a bunch of lines of [Object, Item] inst...

How to protect access="remote" funcitons in CFCs from snoopers?

One of the great features of CFCs is the ability to reuse the code for both a straight .cfm page and for Flex apps. One such app that I devleoped uses Flex for it's charting capabilities and needs access to a 'getResults()' function in the cfc. All of this content is behind an authentication mechanism, but since the cfc will open itsel...

[Flex 3] Disabling project refresh on build

In the Flex 3 Perspective in Eclipse, is it possible to disable the refreshing of a project after a build? How so? ...

Is there a Flex equivalent of GWT-RPC?

Right now a lot of my applications use GWT-RPC for retrieving POJO's from a GWT RemoteService which in turn calls a Web Service (SOAP) to get the data. I am evaluating Flex and didn't really see anything truly analogous to this simple architecture. Anything I may have missed? ...

Flex: Popup Window - Get [ok] or [cancel]

I've done a lot of C# programming with both Winforms and WPF. I'm working on a Flex/Air app now for cross platform support. But this is my first flex project, so I'm learning as I go. I've got a window that I want to popup, that the user will fill out a form, then hit OK or CANCEL. I set it up the same way I would've in C#, but it doesn...