flex

Flex Instantiated Object - wait for creationComplete

I have a simple component I created which I instantiate in my main program like so: newMessage = new MessageDetail(); newMessage.body.text = "Hello World"; I receive the error "Cannot access a property or method of a null object reference" on the second line because newMessage was not fully created prior to hitting the second line of ...

how do I send custom headers from flex to a web service in c#?

I've searched the web but i'm not getting it This is my flex code: private function callWS():void{ var ws:WebService = new WebService(); //changed this ws.addHeader(new SOAPHeader(new QName("uri","header1"),{AUTH:"bla"})); ws.loadWSDL("http://localhost:49548/test/WebService1.asmx?WSDL"); ws.HelloWorld.addEventList...

How do I make Flex/ActionScript 3 objects eligible for Garbage Collection?

How do I make Flex/ActionScript 3 objects eligible for garbage collection? What are the thumb rules? ... apologies if this was answered else where. ...

Returning from Flex/ActionScript 3 Responder objects

I need to return the value from my Responder object. Right now, I have: private function pro():int { gateway.connect('http://10.0.2.2:5000/gateway'); var id:int = 0; function ret_pr(result:*):int { return result } var responder:Responder = new Responder(ret_pr); gateway.call('sx.xj', responder); return...

Flex HBox alignment.

Hello guys. I experimenting with Flex Styling, and i came across a alignment issue. I have two image components inside a HBox, and the HBox inside a Canvas, which in turn is inside the main Application. <mx:Canvas id="Navigation" horizontalCenter="0" bottom="0" left="0" right="0" visible="true" height="40" styleName="transparen...

In Flex, how do wrap Lists into columns?

How do you make a List control wrap around to a second column (or multiple columns)? Thanks, let me know if there is a solution for this with the List control or some other Flex control. For example, if you have one list with 42 items in it, but I want to cap the height of a list to 20 items; then instead of having one list with 42 item...

HTTPService Result - checking number of items with a specified name

I have a question about HTTPService and the data it returns. Well lets consider this XML: <PhotoGalleryData> <Photo> <id>1</id> <name>Summer Vacation</name> <description>In vacation</description> <fullImage>originalImg/1.JPG</fullImage> </Photo> <Photo> <id>2</id> <name>Winter Vacation</name> ...

Best Practices Server Side Scripting or Web Services

Hello, Let me start off by stating that I am a novice developer, so please excuse the elementary nature of my question(s). I am currently working on a Flex Application, and am getting more and more confused about when to use server side scripting, and when to develop web services. For most of the functionality I am working on, I am ...

mx:Application in Flex 4 Gumbo (beta 2) has padding around the border, I do not want any padding

When I make a new Flex application in Flex 4 beta 2 (Flash Builder), then it creates a border around the outside of the Panel in this example of a thick width. It places a border with a shadow on the bottom and on left and right but not top. I want NO BORDER please. I must use mx:Application because of some older Flex 3 libraries which ...

Clearing RSL in Cache

Hi, I have built a flex application which has a "main" project and it is assosciated with a few RSL's which are loaded and cached once i run my "main" application. The problem i am facing is that the newer versions of my RSL's are not being loaded as the cache holds the older version of my RSL and execxutes the same. Each time i have go...

Attaching a property to an event in Flex/AS3

I have a parameter that needs to be passed along with an event. After unsuccessful attempts to place it on the type by extending the class, I've been advised in another SO question to write a custom event. I tried this before but I couldn't figure out how to send it, because I just want to send another parameter with a normal Event.COM...

Multiple Remote call made simultenously

I was making multiple remote calls and they are done sequentially and when I am getting a result event back it's triggering calls to all the methods with ResultEvent as an argument . I am supposed to receive the result event only in the method given inthe event listener but it's triggering calls to all the methods with ResultEvent as an ...

Delete XMLList element with a given index - Flex

How can I delete the element with a certain index in a Flex XMLList? ...

Disable button tooltip in AS3

I want to disable the tooltip on certain buttons. The tooltip manager seems to be an all or nothing solution. Is it possible to disable the tooltip for just one or two buttons? ...

Flex GroupingCollection: Loop through the children

I am using a GroupingCollection to bind my advanceddatagrid. I have used groupingcollection to group the data by date. Now I need to select the data in the datagrid through the code. Does anyone have any idea as to how to do this? I need to loop through the adg's dataprovider and select the item that matches the criteria for the selecti...

Open source lib for Audio based generative art (Flash/ActionScript )

I need Open source lib for Audio based generative art (Flash/Action Script) Something like or easier than Very Interactive People example Something more strictly formatted and more 2d than Mr.Doobs examples ...

Does Flash Player 10 use a new (unreleased) AMF specification?

Is there an official Adobe update to the AMF3 specification? There appear to be changes to the way the flash.utils.Dictionary object is encoded in AMF in Flash Player 10, but the AMF specification has not been updated on Adobe's website. ...

Flex LinkBar: how to set a selected button's background color?

I was able to set the text color of a selected LinkBar button by "disabledColor" style of LinkBar. Accordingly, I expect to set the background color of the selected button by "backgroundDisabledColor" style, however, it didn't work; and except "backgroundDisabledColor", I didn't see any other style that could possibly achieve this. Pleas...

how do I find the height of the children in a TabNavigator, without the height of the Tabs?

I'm having sizing issues with a TabNavigator. The direct children of the TabNavigator are Canvases, and within these I am adding Images. I'm trying to resize the images to fit within the Canvas without scrollbars. The Canvas height is set to 100% of the parent, which is the TabNav. Then I'm setting the image.height = parent.height * .9 ...

Flex: Scale an Image so that its width matches contentWidth?

I have a dynamic layout, where an image is loaded into an HBox: <mx:HBox ...> <mx:Image height="100%" .../> </mx:HBox> only the image's height is set on the image, so that it can take all the vertical space available, while its width is left undefined and I expect the width to scale accordingly with its height. It turns out that ...