flex

Flex: Download file & close new window/tab in IE

Hello everybody, I'm getting an anoying problem in IE6.02 when trying to download a file through flex + struts action, the browser opens a new window and doesn't close it after the download has finished. The flex code is: navigateToURL(url,"_blank"); The content headers are: HTTP/1.x 200 OK Date: Thu, 29 Oct 2009 22:00:44 GMT Transf...

To execute Flex cleanup function when browser is closed by user

I have a Flex client application. I need a clean up function to run in Flex when the user closes the browser. I found the following solution on the net, but it only works half-way for me. How could I fix it? Thanks in advance for any responses! Symptoms CustomEvent triggered, but not executed. >> EventHandler for CustomEvent.SEN...

Is there any way to get around a Security Sandbox violation when a swf is loading another swf which loads another swf?

I have a AS3 swf [1] that is loading another AS2 swf [2] which is loading another AS3 swf [3]. I'm getting a Security Sandbox violation on the AS2 swf trying to access the last AS3 swf (3), but I'm using Security.allowDomain("*") in practically all the classes of the first AS3 swf (1). Is there any way to get around this? Thanks. ...

Setting Default SAVE Locations in flex3 web application

hi All, In flex 3 web application how to set default save location for images? Thanks. ...

How to make 3D wall gallery in Flex?

I like to create a Flex application, an image gallery, which comes like 3D wall. How can I do that? Is there any examples available? ...

How do i pass arraycollection to Advancedatagrid using HierarchicalData ?

Problem with passing arraycollection to Advance datagrid. My Arraycollection structure like `   private var groupList:ArrayCollection = new ArrayCollection([ {Country:'India', children:[ {Country:'Series1', children:[                                {Matches:'India Test series 1',isEnable:false,id:1,isSelected:true},        ...

How to Fire tree itemClick event on, setting Tree.selectedItem in Flex3 Air

Hi, I am working on Air application,i had a problem on Tree control. Iam adding nodes for the tree dynamically, while adding nodes to the tree i am setting Tree.selectedItem as present added node. after that i need to fire Tree.itemClick event handler method also. how can i call event handler method as a common method. in Flex3 ...

Crop image in flex using a non-rectangular shape

Hi I've been following this tutorial to crop images in flex: http://code.mediablur.com/ImageCropper/ImageCropperDemo.html. At the heart of its cropping is using a method called "copyPixels". However, this method takes as one of its arguments a rectangular shape for its crop region. Are there other strategies I can use to crop it not u...

upload file to server in a particular path

hi All, In Flex i want to upload a particular file to server form local system.how to do it? Thanks. ...

best practice - keep alive session in flex

Hi Does anyone know a standard way to keep alive the http session as long user has open the flex app in the browser? I played around with the polling mechanism of blazeds. But it had no affect on the http session. thanks & regards Cyrill ...

Using Web Services in the Flex Mate Framework

I am currently trying to use the "Invocation tags" of Mate to call my web services and delegate the WS-responses to my fault/result handlers. I want to use the generated proxies, provided by the Flex Builder, and not the plain <WebService> or <WebServiceInvoker> tags. I actually failed using several techniques: <WebServiceInvoker> doe...

Migrating to Flex 4

How much of an impact will migrating to Flex 4 have on our code base? We have about 40k LOC written in Flex 3. I'm hoping that there are no breaking changes in the Flex SDK, and that we can smoothly transition to the new features of Flex 4 while minimizing any disruption. From what I've read Adobe is developing a new set of GUI component...

Generate flv, mpg or some other movie format from an ActionScript movie clip

Hello I am working on a Flex application/game where a lot of UIComponents are moved around on a canvas. I would like to "record" an flv movie of the movement on the canvas. Is there anyway this can be accomplished ? I essentially want my users to be able to record small flv videos of their games to be uploaded on youtube. Any ideas...

how to set backroundcolor

Is there a way to set a common Backgroundcolor for all the tabs in a given TabBar? Rightnow I am able to set color only for selected tabs using tabBar.getChildAt and setStyle ...

flex 3 how to programatically bind properties of 2 objects

so in mxml it's <mx:z id="a" ... <mx:z id="b" value="{a.value}" how do you do this in actionscript ? ...

Ways to load images in AS3

How to load images in as3: Load them all at once, for example like this (pseudo as3 code): for each (var url:String in images){ loader.load(url); } Or to load them one by one (again, pseudo code): loader.load(images.shift()) onComplete(){ loadNext(images.shift()); } Which way is faster and better for performance? ...

Problem with Advancedatagrid in tree using flex3?

In my application i used Advance datagrid . On this arraycollection based to binding the dataprovider like <mx:dataProvider> <mx:HierarchicalData id="GC" source="{groupList}"/> </mx:dataProvider> my arraycollection like private var groupList:ArrayCollection = new ArrayCollection([  {Country:'India', children:[      {Country:'S...

How to customise flex sdk classes?

Hello, Friends! I have modifyed XMLEncoder class from Flex SDK (XMLEncoder.as) After it I run my project but I don't see any changes... What should I do to realy modify project's behaviour? Thanks!!! ...

Flex: Output of a C file in real time via PHP+Flex?

I have a C executable (named myprogram). When I run it by ./myprogram I get some output statements on the standard output of my Linux shell. I used run.php to get access to whatever is being printed to the standard output: #run.php <?php $output = shell_exec('./myprogram'); echo $output; ?> Then I called an HTTPService having id="ser...

Canvas height auto? - Adobe Flex (actionscript)

Hey I would like to have that the height of a canvas change automatically. When there are a lot of labels and images in my canvas, the height must increase. And when there are just a few labels in the canvas, the height must decrease. In fact i want something like in CSS: height: auto; I hope youn understand my question. Thanks in ad...