flex

Flex and Sound Visualization on Streaming Media

Good day everybody, i have one question: I'm using Flex 3 to load and play streaming MP3 media and i'm using computeSpectrum function. There is one note on Adobe documentation about this function that it can not be used with microphone and streaming media. But when i launched my application on my local PC it works great and when i moved...

Wordwrap in AlivePDF

hi friend, when i am showing some text it is going in 1 line only thats why whole text is not visible in pdf. if txt are more it should take automatically next line. please see code below <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" > <mx:Script> ...

Xml request Tags visible ....

Hi there, I'm using the 'text properties' of two Labels and a 'Http Service Call' with an 'resultHandler' getting some Xml from my Php script. This code As Is was working perfectly fine and while working on some other modules I had to clean the Application and at some stage I noticed that the title and fullName was showing up at times ...

Flex component communication

I use a popup loaded from different MXML file: private function showAddPopUp():void{ addPopUP = PopUpManager.createPopUp(this, add_popup, true); PopUpManager.centerPopUp(addPopUP); } That file is as follows (add_popus.mxml): <mx:VBox width="100%" height="100%" paddingLeft="5" paddingTop="5" paddingRight="...

how to round the corners of a DateField in Flex 4

I'm using Flash builder, with flex 4 sdk, I'm trying to create a DateField in which the TextInput component has rounded corners, this is my code, for some reason it doesn't work, anyone knows why? <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adob...

Button behind transparent Hbox unclickable

I have a HBox with no background, but with some children. Behind the HBox is a button which need to be clicked. The button is unclickable at the moment because the HBox is on top of it. I need the button to be clickable and still have the HBox on top of it. Is there a way to accomplish this, because I can't seem to find a solution... ...

Adobe AIR - listing installed applications

Hello, Is it possible to get list of installed AIR applications, optionally only by one vendor? Or, is it possible to check, whether is one application (checked by name/some id/vendor) installed (this method would be preferred) Thank you. ...

Generating progress bar in flex

I am a novice to flex and I am trying to develop an application for uploading multiple image file along with progressbar for each upload. The datagrid holds the name of the file and the progressbar for each file when we select and add a file. When there is progress in file upload, it should be reflected in the progressbar as well. I have...

Sending an E-mail with attachment with PHP from Flex

Hey, I've made a custom compontent wich mails your own drawings to you. But I have a problem to send an e-mail with attachment. I use the HttpService to send the data to the php-file, but I always get the Fault message (form phpFault()). This is my code in Flex: <mx:Script> <![CDATA[ import mx.rpc.events.FaultEvent...

Loading Sound gives exception on Sound.id3

When loading a MP3 to a flash.media.Sound object the id3 property gives an error: SecurityError: Error #2000: No active security context. Offcourse, like many errors in Flex, the Flex documentation doesn't mention a thing about this, except that it exists... The MP3 is valid (i've checked it with MediaPlayer and iTunes), the Sound ob...

Flex AIR custom utility window won't restore with main app window

I'm trying to add a custom window to the main app window without creating a new taskbar item <mx:Window xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="400" height="300" title="Window2" showFlexChrome="false" systemChrome="none" type="utility"> <mx:Label x="164" y="154" text="Test" width="173" height="21"/> </mx:W...

Flex - Changing the color of a Custom scrollbar using CSS properties

Hey everyone, Currently, I am implementing a scrollbar using a custom embedded image using my CSS stylesheet. This is a very simple, thin scrollbar. I would like to configure this scrollbar using CSS properties at runtime, but so far I have been unable to do so. I know it can be done because I've seen examples of it in the net, but no c...

when should I override 1 of the lifecycle methods?

I've read in the flex developer guide that you sometimes need to override one of the lifecycle methods like: commitProperties and updateDisplayList but I've written a few flex apps without ever needing to implement them. when do I need to override them? ...

What is faster plain objects or strongly typed objects in actionscript?

So is public var user:Object = {}; user["firstName"] = "Bill"; user["lastName"] = "Cosby"; slower than if I have a value object like User? var user:User = new User(); user.firstName = "Bill"; user.lastName = "Cosby"; ...

Using a remote PHP service with Flex (Flash Builder) AIR Application?

Hello, I'm developing a Adobe AIR application using Flash Builder 4. This app needs to access a remote PHP service which is being hosted on a remote web server. I am having troubles figuring out how to add a PHP data service which uses a remote service. I can add the PHP data service in Flash Builder as a service hosted on localhos...

Flex: Copying bitmapData of a loaded image into another SWFLoader

I have 2 SWFLoaders like so: <mx:SWFLoader width="10" height="10" complete="imageLoaded()" id="ldr_src" source="img.jpg" scaleContent="true"/> <mx:SWFLoader id="ldr_target" scaleContent="true"/> private function imageLoaded():void{ var bm:Bitmap = new Bitmap(ImageSnapshot.captureBitmapData(ldr_src); ldr_target.source = bm; } ...

Variable Memory Allocation

We declare a string variable like var _variable:String="xyz"; var _variable1:String=new String("xyz"); So i want to know what is difference between those string variables in terms of memory allocation or both have the same allocation. ...

Displaying progressbar for file upload

I need to create an application where I can add files for upload. As I add items for upload, a progressbar should be displayed along with each item added. And when I click for file upload, the progress of file upload for each file should be reflected in the progress bar. The progress should use the function like ..... addEventListener(P...

Flex Preloader sometimes doesn't show before it is at 100%

Hi, I have created a Flex custom preloader, exactly like it is done in this example: http://www.gotoandlearn.com/play?id=108 Now when I implement this, is seems to work fine on my computer in FireFox and Chrome. I publish it on the server, refresh my cache and reload the application and I do get my customized preloader. But on a frie...

how can i retrive the variable i am getting through urlRequest in Flex

Hi I am sending userID through urlRequest like below code, var urlStr:String = "http://[server]/main.jsp"; var urlReqest:URLRequest= new URLRequest(urlStr); var variables:URLVariables = new URLVariables(); variables.userID = 12; urlReqest.method = URLRequestMethod.POST; ...