Is there a way to get a method's parameters from outside the method? I know that there's an "arguments" property but it's only accessable from within the method.
I'm working on a RPC system and need to store the method parameter types in a hash table for easy access later on.
Regards/Per
...
I have a library that provides a reflection API on top of describeType() (a method that returns an XML object with all the specs of a class or instance). Since this library is used in several other libraries and frameworks, I really want it to be as fast as possible.
The problem I'm facing is that I'm not sure about the best approach to...
How can I show an confirmation message in Actionscript 3 ?
I use Adobe Flex 3 and as3 for Air application
...
Hi,
I would like to create a main menu and a hud within the application that stores and displays user information. Buttons like sound and main menu options should exist..
Now i cant seem to find any examples of how to create this user interface / hud.
Any suggestions would be very helpful.
Thanks,
CS4
AS3
...
Hi there,
I need to compare the performance of AS3, Processing and openFrameworks for my Bachelor thesis. Are there any comparison tables you know of or do I have to do the test myself?
How would a good test look like? I'm just focused on graphics so I thought about maybe three different programs, a 2d-graphics app, a typographic-app ...
I am new at actionscript 3. I want to change a variable set to 0 in the parent to 1 when a button in the child is clicked.
This is the parent zero.swf:
var noPass:Number=0;
function getPass(event:onLoad, noPass):void {
if(noPass==0) {
var passRequest:URLRequest=new URLRequest("PasswordPage.swf");
var passLoader:Lo...
Is there a way to define an enum in AS3 in a way we do it in other languages? I can define constants with defined values like that:
private const CONST_1:int = 0;
private const CONST_2:int = 1;
private const CONST_3:int = 2;
and so on. If I want to insert some other constant between 3 these I need to move all values like that:
privat...
i'm attempting to instantiate a bunch of sounds by creating a string array containing each sound's filepath (or name).
var soundByName:Object = {};
var channelByName:Object = {};
var soundName:String;
var channelName:String;
loadSounds();
function loadSounds():void
{
var files:Array = new Array("sound1.mp3", "sound2.mp3"); //et...
I am building a mini language translator out of XML nodes and Actionscript 3.
I have my XML ready. It contains a series of nodes with two children in them. Here is a sample:
<translations>
<entry>
<english>man</english>
<cockney>geeza</cockney>
</entry>
<entry>
<english>woman</english>
<cockney>lily</cockney>
</entry>
</translat...
Hi,
Is there a way to access other active windows in AIR?
I want to make an AIR app that look into the active application text and look for a specific pattern and make a transparent window into that text position to create a button.
Its a bit like the skype plug-in in Mozilla ... It replaces the telephone number with a button to launch ...
I have a situation where my main SWF file loads many external SWF files. However, those external SWF files are just sitting in the public folder of the web server.
Is it possible to restrict the SWF visibility to only my main SWF file (the one that loads the external SWFs). In the current state, any user who knows where to look can jus...
My question is, that how can I get the node in witch I want to insert:
I.e
<folder id="1">
<folder id="4">
<folder id="5"></folder>
</folder>
</folder>
<folder id="2">
<file id="4"/>
</folder>
<folder id="3">
</folder>
I want to get folder with id = 4, but that can...
How to play mp3's from socket connections in Flash AS3?
I have some simple programm which is listening to some port (TCP).
I connect to it using as3 sockets and it starts sending me mp3 data
How to play that data?
...
How to use URLRequest to send data to TCP socket in Flash, Actionscript?
So I have TCP server which is listening to some port and on every connection is sending sounds MP3 data to requestor
I've done URLRequest and Sound class plays my sound.
How to send data to that socket not opening new socket connection (using URLRequest or someth...
How do I reference a fla component from an actionscript project? I use flex builder.
...
I want to display "Hello World" with calibri.ttf using only AC3. How would I do that?
Found two solutions on the web but I cannot use any of them
- The Adobe documentation site requires the use of Flash CS4. (Don't know how to use this in Flex Builder)
- The embed tag method requires FLEX SDK
Is it possible to embed font with purely Ac...
I found it is very useful to load a swf into AS as class (what Embed metadata did). However, I am in trouble to do exact the same thing to content that is not load in compile-time (Loader and URLRequest). How can I do that?
...
I need to run code in a class declaration before its instanciation. This would be especially useful to automatically register classes in a factory. See:
// Main.as
public class Main extends Sprite
{
public function Main() : void
{
var o : Object = Factory.make(42);
}
}
// Factory.as
public class Factory
{
priva...
I have a Movieclip on stage with nested movieclips inside. All referenced at 0,0. None of the child movieclips load any dynamic content, animate or have Masked Layers. It does have an input textfield in one of the child MCs. The parent MC shows 280 px width, while it returns 313 px with a .width trace. There is no code that alters the .w...
How to control imported .swf timeline?
var introLoader:Loader = new Loader();
var introReq:URLRequest = new URLRequest("intro.swf");
introLoader.load(introReq);
introLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onComplete);
function onComplete(e:Event){
addChild(introLoader);
}
...