flex

Resizing flex application in browser. How to set autoexpanding height

Hi! I am developing small application for training purposes. There after click on the button is done, the new panel is added to application, to the button of the application. Once I come across strange problem. The vertical scroll bar never appears. Here is how I embedded swf: <script type="text/javascript" src="/site_media/js/swfobje...

Flex: Getting return result on file upload

For For some reason, I'm not getting any result returned to me when uploading a file to my server. I'm using a php script, the file gets sent, gets uploaded, but I can't get the return result. I am firing these event listeners: fileRef.addEventListener(ProgressEvent.PROGRESS, fileRef_progress); fileRef.addEvent...

How to extend ObjectProxy class

Hi, I trying to extends ObjectProxy class, the reason is because I want to have a Singleton of the ObjectProxy class, so I made something like package utils { import mx.utils.ObjectProxy; public class UniformObjectProxy extends ObjectProxy { private static var _instance:UniformObjectProxy; public function U...

how to find specific xml data by attribute name/value in flex / actionscript

From some xml I want to find items that have a specific attribute and value. Here is example xml: <node> <node> <node> <special NAME="thisone"></special> </node> <node> <special>dont want this one</special> </node> </node> </node> (nodes can contain nodes...) I need to find the first based on it has an attribute nam...

how to download files to a default dir without poping an option window in Flex/Air ?

I'm writing a app with Flex/air,and i need a function that downloading files to the default dir without a pop-up window.i tried to use ftp instead of http but found it's not supported by air.how can i solve this problem? ...

Getting Better at FlashDevelop

Hey guys, I have been programming with as3 for the past 4 months and Ive been getting rather good at it. I just recently decided to work with flashdevelop. I notice that there is alot of code that is availible in the flex sdk that isn't available in as3 with flash cs4. Like embedding of assets and such. I've been trying to find some up t...

Flex, xml and E4x

Hi I have a basic question. I am loading an XML file using the URLLoader and putting it into an XML variable. My question is, can i leverage E4x to go through this xml data. I tried doing for each (var grid in xmlData.grid){ output.text=grid.name; } But it says that variable 'grid' has no type declaration. This ...

problem binding inside itemRender

ok guy I really need you super brain on this, I had pull out all my hair now, I just want to throw the towel on this one, ok, I have an itemrender component, which you can see below <?xml version="1.0" encoding="utf-8"?> <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" horizontalScrollPolicy="off" creationComplete="hbo...

fix needed for bug in TextField/Text

Sort of a complicated scenario - just curious if anyone else could come up with something: I have a Text control and when I scroll it and stop the scroll with the cursor over some text that has a url, the cursor doesn't revert to a hand, and also flash player starts acting as if a selection is being made from the last cursor position. ...

StyleManager: calling getStyleDeclaration after loadStyleDeclarations (Flex 3.5)

An AIR app has default theme compiled in & themes that may be loaded from the external swfs (css-based), that override the default. Called StyleManager.loadStyleDeclarations with update=true, and then called getStyleDeclaration in the StyleEvent.COMPLETE handler for the dispatcher returned by the loadStyleDeclarations. Expected it to re...

AIR runtime distribution for mac os

i have developed an air applcation along with runtime distribution it works fine on windows, but when i try to install it on MAC it is installing AIR runtime only not the air application i need to install AIR application seperately again. i included air application name in .airinsatll.cfg file still it's not working help me some one.....

Flex Unit - testing a library wrapping remote objects

I'm wrapping RemoteObject inside a class for easier managing of retries, timeouts, failures and such non standard scenarios. So when wrapping a RemoteObject inside another class, how would I go about unit testing this? Here is an example of how to use the class: // set up the object as you would a RemoteObject, but without events: var...

Use StyleManager.setStyleDeclaration to set button skins in Flex

Hello all, I am trying to load an swf file which has button skins as images (In the library of the swf file i have given export properties which is 'TickMark') and set the skin of a flex button using StyleManager.setStyleDeclaration. I am getting errors like 'Argument count mismatch on TickMark(). Expected 2, got 0.' This is what i am...

Can a Flex client app connect to BlazeDS running on a different server?

As far as In understand the Flex technology, a Flex client connects to a Flex server to retrieve business information. Is this the only allowed connection for the client, back to the originating server? Or can a Flex client also open a secondary connection to a different server wich runs BlazeDS for message exchange? (This might offer an...

Flex editedItemRenderer of a DataGrid object

Hi everybody, I have a datagrid and there I want to use the editedItemRenderer to access the text, that I just entered. In the debugger I can see there is a text attribute for the editedItemRenderer but when I want to use that attribute the debugger says something like text is undefined... how can I access it? Thanks Markus ...

Read object from file in flex

I write object in a file. first i convert the object to bitmap data then i write it in a file. Now I want to read object from the file so that it returns the original object. How can i do this? ...

flex binding to a base class property with class inheritance

hi - say that i have a base class called Base, that is Bindable and has a String property like this: [Bindable] public class Base { public var msg:String; } Now, there is a class called Derived: [Bindable] public class Derived extends Base { } i am trying to bind to a mxml component like this: [Bindable] private var d:Derived...

Flex Tree not re-expanding

I have a tree control and after I drop an item in it (which updates the dataprovider) I want it to stay open. I've tried a lot of things including the example at this question which I couldn't get to work so I'm doing something I feel is even more basic. Like this: [Bindable] public var open:Object = new Object(); private function drop...

flex: Checkbox selected field from xml problem

I am trying to set the selected value of a checkbox from a dataprovider (an xml file). <mx:DataGridColumn width="75" headerText="show/hide" dataField="@hidden"> <mx:itemRenderer> <mx:Component> <mx:CheckBox selected="{data.@hidden}" /> </mx:Component> ...

Plain text from PDF using Air/ActionScript

Is there a way to extract plain text from a PDF file using ActionScript? If not, can you give me some hints on how it is implemented elsewhere? ...