actionscript-3

as3 removeChild issue

Hi there!, I'm loading some swf files at 0 on my stage. They are the pages of my site. To change from page to page I use removeChildAt(0) and then I addChildAt("page_title", 0). The problem is that removeChild dont delete the functions from the first swf file loaded (before unloaded). How can I stop then? Do I have to use other wa...

How to remove all event listeners from a display object?

Is there a way to determine which event listeners are registered with a display object? I want to remove all event listeners from a display object so that I can assign new ones based on context changes in the application. ...

Flash - FileReference, Upload multiple files at once

Hi, I have a ASP.NET/C# web application with FLASH object integrated. I need to upload two image files to the server at once from one HTTP POST via file reference class in FLASH. Is it possible? If so, How to do it ? Thanks. ...

How to use out-of-datagrid scope variable inside an ItemRenderer?

I'm binding an array of items to a data grid using ItemRenderer. I use the data variable to control the bindable data. I also have someComponentVariable that need be inserted into every row but its declared at the component scope, so the data grid doesn't seem to reconize it (compile error). How can I use this variable (someComponentVa...

Bitwise ops on bitmaps in Flex/AS3

There is a specific bitwise logical op on three bitmaps I would like to achieve in Flex/AS3. It would presumably have to be done with some combination of DisplayObject blendmodes, ColorMatrix filters, and possibly something else I haven't thought of, as FLex/As3 doesn't have bitwise logical ops on pixels (except for BlendMode.INVERT). ...

Circular dependencies in flex libraries

I have two Flex libraries that reference each other. Both use link type "External", and I manually load then with the Loader class. I'm getting the error "A cycle was detected in the build path of project: foo". Is there any way to resolve this? Maybe a parameter for the compiler or something. I don't think there should be a problem, ...

Flash AS3: Getting this error: Access of undefined property - basic scope help needed :(

I'm still used to the AS2 style of all code on 1 frame, I'm trying to code AS3 in class files and I'm having a problem with a basic package setup. Scope issues are killing me with trying to learn AS3. Below is my package code, I don't have any other class files, just trying to return a simple trace. The error I'm getting after I run the...

Error Handling issues

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: I don't get this error on my local host but I do when I upload it to my server. How do I properly fix this in Flash CS4? ...

AS3 Error Handling

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: How do I do handle this? ...

getting relative path from flash.net.FileReference;

I'm trying to get the relative or full path from a FileReference object after its browsed but I think I'm bashing my head up against a wall (It's begining to hurt) anybody got a way of getting a file's path from the user. ...

AS3 large game performance degradation over time

I'm currently working on a very large Flash platformer game (hundreds of classes) and dealing with an issue where the game slowly grinds to a halt if you leave it on for long enough. I didn't write the game and so I'm only vaguely familiar with its internals. Some of the mysterious symptoms include, The game will run fine for a determi...

Trying to use Loader class inside of package, getting Error 1046: Type was not found or was not a compile-time constant

This is driving me nuts, I can run this fine with code on the main timeline, but when I put this inside of my sub Class I'm getting the Compile time error and 1180: Call to a possibly undefined method. This is the line causing all my grief: public var splashLoader:Loader = new Loader(); What I don't get is, inside my main class I'm usi...

Output filename in Flash Builder

I am trying Flash Builder for the first time and I'm stuck in a simple task. How can I change the output filename? By default, Flash Builder gives the SWF the same name of the entry point class and I couldn't find anywhere to change it. Anybody? ...

as3 video full screen mode

I have created a video player, but need to add a button that, when clicked, puts the video into full-screen viewing mode. I don't want to scale everything on the stage - just the video. I can't seem to find how to do this - I thought it would be easy. ...

AS 3 Tile Background

how do you make a tiled background in actionscript 3? Ive been entering codes i found around the internet, but it seems to be messing up my slideshow pro.... so i want to try some other views ...

Flash Action Script 3 variable scope not working

package a{ public class a{ public var a_var:String; public var x_var:String; public function a(){ var a_var = 'My name'; var x_var = 'X string' } public function show_a():String{ return a_var; } } public class b{ public function b(){ var a_obj:a = new a(); trace('trace' ...

Mannually connecting Flash Player (debug) to Flex/Flash Builder

Is it at all possible to connect the Flash Player debug version to the debugger in Flex Builder using source code? I'm running an app which has no right click menu, and I therefore can't right click and select connect to debugger. ...

Flash AS3: Unable to view loaded swf after loading it inside of package

Good morning friendly Flashers ;) So I've been trying since yesterday to just load a SWF file into my main movie. I've done this before just placing code inside a movieClip, but this time I'm working inside of Class files. I have my main class which calls a function inside of my sub class which contains the loader. My problem is that the...

Appearance cube sandy

Hello guys, I'm a newbi with sandy and action script 3. I has followed tutorial on the sandy web site and I created a cube. But I don't success to create a cube with a different texture on each cube face. My first texture is duplicate on each face. So, how can I have a different texture on each face ? I don't find that on the sandy we...

Date("8601 format date") ?

The documentation for the Date() class lists several string formats that it can convert to date values. The 8601 format is not listed. Is this accurate? Does ActionScript support parsing for 8601? If not, how do I ask Adobe to fix this? ...