actionscript-3

slightly blurred text and bitmaps AFTER 3d transformation

I have a series of movieclips containing both bitmaps and text. After applying some 3d transformations and moving in 3d space, my text and bitmaps are slightly blurred. This is AFTER I reset all the 3d coordinates (ie z=0, rotationX=0, rotationY=0) Has anyone else encountered this? Is there a solution to get my crisp text and bitmaps ba...

How to get the memory size of an ArrayCollection in Flex

I have built an image cache which is an ArrayCollection containing images. I have built functionality so that the cache can hold a max of 250 images. However, the images can be of a different size, so it's better to limit the total memory size of all images in the ArrayCollection. Does anyone know how I can get the total memory size o...

Flex Tile that expands as items are added to it

<mx:Tile width="100%" height="20"> <mx:Button label="btn"/> <mx:Button label="btn"/> <mx:Button label="btn"/> <mx:Button label="btn"/> <mx:Button label="btn"/> <mx:Button label="btn"/> </mx:Tile> The above Tile has a height of 20. When I add 50 new buttons to it, a vertical scrollbar is added. How can I make it ...

call from Javascript to ActionScript

Hi, Is there any way to call from javascript to actionscript, not using JSON object. thanks, Ravi ...

How do I ping from Flex - AIR?

I'm bored cause my development server is down and I'm running the command prompt to ping the server indefinitely so that I'll see when they stop timing out and know that I can work again. In the meantime I wanted to make an Air app that will do this for me, so I can have it chirp or alarm or do something when it starts to be able to conn...

as3 mouseChildren=true does not hold the name of the button created.

for(var l:int=0; l<anXML.length(); l++){ aButton=new btn_secondTier(); aLocation.addChild(aButton); //var aButtonDefaults:ButtonDefaults=new ButtonDefaults(aButton); aButton.y=l*24; aButton.name=anXML[l].attribute("id"); aButton.title_txt.text=anXML[l...

Help! dragDrop event not firing for my TextArea control

I'm working on a simple view in my app that allows a user to drag an item from a list control and drop it onto a textarea. Seems the dragEnter event fires just fine, but the dragDrop event does not. ...

Find date for same day of the week last year?

OK so for example, today is Tuesday, Feb 02. Well the equivalent "Tuesday" from last year was on Feb 03. How can I find this out programmatically? Thanks!! ...

How to create very dynamic menu like Picnik's?

Picnik's left hand menu: http://www.picnik.com/app#/create/shapes Basic features: Accordion like components (but multiple items can be selected) Each stack has multiple child stacked The whole menu resizes depending on how many stacks are selected and a scrollbar is also shown if necessary So how Do I go about creating a menu like ...

SSL Client Side Certificate authentication in Adobe AIR

I'm trying to use a RESTful web service in Adobe AIR. The service uses client side certificates for authentication, thus I need to set the cert and private key used by AIR/Actionscript's URLRequest when connecting to this RESTful service. Is setting the Cert/Private Key possible in Adobe AIR? I did find some documentation from Adobe p...

Actionscript 3, read file text at compile time?

There is some way to make the flash put the content of one text file in a string, or at least put it in the .swf, so the user don't need to download it? ...

Convert CharCode to Char?

What I need ok I googled this and there are many tutorials on how to get the charCode from the character but I cant seem to find out how to get the character from the charcode. Basically I am I am listening for the KeyDown event on a TextInput. I prevent the char from being typed via event.preventDefault(); Later I need to add the te...

Flash Stage Losing Focus

I built this incredibly brilliant scrolling thumbnail image viewer for a client in flash actionscript 3. (Basically it just scrolls up or down depending on the mouse position). It works so so, (I can never get the percentages right so that it shows the top most image) but, that's beside the point. What is REALLY irking me is when I h...

Flex ColorPicker load colors from xml

Hi, I have a colorpicker that I want to have his colors loaded from an external xml, my xml looks like this <colors> <color label="Aqua" colorHex="0xFFFFCC"/> <color label="Forest Green" colorHex="0xCCFF00"/> <color label="Kelly Green" colorHex="0xCCFF00"/> <color label="Royal Blue" colorHex="0xCCFF00"/> ...

How to use radius style in Flex plot charting

When I use radius property in Flex plot chart It causes a warning says radius has been deprecated, please use radius style There's no online documents about this warning. How Can I use radius style ? Thanks. ...

How to create html page dynamically from flash?

Hi I have a flash movie with a button to 'view items in new browser window.' These items are all dynamically generated in flash. So the html has to be dynamically generated as well. Can any sugest a way to do this? Do I need to use php or some server side script? ...

Memory usage of the current Flex/Actionscript application

System.totalMemory shows the memory usage of the all instances of all flash/AIR applications in the system. Is there a way to find the memory usage of only the current application? Also even if I have only one instance of an application, and I close/relaunch it several times, System.totalMemory increases almost exponentially. ...

Finding the width of TileList - scrollbar width Flex

I've got a TileList with verticalScrollPolicy="on". Is there a property that returns the width of the tileList minus the width of the scrollbar? ...

AS3: Add multiple buttons to stage with eventlistener?

Hi, I've got as far as adding multiple buttons to the stage with AS3 and giving them unique instance names, but now I have a problem. There is no limit on the amount of buttons that could be present, there could be one or one hundred so I can't hard code. How would I go about creating event listeners for each button? I tried pushing ea...

Using Omniture ActionSource with Flash IDE

I have a flash app built in ActionScript 3 utilizing a document class. I have followed the documentation for implementing Omniture ActionSource tracking by adding the ActionSource component to my fla's library, and then importing it into the document class and running the configuration code. However, the app fails to compile because it ...