actionscript-3

Image Manipulation library/framework in AS3

Hi, Is there a good image manipulation library/framework that can be used in a Flash/Flex application? I'm looking for some distortion effects in fotoflexer.com like bulge, pinch, stretch, squish, Smooth Wrinkles? Any ideas/comments will be appreciated. ...

Flash memory usage in browser?

When I run my swf locally in the Flash Player application, its memory usage starts at around 50 Mb, and though it definitely fluctuates, it generally stays centered at around 50 Mb. Then I embed the same swf in an html page and run it in my browser (firefox). Now the memory usage starts at 20 Mb, but increases at a near constant rate u...

How do I change the background of a Flash document using ActionScript 3.0?

Let me preface this question by saying that I am a .NET developer at heart, just helping a friend with a project he is working on. I have been searching online for something that I think should be pretty simple. Here's what I have: A standard Flash CS5 document with one layer called background. The document is associated with a class ...

Is there any live mxml mx:datagrid full text search example\tutorial?

So I have in my RIA a mx:DataGrid connected to some web service from which it obtains data (Dataprovider). I have a simple text fild. I want to on text in text field change to see in my table only lines containing inputed text in some part of any word in any column. how to do such thing? ...

How come you can change the id of an object in Actionscript but still refer to it with its old id?

For instance in Flex 4 ?xml version="1.0"?> xmlns:mx="library://ns.adobe.com/flex/mx" xmlns:s="library://ns.adobe.com/flex/spark"> <s:layout> <s:VerticalLayout/> </s:layout> <fx:Script> <![CDATA[ private function setLabel():void { trace ("the id is "+myButton.id); myButton.id = "you...

Actionscript 3: Dynamically adding movieclips constrained to a container

Last Edit: Resolved! Well, i was unable to find the ENTIRE answer here but i finally got what i was after. thanks very much for all of your help and patience. as a side note: i think i may have been having problems with using the int and Number types, upon closer inspection of my solution, i realised that Number was being used and not ...

Programmatically close a dateField component

I'm using a dateField component (with editable = true) as an itemEditor in a dataGrid. Interestingly, when editing the textInput part of the dateField it doesn't seem to react to an ESC keydown as I would expect, i.e. reload old dateField value and give up focus. This seems to be standard for most other components, but not for as most o...

Changing texture on ActionScript 2/3

Does anybody knows if there is a simple way to change this var colorTransform:NewColorTransform; colorTransform = new NewColorTransform(); colorTransform.color = Config.ARRAY_COLOURS[1]; color.transform.colorTransform = colorTransform; That is changing colors (the ARRAY_COLOURS have [ 0xFF0000, 0x0000FF, 0xFFFF00 ]) I would like to h...

Resizing an Image with ObjectHandles

Hi guys! Does anyone know how to resize and move an Image with ObjectHandles I need it to be as simple as possible. Thank you! ...

Does the Pixel Bender with Flash would use the GPU ?

I write a Pixel Bender kernal for my flash. I know that the pbk would run in another thread. But when I run my swf, the GPU usage shows 0%. I want to know does the Pixel Bender with Flash would use the GPU. ...

Flash CS5 code hinting not working?

Hi, code hinting doesn't seem to work for my Flash CS5. I already tried increasing the code hint cache size, but it still doesn't do anything. Any suggestions? TIA Steven ...

Can ActionScript 3 reads windows registry key?

Can ActionScript 3 reads windows registry key? If it can't, is there a way to achieve the same purpose. I need to come out with a CD Menu that comes with option to install multiple applications. As such, I need to check the registry to determine which application has already been installed. ...

How do I stop mouse_out firing when mouse click fires.

I have buttons that have mouse_over, mouse_out and CLICK events. But when I click the button it takes me to another frame and the mouse_out event tried to fire. How do I stop that happening? act1_btn.addEventListener(MouseEvent.CLICK, act1Pressed); act1_btn.addEventListener(MouseEvent.MOUSE_OVER, act1Over); act1_btn.addEventListener(Mou...

crossdomain.xml file at subdomains

Hello. This is my site: http://chfmm.ru/2 click at the SEAT and chose any seat. FireBug show error (http://s46.radikal.ru/i111/1010/60/1e43ff9e2bc7.jpg). This photo hosting have 1 crossdomain file (http://www.radikal.ru/crossdomain.xml) what should I do? my code: Security.allowDomain("*"); var context:LoaderContext = new ...

How do you get vid controls to show up in fullscreen video flash as3?

I have been searching and searching for an answer for this. I am building a flash video player with a custom UI, and admittedly I'm not sure exactly what I'm doing. I tried altering a skin, but that always comes out wonky due to whatever coding they use. So I'm altering single video components and putting them in the mc what I want them....

getting movieclip on top of everything else

Hello, i have a bunch of movieclips on the stage and some are nested into others, i would like to have 1 of them to be put on top of everything else on the stage when i start dragging it. Anyone know how to get a nested movieclip on top of parents etc? ...

is there any tool to figure out the memory occupies by the swf??

Well i am not asking about the tool to compress or measure the size of swf file , i need a tool that can show me how many bytes or mbs, my swf is using ?? ...

Comparing parseInt to NaN in Actionscript 3

The AS3 documentation states that if you pass in a string to parseInt that is not a number it will return NaN. However, when I try to compare to NaN the compiler gives me the following error: Warning: 1098: Illogical comparison with NaN. This statement always evaluates to false. The statement is actually true. Comparing to NaN will al...

Disable Zooming/Scaling when player is resized

I am working on an application that uses raster images, so it only looks good at native resolution. Is there a way to force the graphics to never be scaled? It would need to do this no matter where it is running. ...

Flash As3 Loader Problem

Hi iam trying to load a few external jpegs in As3. It works fine locally in Flash, but it dosen't work at all ion my server. My app also loads a youtube video simultaneously. function drawResult(index,videoID,song_title,thumbnail:String=null) { var theClip:resultRowClip=new resultRowClip (); _clip.addChild(theClip); myArray[...