actionscript-3

Why Sytem.totalMemory keeps increasing?

I have this blank project, just to check out System.totalMemory variable. As far as I can see, i get this values: 3076 3092 3096 3088 3092 3096 3100 3104 3108 3112 3117 3121 3125 3129 3133 3137 3141 3145 3149 ... And so on I had no Flash open, no Internet Browser, no other instance of flash. The project is blank, only one static text...

ComboBox Bug in ActionScript

Hi, I was trying to filter a combo box dataprovider based on the values in the text boxes . When the contents of the dataprovider changes Combo box automatically calls change event method . Please find the sample code below. Filter Utility Function: private function filterLocations(event:FocusEvent):void { locationsList1.filterF...

Is there a way to export a DisplayObject's vector data?

Flex gives the ability to export a display object as a bitmap as follows: var bitmapDataBuffer:BitmapData = new BitmapData ( displayObject.width, displayObject.height, false); bitmapDataBuffer.draw ( displayObject, displayObject.transform.matrix); Is there a method to export a display object as a vector graphic instead of ...

How can I use SWFLoader purely from Actionscript in Flex 3 and dynamically load content?

Hi Friends! I'm doing a Flex 3 project wherein I've to load SWF based on the availability of required file. And the loaded SWF file will be placed in a container (a Panel) at a particular location i.e. coordinates. This I don't want to do in MXML as the SWFLoader container shows a cross marked box if the file is unavailable. So friends...

variable variables in actionscript 3

so.... eval() out of the question, any idea to do this? I also don't know how to use "this" expression or set() in actionscript 3 ( i seem couldn't find any complete reference on it ), just say through php file a multiple variable (test1, test2, test3,...) sent by "echo", how the flash aplication recieved it? I'm trying not to use xml on...

How to use animation with augmented Reality?

Hi there, I can display images on marker using flarToolkit in flash as3 but can anyone suggest a good link/tutorial which explains how to use animation with augmented reality in flash? ...

AS3 Embed or Import all Classes in an external swf without referencing each Class seperatly.

**I have an ArtLibrary.swf file which has hundreds of MovieClips exported with class names. I want to be able to use these movies in multiple different flash files i'm working on but I don't know how to properly reference them after using and embed command. The following works** [Embed(source="ArtLibrary.swf", symbol="BirdBodyColor_...

What exactly is garbage collection and how do you do it in ActionScript 3.0?

I've been programming in ActionScript for about 6 years now but never heard of the term 'garbage collection' until AS3 came out. Why do we have to worry about it now, and never before? And what, precisely, is it? From what I've read/heard, it has something to do with memory management/leaks, etc. -- and even that I don't understand much ...

Cloning WebService

Is there a way to clone WebService object in as3? The ObjectUtil method seems to throw an error. If not is there a way to cache wsdl and assign it to new WebService object so that constant loading of wsdl can be omitted? ...

flex keyboard insert mode overtype or insert

Hi, In my flex application, I would like to know the edit mode of insert key programmatically. In the status bar of the application there should be an indicator for the mode in which currently working. As the insert key is toggle key, how can i know the mode of it? Thanks in advance. ...

How to find where an object is created in flex/actionscript 3 ?

Dear All, In my project I have noticed 20-40% CPU time when my app is idle. In debugger when I pause I always land on a flex.utils.Timer/tick. This timer has 30ms delay between "ticks" I didn't create that Timer... so this is problably a component I have added Unfortunately it will be difficult to remove all compenents until if find th...

Filter XMLList to nodes/attributes that have a certain namespace prefix

Hi all, This is best explained using an example. I have an xml document that has namespace qualified elements. What I want to do is search the xmlList to see how many namespace qualifier elements and/or attributes there are. So for example some text So for the above xml doc the namespace xsi would have 1 node returned from a search...

Realtime duplicate of MovieClip

I have a MovieClip containing an image. The image can be dragged around inside the MC. The MC has a mask, let say round, so not all of the image is visible all the time, depends on where you drag the image. What I need is a real-time duplicate of this MC as a smaller thumbnail. When I drag the image around in the MC, the duplicate thumb...

Flash player IE7 BitmapData send to server with amfphp

Does anybody experienced this kind of fault. So i have some kind of imageuploader. It fetches an image, grabs the bitmap data from it. convert that with a jpgencoder to a bytearray, send that bytearray to a server with amfphp and in php save that as a jpg on the server. So this works great in FF, Chrome, Safari, Opera ( Mac & Windows ...

Flex : Unable to open 'locale/en_US'

Using Flex Builder : I have created a new Actionscript Project. I want to use mx.controls.Button class in it, so I did the following : Added '-locale=en_US -source-path=locale/{locale}' to the Actionscript compiler arguments Added 'framework.swc' to the library path But now I get this error: unable to open 'locale/en_US' I looked up...

Transform MovieClip in perpective with Matrix

[AS3] How can I transform a MovieClip to be in the exact same perspective as the image on this lunchbox? Is it possible using Matrix todo this or is there a better way? I would love it if you could answer with an example code. Update I have to target Flash 9. Update2 If it's possible using matrix, can you give me the number to get t...

How do I amplify sounds by a specified number of decibels in AS3?

A few days ago, this was my question, and I found the answer. Maybe this will help someone else. A. The first part of the problem: can you amplify sound using Flash? The AS3 documentation for SoundTransform says this about the volume attribute: "The volume, ranging from 0 (silent) to 1 (full volume). At face value, this means you can...

How can I stop Flash from changing indent when user Clicks on hyperlink in TextField?

I have a TextField which I initialize by setting htmlText. The text has anchor tags (hyperlinks). When a user clicks on the hyperlink, the indentation of the second and subsequent lines in the paragraph changes. Why? How do I stop it? My html has an image at the beginning of the line, followed by the tag, followed by more text. To sty...

actionscript 3 and using fonts

How can I make my strings and text attributes bold in my actionscript code? I'm working with the code behind pattern so i have an mxml component with a text attribute. I then have my actionscript component where I concatenate three text attribute and set them as the text property on the mxml text component. I want to be able be flexib...

resizing event in flex

Hi community, I have the following problem. I use a custom component for painting a graph on a canvas, now when the windows is resized I want to determine the actual width and height of my canvas to resize the graph as well, therefore I used the resize event I can use in mxml. Now I detected in my method for resizing I only receive the ...