flex

Flex HTTPService Progressbar

Hi, How can I set a progress bar that may start when an HTTPService is sent and stop when the HTTPService ends? I followed code given here but encountered following error: Type was not found or was not a compile-time constant: ProgressWin. Don't know whether ProgressWin.mxml is a component or module or what. I just created a ne...

registering event listeners in a controller

I'm working on creating a simple MCV application, in order to understand MVC better. The problem I'm having is registering event listeners. The way I see MVC is that the view dispatches events, the controller listens for these events and acts on them, either updating the model or amending the view. So in my MVC app I have a controller wh...

Mate: Unable to set property model

Hi, i hope anyone can give me an hint to my issue... i have an Application with modules. Every Module lives for itself. There are no shared events or something between them. In my modules there is a datagrid and with a contextmenü, the details of selected data opens in a popupwindow. The modules are controlled by an loalEventMap and a p...

Flex: Remove OK Button from Alert.Show?

Hi, Can i remove the OK Button from Alert.Show() message which displays by default? Thanks Update: private var myAlert : Alert; public function showAlert( message: String, title : String ) : void { hideAlert(); myAlert = Alert.show( message, title); } public function hideAlert() : void { if( myAlert != null && myAlert.v...

Accessing Data of a ComboBox with an ArrayCollection dataProvider

[Bindable] public var groupsList:ArrayCollection; public function groupListRH(event:ResultEvent):void { groupsList=event.result as ArrayCollection; } <mx:ComboBox dataProvider="{groupsList}" labelField="groupName" id="grpLst" width="150" prompt="Select one group " ...

Handling TextInput width and styles in Flex

Hello! I made a Form container with few TextInput fields in Flex and I would like to change a style of clicked TextInput element. I managed to do it with MouseEvent.CLICK event listener but it is not what I expected. I would like to change style of TextInput when user try to edit that field. However, I want to change back to 'default' st...

Why do Flex charts axis values/labels not show up when using Runtime Share Libraries

I have developed a flex application using the data visualization components. I am now trying to optimize the application and one of approaches I am trying is to use Runtime Shared Libraries. I have configured Flex Builder to deploy with Runtime Shared Libraries and have added the .swz file for the framework, datavisualization and rpc s...

Why does the Flash Player throw a sandbox error in this case?

I get a Flex 3 sandbox error #2048 after connecting to a Socket on a Java (1.5) server. The server code is all mine, i.e. not running under Apache. Flash Player 10.0 r32. The sequence is as follows... 1 Java server starts, listens on port 843 for policy file request and on port 45455 for my other requests. 2 Flex client served by Ap...

Flex AdvancedDataGrid dataChangeRequest

Hi, Can anyone give me an example of the use of the dataChangeRequest Style on the AdvancedDataGrid, I can't seem to get it working. I'm trying to make the cell of the item flash when the dataProvider is updated. Many Thanks ...

Getting handles to dynamically-generated Flex components

I have a Flex application which references a separate MXML file as a template for a custom component. I create instances of the component dynamically several times in my program, but I need to get a handle that will allow me to modify that instance of the component as desired. I pass specific information to this component on instantiat...

Flex's SOAPDecoder returns strongly typed empty objects

Hi, I've been using Flex Builder in order to generated myself a set of WS proxy stubs for my project. When I try to invoke certain methods I get strongly-types object as a response, however when I invoke other methods I get strongly-typed object with nulls and Nans (notice that I do not get any kind of error result event or exception). ...

Aligning Shapes on a plan, Algoryhtm

Hello Coders ! I am developing a simple diagram tool with shapes on a plan using flex. First i was using a simple 20*20 grid. But the real cool stuff out their is auto axe magnet effect, that's how i call it at least to see why i mean by that i made a small video of balsamiq. http://screenr.com/clB http://www.balsamiq.com/ As you ca...

flv player control time

Hi I am using the flex flv player component and i want to be able to skip 5 seconds forward and backwards , at the moment from what i understand from the documents it is not acurate because the movie can only skip to keyframes sometimes making the skip 6 or 7 seconds. the same goes to cue points which the flv might miss the actual poin...

flex array collection

public function groupListRH(event:ResultEvent):void { groupsList=event.result as ArrayCollection; } public function show(event):void { selectedItem=(event.target as ComboBox).selectedIndex; Alert.show(selectedItem.toString().groupId); } <mx:ComboBox dataProvider="{groupsList}" labelField="groupName" id="grpLst"width="150" ...

The filename of a just loaded file via FileReference is not available

To load 3 files locally into the Flash Player, one might using something like this manage the sequence after the user has chosen the files... private function uploadList(evt:Event):void{ var arr:Array = fileReferenceList.fileList; for each(var item:FileReference in arr){ item.addEventListener(Event.COMPLETE, onFileLoadComplete...

Make Flex Builder debugger start listening for incoming debug session connections

Is there any way to get Flex Builder to connect to an existing browser session running Flash Player Debugger? I can connect to FDB like this, but with Builder I need to click Debug and rush to close the newly opened browser window before it loads the Flash file and then go back to the session I want to connect and right click it to start...

incorrect argument - vector

I'm trying to port the code from flipbook component in Flex to Air 1.5.1, it gave this error 1137: Incorrect number of arguments. Expected no more than 0. delta = new Vector(new Point(x,_pointOfOriginalGrab.y),new Point(x+10,_pointOfOriginalGrab.y+1)); How do I make it work in Air? ...

Degrafa States Memory Management

I was recently profiling my application that uses Degrafa States in the skins and noticed that doing so uses more memory than I expected. Between the SetProperty and State, they were using about 10% of the total used application memory. Would it be better to use css for the state changes and a new skin for each state? or Are there some...

How to get XML tag names in AS3

I am trying to get the child XML tag names in my AS3 program. For example, I have a file with information like this: <LocationInfo> <City>New York City</City> <State>NY</State> <Zip>10098</Zip> </LocationInfo> I load the file into an ArrayCollection and can access each item I need by name such as ["City"] // Returns New...

How can I bind a flex component's height to the height of the browser window?

I want to constrain the height of a flex component to the height of the browser viewport. The component's children are populated from a database table using a repeater, and are basic checkboxes. There are enough of them that the flex app ends up being about twice the height of the screen, which means some of the rest of the layout goes...