actionscript

How to interact with PHP via getURL in actionscript?

getURL('http://www.google.com',_blank); The above can open google.com,but how to fetch data from server side(PHP) on localhost? ...

Is actionscript2 not supported by flash9/10 anymore?

I'm new to this language. But I see lots of people prefer as3 to as2 ...

PDF creation library in ActionScript 2.0.

Hi there I have this application authored in Flash CS4, and it uses ActionScript 2.0 due to the reason that I am not the original developer. I am just updating it for another client. The thing is, this application previously compiled a PDF using Director, and now the Director file is giving script errors. I have seen that there are PDF...

Pure Actionscript 3 Adobe Air Application main class constructor not being called

I'm writing an Air application using only Actionscript, and Flex3 SDK as the compiler. Everything compiles and runs fine under adl, but when the final air file is built and installed, the main class is never initialized. For instance: package { import flash.display.Sprite; public class main extends Sprite { public functi...

I cannot figure out how to access items by their ID if I create them dynamically.

In one area of my application I am creating a display that builds itself with actionscript during a loop. (in my actual app there are A LOT of nested children and my function might be looking for any of those children) In that AS I assign each item an ID, but when I try to access that item by it's id it fails. What gives? and how can I a...

flashdevelop vs flex builder

I just started making games and I decided for my next project to use either flashdevelop or flex builder. Reason being is because you can embed just about everything and for licensing purposes and it recommended the the game is compiled into one file. flex sdk is good with that type of stuff. As of right now I decided to use flashdevel...

how to find specific xml data by attribute name/value in flex / actionscript

From some xml I want to find items that have a specific attribute and value. Here is example xml: <node> <node> <node> <special NAME="thisone"></special> </node> <node> <special>dont want this one</special> </node> </node> </node> (nodes can contain nodes...) I need to find the first based on it has an attribute nam...

Getting Better at FlashDevelop

Hey guys, I have been programming with as3 for the past 4 months and Ive been getting rather good at it. I just recently decided to work with flashdevelop. I notice that there is alot of code that is availible in the flex sdk that isn't available in as3 with flash cs4. Like embedding of assets and such. I've been trying to find some up t...

Compiler errors with Actionscript Timer

I have a couple timers in a Flash application I'm building. They worked fine initially, but after building the application and adding more code to it, I'm suddenly getting these weird compiler errors. When I try to compile, I get 'error 1136: Incorrect number of arguments. Expected 0.' on the line of the Timer declaration, which looks l...

Can't embed XML in FlashDevelop

I am trying to embed some xml into my application but I get the following error Fault] exception, information=TypeError: Error #1090: XML parser failure: element is malformed. Here is my code. package { import com.objects.EngineApi; import com.objects.Rectangles; import flash.display.Sprite; import flash.events.Even...

StyleManager: calling getStyleDeclaration after loadStyleDeclarations (Flex 3.5)

An AIR app has default theme compiled in & themes that may be loaded from the external swfs (css-based), that override the default. Called StyleManager.loadStyleDeclarations with update=true, and then called getStyleDeclaration in the StyleEvent.COMPLETE handler for the dispatcher returned by the loadStyleDeclarations. Expected it to re...

swfloader: can I catch all the exceptions from the loaded swf?

I am loading a swf into another swf using swfloader, I want to catch all the exceptions thrown by the inner swf, is it doable? ...

any actionscript exception that will not cause the flash player to pop up a dialog?

Hi, Till now all the exceptions in my code will cause the host flash player to pop up a window to say there is an exception and the execution will be paused, I am wondering is there any exception/abnormal things that will be detected by flash player but not be popped up? Thanks. ...

calling super() from an actionscript constructor with varargs

If a constructor takes its parameters as a vararg (...) it seems to be impossible to create a subclass that will just pass on that vararg to the superclass. There is a related question with fix for this same situation for normal functions: Wrapping a Vararg Method in ActionScipt but I cannot get that to work with a super call. base cla...

Why can't I get Javascript to Talk to ActionScript

I have a very simple flash program that plays music. It consists of a play pause button and a timer that shows the current position of the song. I'm trying to make it possible to pause or play the song using a regular form button. <div class="musicplayer_playpause"> <script type="text/javascript"> AC_FL_RunConten...

Can't execute query on geocoding service

Hi, I'm building Flex 3 application and I have a geocoding service (http://.../GeocodeServer) on a ArcGIS server (ESRI). I'm trying to execute a query on this service in order to retrieve some informations. Unfortunately, when I execute the query, I get this error : [RPC Fault faultString="" faultCode="400" faultDetail="Invalid URL"] ...

Flash Animation Assistance Needed

Hi guys. I have a project I'm working on and I am really stumped on making a seemingly simple animation work. The animation is of a coin scratching off a layer to reveal the layer beneath. I have the coin animated, and the layers in place. I am wanting to know if there is a way to erase/delete every place the coin passes over the stage,...

snapping 2 vector points Flash

I am trying to snap 2 vector points together but for some reason its moving the entire object instead of the point. I am trying to follow instructions in a book and the book shows that it is using the solid (filled) selection tool and it has the magnet turned on for snap options. It shows I am suppose to click where the (right triangle) ...

reusing xml object in actionscript

Hi, I am writing a bit of actionscript that loads an xml file and displays movie clips etc.. appropriately on the stage. However I have come to bit of problem where i want to reset the display via a function through loading a different xml file. I have loaded the new file but the display doesn't change as if its still loaded the previou...

Can empty sprites or movieclips slow down a application

Just curious to know if empty movie clips or sprite can slow down a application or game. Reason being is because I want to use multiple sprites as containers for my object. So I can easy manage what objects are in front of others. Some points in the game, layers will be empty so I am just curious if I should just make those layers null i...