flex

How to handle D-n-D to a Sprite?

Hi, I need to detect when a user Drag-n-Drop an object into a sprite. Here's a sample app that illustrates the issue. It never gets to the alert: tks. <?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com...

Determine if someone is on with flash?

I want to update a row in mysql when a user uses an application with flash. And when they exit that application, I want to change the row to reflect that the user has left. Is there a way to do this easily? Currently, I'm thinking of writing a connection manager with sockets. ...

How to set an event listener for mx:image to kick in after image loads

Is there a way to dispatch an event after Flex loads an mx:image? I'm loading image externally and don't know the width/height until it's loaded. I get an exception when I call width/height to the image before loading. ...

How to add datagrid column name in Adobe Flex

Hi, I have defined the datagrid as follows <mx:DataGrid id="dg" width="100%" height="100%" > In the part i am trying to get the details from the database and setting the dataProvider for the DataGrid as follows. var arrayContent:ArrayCollection = new ArrayCollection(); for(var i:int=0;i<assetClassDetails.length;i...

Flex: Read bytearray

I use the following to upload a file to Flex: private var filer:FileReference; protected function button1_clickHandler(event:MouseEvent):void { var fd:String = "Files (*)"; var fe:String = "*"; var ff:FileFilter = new FileFilter(fd, fe); filer = new FileReference(...

how to detect screen resolution changes dynamically in adobe AIR

Hi, Screen class in actionscript provides the latest total screen bounds and available screen bound, but doesn't allow to attach listener to listen for changes on runtime. is there any way of detecting screen resolution changes on runtime, it is required to size the application whenever screen resolution is changed. e.g. in case when m...

Scheduled Media Streaming

I have a video that needs to be delivered through streaming, but all viewers need to be synchronized at the same time regardless of when they started the video. If the video starts streaming at 7:00 and someone visits the page at 7:05, they should see the footage at 7:05 and onwards. Does Red5 or Flash Media Server or any other streami...

Wny Linux sends unicode keyboard events while Windows sends ANSI

Unde linux, the foreign keys such as ü Ü do not seem to work with this code: String.fromCharCode(e.charCode).toLowerCase(); The output is wrong under Linux, but Windows is Ok. Here is sample page to debug this: the output of foreign keys such as ü with Linux looks same here, totally broken, two chars appear: http://www.bgxcomponents.c...

Problem with policy file for ActionScript 3 XMLSocket

Hi everyone, we've developed a tailored server in .NET to host some basic chat/IM functions for our website, and the client is written in Flex (AS3) using XMLSocket. Now we have 2 servers, one dedicated to purely sending policy files, and one handling IM/Chat functions. Problem is, we can see the client connecting, the policy file is s...

Flash.text.textfield.ScrollV no more works with newest flash player 10.1

Scrolling textfield is no more working with player 10.1.82 My code is: SCROLLV = SCROLLV +2 text is scrolling down nicely with older players, but now with newest player it never scrolls. scrolling WORKS OK with player: 10,0,12,36 scrolling FAILS with player: 10,1,82,76 ...

can't we use 2 timer events in a single application.....

Hi Can we use 2 timer events in a single application. I'm trying to use 2 timer events in a single application but the 2nd timer event is not working.... any one have an idea??? how to use 2 timer events in a single application.... Thanks in advance.... ...

While loading data make all the components disabled in adobe flex

I have a vertical tab-bar with 4 items with different sub tabs. All the four items use data from a single xml file, which is a big file. When the user clicks on a tab, while the data is being loaded this error is shown. TypeError: Error #1009: Cannot access a property or method of a null object reference. I want to disable all the tab...

SQLLite with Actionscript (AIR) for all users

Hi I would like to save settings for an AIR application to a local SQLLite database. Wherever i read, it's recommended that you use File.applicationStorageDirectory to save the database file. My problem is that in most cases, the AIR application will be first started by an administrator that configs and setup the application (and save t...

hitTestPoint not giving correct results

I have a movie clip on which I have added a MouseEvent.MOUSE_OUT listener. movieclip.addEventListener(MouseEvent.MOUSE_OUT, removeMovieClip); Now the logic is to remove the movie clip on MOUSE_OUT and add it back to stage on MouseOver of another button. The intended functionality is like a slider showing some info The MouseEvent...

flex air show pdf preview

Hi, I am using urlloader to load a tiff file from the server. Then i get it as ByteArray and show the image in a popup window. var bytes:ByteArray = urlloader.data as ByteArray; i use the TIFFbaselineDecoder to decode the bytes and open a popup to show the bitmap. Works nicely. Now, i want to do the same thing for a pdf file. How can ...

Data binding from a method in Flex

Hello all, I have the following mxml (Omitted some parts for brevity purpose): <fx:Script> [Bindable] private var _dataSet:IDataSet; public function set dataSet(value:IDataSet) { _dataSet = value; } private function getColorItem(itemName:*):String { if (itemName == "Research") return "#31e5fc"...

Is there any free, small, fast, thing for compiling ActionScript-3 Flex apps on windows?

What I want is as small, as light and as powerfull as this for C# development environment for developing my AS3 RIA's on my EEE PC. On Windows. In general I need codehinting (at least like FlashDevelop has) And UI designer-builder (as similar as possible to one I have in Flash Builder at work,.. at leat like this but for Flex framewor...

Good papervision3D tutorials for Flex?

Hi, can any one please suggest to me some good tutorials for papervision 3d. I have to work on one project using papervision3d, but on searching in Google, I am not getting any ideas on what to study. Please suggest to me any good links to start studying about papervision, thanks in advance ...

Should I use Flash or Flex?

Here at SO, I asked what language I should use to create a web app that would capture video from the user webcam and send it to the server when he clicked 'submit' and the answers were mostly Flash. But searching the web I got confused with this Flash/Flex thing as they say Flash is to make animations and Flex is to really create web ap...

[PyAMF] How to use the remote object properly in flex, with as3 and pyamf or phpamf server side

I see that I never get a response from server when making a request. im using firebug to test the network communications. ...