actionscript-3

as3 library for transforming images during runtime(scale, rotate, skew)

Does anyone know any as3 libraries that allow you to scale, rotate, skew, etc.. images during runtime? I have found the greensock transform manager class, but would prefer not to pay $300. ...

Custom tileList component row colors returning errors, when loaded into external swf. Error #2007

I have a TileList component that works well when i load it just by itself, however, when it is loaded into an external swf i get the error. TypeError: Error #2007: Parameter child must be non-null. at flash.display::DisplayObjectContainer/addChildAt() at fl.controls::BaseButton/drawBackground() at CustomRowColorsLeftSide/drawBackground(...

Actionscript 3 pixel perfect collision. How to? (learning purposes)

I know that there are people out there creating classes for this (ie http://coreyoneil.com/portfolio/index.php?project=5). But I want to learn how to do it myself so I can create everything I need the way I need. I've read about BitMap and BitMapData. I should be able to .draw the MovieClips onto a BitMap so I could then cycle the pixel...

Weird problem with a custom bindable class and a vector.

Hello.... I'm having a very weird problem with a vector in my application. Details... I have the following classes. Person,Player,PlayerController. Player extends Person. Person extends ObjectProxy in order to enable binding. So the Player class has the [Bindable] tag. The PlayerController class contains a remote object calling a ph...

AS3 - How to handle assets during preload

Hey ! I'm having some difficulties with preloader and assets. I'm working with FlashDevelop so pure AS3/Flex, no FLASH IDE The thing is : when I try to addChild() something like a swf or event a simple png/jpg it kills the preloader completly (blanck screen until the game is fully loaded, then the preloader is launch (but the game is a...

add an event to the movieclip inside tilelist in as3

I am working on a component where i need to register a click event on a button inside the moviclip which is inside a tilelist, can somebody point me in the right direction. Tilelist -> movieclip -> button (i need to register a click event on the button). ...

Can i random an array with no reptition of same number at any index??

i have an array in as3 which has elements like MyArray2[0] = 25; MyArray2[1] = 31; MyArray2[2] = 45; MyArray2[3] = 50; MyArray2[4] = 81; MyArray2[5] = 90; MyArray2[6] = 94; i want to randmize this array and array may contain more values ... what should i do?? i have made the dirty alogrithm for it... i need some good optimize way?? ...

Does Flash have properties like C#?

Does flash have properties like C#? Or do I have to create getters and setters like java? I.E. Can I do this in flash: public int UserID {get; private set} ...

Can you bind a TextField to a drawCircle in AS3?

I am drawing a circle on the stage using graphics.drawCircle that rotates around another circle, and I want to have a textfield that sits inside the moving circle and rotates around with it. Is this possible? ...

How to get "%systemroot%" directory using ActionScript

I want run "%systemroot%\System32\reg.exe" this file to do something, but when I use "new File("%systemroot%\System32\reg.exe");" the ActionScript cannot find file, so anyone can help me find this? ...

AS3, Getting the class in which some method is defined.

Hello everyone, In ActionScript 3. Given some method! Is there a way to get the class that's defining my method (at runtime). Furthermore the method is static. Looked at http://www.as3commons.org/ but doesn't seem to find what I'm looking for. ...

Loading question for actionscript

Can i do the following in actionscript-3? : I want to make an application that loads some images with a Loader by making URLRequests to a local folder. Can i build the application and include somehow this folder so when i send it from a server to a client the URLRequests operate normally on clients side? Also if this is possible, the ...

selecting usb 'voip' phone with actionscript

i would like to make a flashsite that uses a clients usb 'voip' phone i can select a mic if you have more than one but can i also select the phone 'speaker' ? (iow a usb speaker instead of a 'normal' aux sound output) thanks ...

Extend from Number class in Flex Action Script

Hi, I need a way to "extend" or proxy the Number class in ActionScript. Basically I'll overload the toString method of it. But the Numbers should remain comparable with "<" and ">" operators. ...

I need to have a flash overlay disappear after it runs

I'm doing a myspace profile for a client, I'd like to run a flash animation as an overlay and then once it runs, have it completely disappear, set to display: none or any other fashion of that. It must be myspace friendly (no javascript). Thanks for your help! ...

TileList Components when loaded externally from separate SWFs do not have separate data

I have 2 SWFs, each containing a different tileList Component and an additional SWF that acts as the master swf for the other two. It seems as if, which ever tileList component i load first will always over write the properties of the second. I have tried including the tileList inside the master swf library, i also have tried using: var...

Is it possible to use a Document class that is above the FLA in the directory structure?

Is it possible to use a Document class that is above the FLA in the directory structure? If so, please explain how. This is how I currently have my directory structure: [d] site │ ├─[d] as3 | | | ├─ Site.as //Document class for site.fla | ├─ SectionA.as //Document class for section_a.fla | └─ SectionB.as //Docum...

TypeError: Error #1009: Cannot access a property or method of a null object reference.

I get this error when i launch the application(flash type with dismiss all and continue) and i'm out of ideas: TypeError: Error #1009: Cannot access a property or method of a null object reference. at Magazin/xmlService_resultHandler()[D:\Documents and Settings\chechu\Adobe Flash Builder 4\Magazin\src\Magazin.mxml:41] a...

AS3 - Why is my transform.matrix3D null?

I have a class named Box that extends Sprite and when I'm trying to access his transform.matrix3D property (indeed is the matrix3D property from an Transform object) this returns me null. Why? package some.place { // ... imports ... public class Box extends Sprite { public function Box() {} public function ...

FLVPlayback skin modification problem in Adobe Flash CS5 with AS3

Hi, I have been working on modifying an existing FLVPlayback skin. Ideally I would like to have one that uses a counter. The problem is, all the fla's provided for the skins with counters fail to publish/compile correctly. Fla's are here: C:\Program Files\Adobe\Adobe Flash CS5\Common\Configuration\FLVPlayback Skins\FLA\ActionScript 3....