flex

Has anyone taken the Adobe Certified Flex 2 Developer Exam?

Hello all, I am looking to take the flex 2 developer exam very soon and was just wondering if anyone has taken it already? If so what did you think of the exam and how did you prepare? Thanks ...

Possible to use Flex Framework/Components without using MXML?

Is it possible to use the Flex Framework and Components, without using MXML? I know ActionScript pretty decently, and don't feel like messing around with some new XML language just to get some simple UI in there. Can anyone provide an example consisting of an .as file which can be compiled (ideally via FlashDevelop, though just telling h...

Flex Post Event Screen Updates

I came across this topic today while investigating something very strange. Doing certain things in our Flex app can cause the number of frames rendered to rocket, from 12fps to ~30fps: loaded animations start playing at high speed and the GUI starts to lock up. Since everything I've read on Flex/Flash hammers home the point "the frame r...

Dynamic RadioButtons

Our resident Flex expert is out for the day and I thought this would be a good chance to test this site out. I have a dropdown with a dataProvider that is working fine: <ep:ComboBox id="dead_reason" selectedValue="{_data.dead_reason}" dataProvider="{_data.staticData.dead_reason}" labelField="@label" width="300"/> The ComboBox ...

How does the portability of PureMVC benefit the application developer?

One of the stated goals of the PureMVC framework is to avoid platform dependencies in order to be portable. Considering that because of language and API differences application code will always be heavily dependent on the platform, and that avoiding platform dependencies makes the framework reinvent the wheel and/or only provide a least-...

AS3/PureMVC Best Practices? Best code examples of well architected projects?

I am a AS3 novice learning PureMVC and want to write code following best practices so that any other AS3 developer can pick up my code and easily understand what I did, I am tempted to do stuff as I would in JavaScript or Asp.Net/C#, but I have a feeling that might not be the best approach. Thoughts? Links? ...

How can I build an Adobe Air project with Maven?

Has anyone successfully built an Adobe Air application with Maven? If so, what are the steps to get it working? I have been trying to use flex-mojos to build an Air applications. When I set the packaging type to "aswf", as suggested in the DashboardSamplePom, Maven complains that aswf is an unknown packaging type. I also found their ...

Flex HTTPService does not include Content-Length header ?

I am trying to get a Flex application to communicate with a custom python webserver I have developed. I am noticing that I cannot read the postdata received because Flex does not seem to include the Content-Length in the HTTP headers. (My webserver work when posted to from plain HTML) Is this a known problem? any ideas how to set the ...

How can addChild choose the wrong insertion index?

So, In a Flex app I add a new GUI component by creating it and calling parent.addChild(). However in some cases, this causes an error in the bowels of Flex. Turns out, addChild actually does: return addChildAt(child, numChildren); In the cases where it breaks, somehow the numChildren is off by one. Leading to this error: RangeErro...

Best way to determine whether a XML attribute exists in Flex

I have a XML response from an HTTPService call with the e4x result format. <?xml version="1.0" encoding="utf-8"?> <Validation Error="Invalid Username/Password Combination" /> I have tried: private function callback(event:ResultEvent):void { if(event.result..@Error) { // error attr present } else { // ...

What the heck does loader.load((newSource is URLRequest)? newSource:new URLRequest(newSource)); do?

I ran across the following code in Ely Greenfield's SuperImage from his Book component - I understand loader.load() but what does the rest of do? loader.load((newSource is URLRequest)? newSource:new URLRequest(newSource)); It looks like some kind of crazy inline if statement but still, I'm a little preplexed. And if it is an if state...

Flex Popup Button Question

Banging my head against the wall here. I don't want to reinvent the wheel. The default Flex 3 classs for PopupButton is a combination of two buttons. One is a normal button with label and/or icon, and the second is the arrow which opens the popup. My struggle here is that I just want a button with an icon that opens the popup directly...

Animated Gifs in Flex 3

Believe it or not I need a way of displaying animated gifs in Flex 3. This guy has a component for sale but it's Flex 2 only: http://dougmccune.com/blog/2007/01/19/how-to-load-animated-gifs-using-adobe-flex-20/. And I’ve implemented this example: http://www.bytearray.org/?p=95, but for larger gifs it’s very CPU intensive and causes the ...

What features distinguish Flex from DHTML?

I just got started using Adobe Flex SDK. I was very excited because it's the first time I've found a good, free way to create Flash applications. But then I noticed something: Flex doesn't seem to be much about making animations or designs. It seems more like an application to build forms and menus and the like... which I can already ...

Is it feasible to create a REST client with Flex?

I'm starting a project using a Restful architecture implemented in Java (using the new JAX-RS standard) We are planning to develop the GUI with a Flex application. I have already found some problems with this implementation using the HTTPService component (the response error codes, headers access...). Any of you guys have some experien...

Flex/Flash Debugging in the Browser

I'm having an issue with a Flash/Flex erroring in Firefox but not IE. I need to see the error that the Flash/Flex app is getting from the ASP.NET app. Is there any way to debug the response that Flash/Flex is getting? ...

How can I disable copy / paste in Flex Text controls?

Long story short, I need to put some text in my Flex application and I don't want users to be able to copy. I was going to use a label, but apparently labels do not support text wrapping. Can I make it so that users cannot select text in a Flex Text control? Thanks. ...

How to tell when an MXML component has totally finished creation?

An MXML component can be quite complex, containing many nested controls, including asynchronously loaded content such as Image/SWFLoader. Is there one event I can watch for on my component that will only be raised when every control and sub-component has loaded, including SWFs and Images? ...

brokenImageSkin dimensions in Flex

I am trying to implement a custom "broken image" icon to appear if I cannot load an image. To accomplish this, I used the brokenImageSkin parameter, but it renders the image at its true resolution, which ends up cutting off the image if the size of the control is constrained. <mx:Image brokenImageSkin="@Embed('/assets/placeholder.png'...

How do I get the build to automatically update a web service reference in Flex?

From within FlexBuilder3, I can go to "Data/Manage Web Services..." select a web service, and click "Update" to ensure that my code and the server are in sync. How do I automate this so that each time I build, the automatically generated web service code is regenerated? If the server interface changes during development but my code does...