flex

Inheriting properties from a DisplayObject

In regards to as3 project: Is there a way to inherit the properties of a given DisplayObject? I am looking for a single method that will grab something like the x, y, width, height, color, etc. Whatever is involved in the common classes between the two display objects. ... Edit: I don't think I was clear enough... Let me give an exam...

Flex TitleWindow.addChild removes original object

In my application, I have a chart that I want to display in a TitleWindow when clicked on. var win:TitleWindow = PopUpManager.createPopUp(this, TitleWindow, false) as TitleWindow; win.addChild(myChart); PopUpManager.bringToFront(win); It does indeed place the chart in the titlewindow that shows up, but it remov...

Java Hibernate Memory leak

Hello, I'm developing a Flex application with BlazeDS and I'm experiencing memory leak when using java to query from MySQL in hibernate. Can anyone tell me how to deal with this memory leak? It seems that each time query is invoke java.exe takes more memory. Thanks Sample of my java factory = Persistence.createEntityManagerFactory(PE...

file transfer in flex

Hi, Try to explain my problem first. In my local drive(C:\temp) have zip file.I want to transfer this file in the server location. the problem which i faced, i want to do that without fileReferenceList.browse(); fileReference = FileReference(fileList[0]); In fileReference variable, may be given the file object. How I can make the p...

Flex:Virtual Keyboard

How can i create a virtual(on screen) keyboard in flex? ...

Flex: Masking Windows Shortcut Keys?

How can i prevent windows shortcut keys from working in my flex appln.. For example when i press F1 i want some other function to occur instead of generating 'Help'. ...

How can I get all the filename of a directory in flex?

In Flex How can i get all the filename which contains in a directory in flex AIR. ...

How to create a Web Server for asynchronous request from a Flex/Air client?

I have created a client with Flex Builder which works in a browser but also in an Air windowed application. I must connect it to a server and it has to do asynchronous request related to changing data of the server. Because of the too much expensive cost of LiveCycleDS license, I was looking for other ways, maybe open source and i found ...

Switching from HTTP to HTTPS in a Flex application

Hi, I am building a FLEX web application that also has a payment module where the user needs to enter his credit card details. The whole Flex application runs on HTTP. However, whenever the user lands on a page where we ask for credit card details, we want these details to be sent over HTTPS. In this page we need information from the m...

Filter columns in flex datagrid using CheckBox

Hi, I have a flex datagrid with 4 columns.I have a comboBox with 4 checkboxes,containing the column names of datagrid as its label.I want the datagrid to display only those columns which are selected in combobox.Can anyone tell me how this filtering of columns in datagrid can be done? Thanks in advance. ...

How To update contextMenu after it shows in flex

The thing is I load context menu items dynamically and it takes time to load, so context menu appears with default values the first time. But if you right-click again, yo see the loaded values. Is there a way to refresh items while the menu is still opened? or someway to reload it? ...

flex 4: mx/fx/s object types. any information about the structure?

Hi. flex4 provides the following namespaces: xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/halo" what's the difference? which namespace provide which function? where can i find info about that? ...

Packages and MXML components

How do I say an MXML component is inside some package? Well, it's in a different folder... I know how to do it ActionScript... But when I do in MXML I don't declare the package explicitly because I don't know how, and when I call it to my application, it states that The prefix "package" for element "package:Component" is not bound...

flex 4: item renderer with data provider from soap: cannot convert ir@194e5851 to mx.controls.listClasses.IListItemRenderer.

hi. i'm trying to populate a <mx:List> with a dataProvider that i received from a soap request. i get the following error when i try to achieve this: TypeError: Error #1034: Type Coercion failed: cannot convert AchivementsItemRenderer@1906a851 to mx.controls.listClasses.IListItemRenderer. at mx.controls::List/createItemRenderer()[E:...

Flex: Drag and drop, simple example

Hi, I want to implement drag&drop possibilities in my application. Here is my source code: I added images to the container, and now want to be able to move them from element PieceContainer to element board (defined in the another class). I tried to define mouse move handler as it was shown here: http://livedocs.adobe.com/flex/3/html/he...

How do I set the "format" used for drag'n'drop on a list control?

I'm dragging from a TileList to a custom component. I want to know what is being dragged before I accept it. How do I set the "format" that is used for "event.dragSource.formats" in the DragEvent? Edit for clarification: When you set "dragEnabled=true" on the TileList, it takes care of the drag source stuff, but it uses "items" as the f...

Flex: Stop TabNavigator from adding #HASH to URL

Ok I have a TabNavigator component that keeps added a hash (#) to the URL. I need to prevent this. I have it set to historyManagementEnabled="false" but it is still adding the # to the URL when it initializes. The reason why adding this hash is such a problem is because, I am using .htaccess to give my URL a pretty URL like domain.com/d...

My events are being dispatched but nothing is happening? Do they have scope?

I have a flex app under construction that makes use of a lot of . I have a main module that has child modules. Ugh, I know. in one of these sub-modules, i want to know if i click a button. The handler for that button-click resides "higher" up in the app. I added an eventlistener looking for the event that I dispatch down in the sub-modul...

How to create tile wallpaper in flex?

Hi I am trying to make tile wallpaper in flex. I did stretch or normal use the backgroundSize as 100% and "auto". But i have no idea about how to create tile. Can someone help me with source, instruction or the best would be a source code. Regards Zeeshan ...

Scrolling of List control is misbehaving

I am having this very weird behavior with a mx:List control not scrolling properly. Here is a snippet: <mx:List itemRenderer="customerRender" x="19" y="257" height="68" width="290" id="orderStatusHistoryList" color="#CCCCCC" rowHeight="35" ></mx:List> The custom render creates a vBox that is 35 pixels high with some labels in it. N...