flex

Creating an XML string in Flex (AS3) by using DOM functions

I want to create an XML string in Flex 3 in a similar way to you might approach it in Java. I only want a small piece of XML in the format <slide thumb="http://www.thumbs.com/thumb.jpg" type="static" blah="bleh" /> The only type of code I can find for doing this seems ridiculous.... private function createXML(): void { var xm:XML = <...

flex webservice fault : HTTP request error

Hi Guys, Im using Flex 3 and the WebService component. I started getting the following fault HTTP request error when making a call to service method. This error only showed up and i cant figure out whats causing it <mx:WebService useProxy="false" id= "myService"> <mx:operation name="getName" resultFormat="object" ...

can I retrofit FluorineFX or WebORB to my C# web service?

I have a C# web service which currently communicates with a Flex app using XML. It's not streaming data or anything, but still I'd like to lower the overhead involved. I have two questions: 1) would I see any benefit from using a technology like FluorineFX or WebORB in terms of reducing load on the server? The Flex clients won't perc...

How to stop Mouse Out event on Flex Canvas firing for child elements

Hi, I am using a Canvas itemRenderer for a container I use to display images. See pseudo code below. image = new Image(); image.source = data.@thumb; this.addChild(image); this.addEventListener(MouseEvent.MOUSE_OVER, enlarge(image)); this.addEventListener(MouseEvent.MOUSE_OUT, shrink(image)); When I mouse over the canvas, the enlarge...

How do you set the proper width of a dynamic UITextField before assigning text?

In Flex 3.2, I'm creating a UITextField, then measuring text that I'm about to assign to that field's text property. I then use those metrics to set the size of the field. However, the calculated width is not wide enough to accommodate the text. Is there a different order to achieve proper measurement or am I seeing a problem with the...

Issue with PyAMF, Django, and Python's "property" feature

So far, I've had great success using PyAMF to communicate between my Flex front-end and my Django back-end. However, I believe I've encountered a bug. The following example (emphasis on the word "example") demonstrates the (potential) bug: My Flex app contains the following VO: package myproject.model.vo { [Bindable] [RemoteC...

How to route AMF requests though one trusted server

We are planning to develop a Flex application that must make AMF calls to retrieve data from a secure server. However, we are not allowed to connect directly to that secure server with AMF. We can only make WSDL/SOAP or .net remoting calls to the secure server. Therefore, all instances of the flex application running on a client machi...

How do I get a HttpServletRequest in my spring beans?

I'm developing an app with a Flex-based front end and a Spring/Hibernate back-end. To get Facebook integration working in the way I've got it currently, I need to read the cookies set in javascript on the front end on the back-end and do some validation during login to see whether the user is attempting to spoof his Facebook login. Thi...

Trigerring a change event in a Flex tree control programatically

I have a method to add an XML node structure to the currenltly selected tree node. This appends the xml, and opens the parent node to display the newly added node. I then select the node by setting the selectedItem of the tree. I have an editing form that updates its values on the tree change event. When I set the selectedItem in th...

Flex equivalent of ProcessMessages and unresponsive UI during long loops

I find that my Flex application's UI becomes unresponsive during very long processing loops (tens of seconds). For example, while processing very large XML files and doing something per-element... Is there an equivalent of "ProcessMessages"? That is, a call that would tell Flex to continue responding to UI events, even in the middle of ...

Flex - How to get Tree itemClick event to mimic itemOpen event?

I am using a Tree control with an XMLListContainer dataProvider.... I use an itemOpen event with the following code to update another data provider when a tree folder is opened (using small triangle) - the data provider contains all the <slide /> elements in that particular tree folder... private function itemOpenEvent(event:TreeEvent):...

Flex memory limit - how to configure

Can I control the memory limit (i.e. when GC has to run) in my Flex application? ...

Displaying video in Flex

I am new to FLEX and I am planning to display video on web page.My mxml code is below <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal"> <mx:Array id="movieList"> <mx:String>http://localhost/Flex/Butterfly.flv&lt;/mx:String&gt; </mx:Array> <mx:VBox> <mx:List id="cntlMovie" dataProv...

flex 3 navigateToURL

hi, im using the navigateToUrl class to allow users to download some content - this works fine in Firefox however in IE a new blank page is opened with no content along with the download window (which is all i want showing up) any fixes for this ? cheers ...

Advice on converting a design-by-accretion Flex project to Mate

We have an internal Flex application which has been designed more through feature creep than by any kind of clear vision. It's basically a kind of CRM and reporting system which utilises quite a lot of Flex components (trees, graphs, custom components, datagrids - all sorts) and talks to a .NET webservice backend. It was initially my fi...

how to debug swf browser crashes

My swf is occasionally crashing the browser (or just crashing the plugin as chrome tells me). How do I diagnose the bug? I am developing for flash player 9 using flex. Things I have tried: Turned on log files so I can see trace("...") output. However, my log files, and my swf, are ending at inconsistent termination points. Insta...

Flex AdvancedDataGridItemRenderer backgroundColor/textColor not rendering

I have the following class that extends AdvancedDataGridItemRenderer: package { import mx.controls.advancedDataGridClasses.AdvancedDataGridItemRenderer; public class TestADGIR extends AdvancedDataGridItemRenderer { public function TestADGIR() { super(); backgro...

Flex error: type was not found or was not a compile-time constant

I get the following error in my flex code. Any ideas how to solve this? <mx:Script> <![CDATA[ private function send_data():void { userRequest.send(); } ]]> </mx:Script> <mx:Form x="22" y="10" width="493"> <mx:HBox> <mx:Label text="UserId"/> <mx:TextInput id="userid"/> </mx:...

How do I dynamically position a swf in flex relative to its parent container?

How do I position a child relative to its containing box? The Code: <mx:Script> <![CDATA[ thisMap.scaleX = scaleFactor; thisMap.scaleY = scaleFactor; thisMap.x = thisMap.x - thisMap.mouseX * 1.3; thisMap.y = thisMap.y - thisMap.mouseY * 1.3; ]]> </mx:Script> <mx:Box id="mapHolder" x="0" y="30"> ...

Fitting Flex Image in Canvas

How do I scale an Image in Flex to fit a Canvas? My code follows: <?xml version="1.0" encoding="utf-8"?> <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalAlign="center" width="100" height="100" verticalGap="0" borderStyle="solid" initialize="onLoad()" horizontalScrollPolicy="off" vertical...