flex

Flex: How can I drag the actual element rather than a proxy?

Hi, I'm trying to implement a dragging system which can only be described as similar to dragging the map on Google Maps. I can set up dragging easily in Flex, but unfortunately the standard model of dragging i.e. dragging an element proxy and dropping it in another element is not what I'm after. Is there anything built into flex where ...

swf is cutting when i press ctrl+scroll embeded with html

Hi all I have embedded a swf file in html and the same is rendered in browser.When user tries to re-size, ie, using ctrl+scroll, the html content is resizing automatically, but the Flex component gets chopped off. Can we fix this? Basically, ctrl+scroll is a browser property, when user does that the flex contained in that browser also sh...

Flex + Dynamic adding Data into List

I'm totally new to Flex (moving away from Java for now :(). I have an XML file, I read the data and want to add it to a List and then use the List to be displayed. Something like this is what I want to do: List data = new ArrayList(); data.add(item1); data.add(item2); How can I do this, also how will I display the List in a table!! ...

To retreive Date in the same format as stored

Hi Friends, I am facing an issue in my Flex application. I am creating some array collections and storing date objects in it.In the later part of the application I will create 'advanceddatagridcolumns' with these array collections as the data sources. Initially while creating the Array Col , I do have the 'formats' given by user, for ea...

Using Flex to keep local SQLite database in sync with live server database

I want to create a Flex 3 application running in Adobe Air that accesses an SQLite database and I need to keep this database in sync with an SQL server 2005 database running a website. Is this something that Flex supports or is it going to be a custom script? Also, has anybody done anything like this? Edit: The synchronisation can be d...

Ability to click on axis (Axis Interactivity)

Hi, I need to have interactive axis where user can click on it and I can return the clicked data points. Please provide suggestions in this regard. Thanks in advance. ...

Requirements to create Adobe AIR application

Hi All, i am working with Flex for quite sometime. but i hadn't get any chance to even look at Adobe AIR platform. I am planning to do some personal softwares using AIR. Provided the background that am an absolute zero in AIR, what all should I have in my system apart from Flex builder? And how fast i can learn AIR if I am pretty comfo...

flex swfloader: can i control the volume of the application i'm loading ?

Hi. i have a flex application that loads flash files using SWFLoader. is there a way to control the audio volume in that swf from my flex application ? ...

flex swfloader: is it possible to add classes and functions to the loaded flash file?

Hi. I have a flex application that loads swf files and displays them using the SWFLoader object. is there a way to provide different classes and functions for the swf application to use? for example. if the swf file that i'm loading has the following function: function testme(): void { trace('test'); } can i somehow override that f...

flex 3: netconnection - how do i set a timeout?

Hi. Using flex 3, how do i set a timeout for a NetConnection? code sample: nc=new NetConnection(); nc.addEventListener (NetStatusEvent.NET_STATUS,checkConnect); rtmpNow="rtmpe://host/test/test1"; nc.connect(rtmpNow,fuid,gameName); ...

SWFLoader starts to play SWF without the loading being complete

Hi, I need to play SWF files in my project. These SWF files have background music in them. The which Sound Sync Options of this music in Flash is set to "stream". This is done so that if you pause the Flash movie, the music will pause as well. Now I have a problem when I am loading these SWF files. For this I am using an SWFLoader. W...

Flex + DataGrid + Dynamic Display on Selection

Back again with another Flex question. I have an XML structure like... <Student> <Name>X</Name> <Age>14</Age> </Student> <Student> <Name>Y</Name> <Age>16</Age> <Address> <HNumber>1</HNumber> <HName>Something</HName> <HPin>33607</HPin> </Address> </Student> Now I got his displaying on my grid by saying dataProv...

detect the size of swf. flex/as3

I'm creating a map that has points of interest. (POI) When a user mouses over the POI an info bubble pops onto the screen and it loads an swf. I currently have 3 problems. My 4th problem is that this is due Monday 21st! so any help would be greatly appreciated! I can't detect the size of the swf so that my infobubble will size itself t...

FlexBuilder 3 - ActionScript Only - AIR Application

Using an ActionScript only project for AIR dev in FlexBuilder 3. I've already gone through the setup of changing the .mxml to .as to generate the main working file. I've also used NativeWindow.stage to get access for addChild, etc. Is there something I'm missing? When I try to use any flex codebase, there are always 'VerifyErrors'. Also,...

Flex Alert control: Activating the "default" button on enter/space key-press

No matter what I try, I can't seem to fire the click event on the "default" button in an Alert control in a Flex 3.4 application. Alert.show( 'Are you sure you want to delete the selected link?', 'Confirm Delete', Alert.YES | Alert.CANCEL, null, confirmDelete, null, Alert.YES ); In the above code sample,...

Flex - Saving a new order of items of a HorizontalList through AMF

Hi, I've been working with the drag-and-drop of items inside an Horizontal List in Flex. It works fine, but now I need to save the new order through AMF in my database. I'm pretty sure it's quite easy, but I haven't figured it out yet. Is there a way to cycle (after the reordering) all the items so that I can get for each item its (new...

Embedded font looks different than supposed to

When an embedded font is used for a label it looks correct, but when the same font is used for a combobox, the selected item font looks different from the dropdown and label font. @font-face { src:url("/assets/fonts/Helvetica.TTF"); fontFamily: "Helvetica Neue Bold Condensed"; fontStyle: normal; fontWeight: normal; } ...

Flex list switching itemRender of selected item

In Flex 4 (beta 2), I have a list control populated from an XMLListCollection. What I would like to do is when an item is selected in the list, use a custom item renderer on the selected item as well as the item that appears just prior to the selected item in the list. I am using a spark list control, but I am open to alternate compo...

XML attribute access in AS3

Hi, I have an xml file (loaded in with URLLoader) that looks like this: <?xml version="1.0" encoding="UTF-8"?> <root> <localizations> <words> <Brand us="Brand Here"></Brand> </words> </localizations> <world squareunits="100"></world> </root> Once loaded,what is the quickest way to access world.squareunits ...

Low Overhead Dynamic Tab/ViewStack in Flex?

Suppose I have a ViewStack like this: <mx:ViewStack id="s" left="5" right="5" bottom="5" top="0" width="100%" height="100%" creationPolicy="all" minHeight="0"> <mx:Repeater id="repeater" dataProvider="{dp}" height="100%" width="100%" minHeight="0"> <mx:Box id="bx" label="{repeater.currentItem.label}" width="100%" height="100%"...