flex

Using timers in Flex

Hello, I am programming an aplication with Adobe Flex, but because i just begining with this language a couple of days ago i have a lot of doubts. I have created two states and a transition between them, now my goal is to programatically switch over and over again between these two states every 5 seconds. I aproach this using timer obj...

how update an image dynamically using data binding, need example/help

Hi all, new to developing with flex3/as3. I have a main.mxml application that lays out my application, it contains a "browse and upload" button. And contains an image to view the users uploaded image like so: <mx:Application <mx:Script> <![CDATA[ import model.myModel; import control.myControl; // Create data model ...

Delaying or sleep program for some time using Adobe Air

hi, I am developing a application using adobe air and flex .....i have a block of code which should not execute for sometime for example. private function filewrite():void { //some code 1 //STOP EXECUTION //some code 2 } something like this should happen...is there any Thread concept in adobe air?....how do i do it usi...

Flex Compile Time Constants - Timestamp

I'm trying to use Flex Compile Time Constants to include the date and time the SWF was built (source control revision/timestamp such as SVN:Keywords is not sufficient for our needs, we need to know the actual build time, not the commit time). I've tried using actionscript (like the documentation suggests you should be able to): -define...

Encrypt/Decrypt Image in ActionScript 3

I am developing a mobile app that involves (essentially) picture messaging as a feature. I need the images to be encrypted/decrypted with a simple, plain-text password. Due to the nature of the images being captured, it is /critical/ that the encryption and decryption processes happen on the device. After sitting through a presentation ...

Flex: How can I Make changes to an ArrayCollection bound to data grid live?

Hi guys, I have an ArrayCollection bound to an editable DataGrid, another component needs to know when the ArrayCollection changes (as a result of changes in the DataGrid) so it can also update itself, so is listening to the COLLECTION_CHANGE event of the ArrayCollection. The problem is that the DataGrid only updates the ArrayCollectio...

how can i call from my website to mobile or landline phones. (in PHP,Flash, ..)

Hi all, I wish to call from mywebsite to mobile phone, how do i implement in PHP or Flash. Is it possible in PHP, flash, or any other technologies. ...

AS3: How to dispatch event from actionscript class

Hi! I have small chess application which consists of cells and boards. When user moves an item to the board, I want the board cell to dispatch an event so Board can listen to it and call a listener public class BoardCell extends Canvas { public function Sample():void { ....Some code var e:Event = new Event("newMove") ...

Which is the best way to monitor USB port with flex or flash?

Hi, I want to write an application that monitor the USB port, and when something is connected should show the contents of the drive (image viewer) automatically. there is any way to do that with Flex/Flash directly? or i might program another application in C in order to monitor the USB port and then comunicate with the front-end appli...

Custom project in Adobe Flex Builder 3?

Is it possible to create a custom project type using Adobe Flex Builder 3? I'd like to create my own custom project template that creates certain directories, sets Source Path and Library Path values, etc. so that I don't have to do it manually. I'm using the standalone version of Flex Builder, which is running on Eclipse 3.3. Thanks!...

Flex and embbed fonts shared library

Hi , I have a question regarding flex and embed fonts , i want to have a library of embed fonts that will have about 30 different fonts . Is there any way i can only load the fonts that i use? ( dynamicaly ) Thanks ...

How to extend SWFLoader component to "fit" any sized image inside it?

SWFLoader's scaleContent is not able to do what I'm trying to achieve: <mx:SWFLoader id="img" width="600" height="400" scaleContent="true"/> When an image of size 100x80 is loaded inside it, the image does does not resize to 600x400. That's because scaleContent = true. Then, I set maintainAspectRatio = true. The image did resize to ...

array of loaders?

How does one create an array of loaders? The bigger picture: I have written a mapping program in flex. I want to change my mapping program so that all I need to do is drop in a new xml file instead of going into my flex file and adding the exact number of item loaders I need. So I guess I'm looking for an array of loaders that can load...

Passing and receiving data from a module to my main application using interfaces.

Hi there! I read (twice) this very useful article: http://blogs.adobe.com/flexdoc/pdfs/modular.pdf And, I know that the best way to make a connection from my main app to my modules is through interfaces. So, my problem is, how can I implement an interface so my module can send and receive data from my main app?, cuz, I understand that...

Launching Terminal on Mac OS X from Adobe Air 2?

How do i launched Terminal from air 2 passing arguments and command as well? ...

Difference between Array and ArrayCollection(Flex)

What's the difference between array and arraycollection? ...

Datagrid refresh when dataprovider is updated

hi, i am working on an aplication using flex,adobe air...i have a datagrid with a XML as my dataprovider...during the execution of program my XML is updated....after XMl is updated and saved my datagrid should also get update ......I have used Dataprovidername.refresh() method but it is not working.......please help me in this Tha...

[Flex] Error 1120: Access of undefined property ...

Hi! I have a <mx:Script> on the main file, where I define this: [Bindable] private var dpCols:ArrayCollection = new ArrayCollection([ {'prx':'bl', 'nmb':'Blanco', 'ral':'RAL1013', 'hex':'E8E4CD'}, {'prx':'am', 'nmb':'Amarillo', 'ral':'RAL1005', 'hex':'C79E03'}, {'prx':'gr', 'nmb':'Gris Perla', 'ral':'RAL7045', 'hex':'8E939E'} ]); I ...

Advance Datagrid -- Add check box in header

How we add check box in advance data grid header Thanks ...

How to add custom component in context menu of datagrid

How to add custom component in context menu of datagrid.Here custom component like one text box with formatting details. ...