flex

Flex sending snapshot without using base64Encode

var is:ImageSnapshot = myImagesnapshot; var str:String = ImageSnapshot.encodeImageAsBase64(is); As of now, I am sending my jpeg data to the server with the code above. The problem is that it almost doubles the size of the data. Is there a way to send the image data directly without using any encoding. ...

Creating gif/bmp files with flex

public function bmdToStr(bmd:BitmapData,width:int,height:int):String { var encoder:JPEGEncoder = new JPEGEncoder(); var encBytes:ByteArray = encoder.encode(bmd); return ImageSnapshot.encodeImageAsBase64(new ImageSnapshot(width,height,encBytes,"image/jpeg")); } As of now, I am creating JPEG image from bitmapdata as above. ...

Embed Javascript Module within Flex application

I have a large module written in JS which uses Canvas to draw and animate trees. This module was written for a product which is now being migrated to flex. Is there a way in flex to embed this JS module as is? Or would I have to rewrite the whole module in AS3 (shudder)? Further, if embedding is possible, would user interactions (mouse ...

Image gallery with overlapping ....

Hi there, Image Gallery with overlapping Fade In and Fade Out effects ??? I'm trying to find an idea to go by or some code snippet for an Xml Img. gallery where I can use Images which are fading 'In and Out' before showing the next Img. a type of overlapping, and which than again does the fade In and Out thing. ** I have been able to ...

( Flex ) How can we get an imagesnapshot of the entire component without scrollbars?

Hi there I can take snapshot of a component. But the problem is the component is lil bigger with scroll bars. The saved image has scrollbars (only the visible area is getting saved). What i need is I want the entire component to be saved as an image. This exact functionality is available while we print the component using FlexPrintJo...

Drawing a dashed line across the tops of Flex Column Chart

Hi all, Please find the below code <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ [Bindable] public var testAC:Array = [ {date:"without", close:50}, {date:"with", close:45} ]; ]]> </mx:Scr...

How to create and write data into a file using flex3?

I want to create a file and write some data (userid) into the file at first run of my application, during the second run all the operation (will go to the next state) based on the file data, is it possible? How to create and write data into file? ...

Advanceddatagrid cell fill

How a particular cell can be filled with any color in advanced data grid. ...

How to set the same column width in a datagrid in flex at runtime?

HI, In flex, I have a datagrid with 22 columns. I initially display all the columns. The width of each column right is uniform. Now when i change the visiblity of a few columns, the width of each column varies. How do i maintain a uniform column width for each column whether or not there are any invisible columns?... Also how do i get t...

[FLEX] MVC: choosing a view at runtime

Hi all, I'm quite new to the MVC design-pattern, and I'm translating all of my old code. I want to move to this pattern because I can change my views according to my needs, but I'm finding difficult to do it at runtime. I found an excellent example of MVC, and all that I do is the following: <mx:ViewStack xmlns:mx="http://www.adobe.co...

Datagrid selects the wrong custom cell in my datagrid...

Hi everybody, I am working on a problem since a week soon, but I still couldn't make it work as expected. I have a DataGrid which has HBox with a CheckBox an a Label as itemRenderer (see Code below). When I tap in to the Cell the standard itemEditor pops up and lets you enter the content of the label. Thats the standard behavior. I work...

How do I troubleshoot an "Error #1090" trying to generate ASDoc?

I've got a reasonably large Flex project and I'm trying to generate ASDoc documentation for it. When I run asdoc, it gives me this error: An unexpected error occurred. Error #1090: XML parser failure: element is malformed. (Location of error unknown)XSLT Error (javax.xml.transform.TransformerException): java.io.FileNotFoundException: ...

Remove all the popups in an application

How can we remove all the popups existing in an application? ...

Is it possible to send custom animation as a video stream in flash?

I'm using NetStream class to create p2p video conferension. Is it possible to add overlay pictures or animation into video captured from webcam and then send reencoded stream to other user? ...

tiny URL api Automati in flex 3

hello i am working in application of twitter in flex 3 and action script 3 , this in the text area when the user write my application automatically change http address to a short address but i don't know find the address within the text you can help me please.. thanks in advance ...

follow up question problem with selecting a custom itemrenderer in a datagrid

Hi there, I have posted two problems with a custom itemRenderer see this post. My primary Problem is, that it always selects a wrong line (one under the one I select). I now realized that this happens, when I save back the content of the itemRenderer to the dataProvider. If I code this part out, the dataGrid works as expected... Does t...

How do you add a click event handler to the vertical axis of a BarChart in FLEX?

Does anyone know if it is possible to add a click event handler to the vertical axis (or any axis) of a barchart in flex? If I add the handler to the BarChart itself, it looks as though the event doesn't fire unless you click on the actual chart, not the axes. Any help is appreciated, if you need more info let me know. Thanks ...

Trying to learn Flex function, vars and data flow.

So I need to return the location or fname or what ever.... I would like to do this just by changing the pointer variable. I'm just comming from php to flex so I don't know what I'm doing -=) How can I do this? public var myProfile:Object={ fname:"Deyon", lname:"Smith", age:"31", loc:"New York"}; ...

Accessing children of loaded swf in Flex Image component

enter code hereI am loading an external swf into an component. It loads everything fine and I can see buttons working in the swf, I can add a movieclip to the but I can't then access that movieclip (or don't know how), and it keeps telling me numChildren = null when I try to trace it out. This is set up as a custom component like thi...

Open source alternatives to Flex Builder?

Are there any open source (read free) alternatives to Flex Builder? I do not qualify for their student waiver (sad) ...