actionscript-3

How to communicate with index from AS2 file, being loaded by an AS3 file

We are loading an actionscript2 swf into an actionscript3 swf. as3 is embeded on the index page using the satay method. Is it possible to get a variable set on the index page from within the actionscript2 page, without using the as3 page as an intermediary (as this is not an option)? We've tried ExternalInterface, but how would we targ...

Creating a custom trace() class in AS3

I got this idea of expanding my trace() messages. Why trace() is all over my code, I want to turn them on/off by a simple command and maybe add some sort of priority functionality to the trace(), i.e. myTrace.TraceMsg("loosehere",debugme, 0); myTrace.TraceMsg("winhere",debugme, 1); And when I run, only the one with the higher pr...

Flex Wipe State Transitions?

I'm trying to create a simple wipe / slide type transition between 2 states. Similiar to the way the iphone 'slides' from one list to another (ie. inbox > mail listing) I can't seem to figure out or find correct documentation on how to do this using 2 simple canvas components and transitions where one slides off screen to the left as th...

ActionScript 3 name property is not returning the right name...?

Hi all, I experienced a problem with the name property in as3, I created this "dot" movieclip and I exported to a class, then I anonymously created a bunch of dots using a loop. I assigned numbers as name to each dots private function callDots(num:Number):void { for (var i = 0; i < subImagesTotal[num]; i++) ...

Actionscript3: how to list the pixels of a shape?

Checked the documentation but I couldn't find anything. I want list the cordinates of the filled pixels of any shape into an array. The function would look like this: function listShapePixels(shape:Shape):Array ...

Actionscript3: how can I access elements on the stage from external classes?

I have an external class in a .as file, my problem is that I can't access elements on the stage. Code like stage.txtfield.text or this.parent.txtfield.text does not work. The txtfield is the instace name of a Dynamic Text field. ...

Server side Action Script 3.0

Is there any version of Action Script 3.0 for server side use? ...

Get vertical labels to be close together

I cant quite understand why two vertical label components dont appear right under each other. There seems to be a lot of space between them, is there anyway to get this space removed as setting padding makes no difference at all. For example, take this layout code: <mx:VBox> <mx:Label text="Title" paddingBottom="0" paddingLeft="0" padd...

What's the best way to debug an inner swf that's loaded from a non-debug outer swf?

I have a swf that I need to attach the flex builder debugger to. I have full access to the source code, and can make a debug build of this swf. However, this swf is being loaded by a non-debug build of another swf which I don't have source code to, and can't make a debug build with. Is this possible? I've tried mocking this up with t...

Actionscript - Variable Assignment without reference?

Should be easy. I have an object. I want to modify it, but before i do I want to save a copy of it that I can go back to. I tried setting copy = original but when i modify the attributes of the original the copy also shows the changes. I am assuming this is because in actionscript any time you assign, it really just stores a referenc...

Insert commas into number string

Hey there, I'm trying to perform a backwards regular expression search on a string to divide it into groups of 3 digits. As far as i can see from the AS3 documentation, searching backwards is not possible in the reg ex engine. The point of this exercise is to insert triplet commas into a number like so: 10000000 => 10,000,000 I'm th...

Learning Interactive 3D in Flash

I'm interested in learning about 3D engines in Adobe Flash. I understand that 3D doesn't actually exist in Flash and must be accomplished with complex ActionScript, but the idea is so intriguing. Having 3D capability on a platform as widespread as Flash allows for nearly unlimited interactive possibilities for a web site, and would be ...

Generating Warnings for Undocumented AS3 Members? (ASDoc)

I have a Flash (AS3) component library that I'm distributing, and I want to make sure that it's fully documented for each release. One of the things I really liked about Microsoft's automatic doc generation for C# was that I could have my compiler generate warnings (on every compile) for any public member that wasn't documented in their ...

How does one stop a SWF Movie dynamically loaded using the Loader class using ActionScript 3.0?

MovieClip(_loader.content).stop(); this.removeChild(_loader); _loader.unload(); _loader = null; I've been trying that, but it doesn't stop the movie. The movie has an embedded voiceover and that keeps running. thank you. ...

Adobe AIR Update Framework: How to check for updates upon AIR application install?

-How can I check for a new version of my application upon installation? I feel like I remember installing an AIR application and during the install being alerted that there is a new version, and a prompt as to whether or not I wish to update. -How do I alert the user, via textfield, that there is an update for the application and to ru...

Variable addChild is not defined?

Hi, i have a problem using AS3 - Flash CS3 gives me this Error message: Error #1065: Variable addChild is not defined. Any ideas what's wrong? This is my code: package coa.application{ import flash.display.SimpleButton; import flash.text.TextField; import flash.text.TextFieldType; public class Tab extends SimpleButton...

Background image that shows when list is empty in Flex

How would I display a backgroundImage on a List when the List is empty? At the moment the list is populated when items are dropped inside after a drag-and-drop but I would prefer a solution that checks for any change to the data to determine if the list is empty. The List inherits a backgroundImage from its ScrollControlBase but what w...

Flex Builder: How do you run multiple "Export Release Build..."

So, what I have is a Flex application that is comprised of about 20 modules that are loaded at runtime. Each module is it's own project in Flex Builder and what I'd like to do is have some way to create a release build of all of them without having to go to each project and selecting Project->Export Release Build... How can I do such a...

Actionscript 3 : Creating variable objects and assigning class from parsed XML file.

I've set up an XML file with names of objects that will be contained in a fla/swf library. I wish to position the objects on the stage using an XML file that can be quickly modified without having to recompile the fla/swf file. Of course, positioning can only be accomplished when the objects are instantiaed and added to the stage. The pr...

Is there any way to get a tooltip to appear outside an air application window?

I wish to display a potentially wide tooltip that may extend beyond the application window width. Is there any way to get tooltips, or perhaps indeed any display objects, to not get clipped and extend beyond the window like it would do in a native Win32 application? ...