PDA

View Full Version : Name these strings


tadster
02-16-2009, 06:39 PM
I'm new here and not too sure if this is the right place for this, but i'm working on some cipher methodology specific to AS3 and i would like to see how many here know the answer to these questions off the top of your head.
please don't complie a swf and test for this just try to answer from your head.

Challenge one:
var backslash:String = new Array(String.fromCharCode(92)).join("");

//can you tell me what this literal string is?
var stringquestion1:String = backslash.constructor.toString();



Challenge two:
imagine a package like this:

package
{

import flash.display.*;

public class myclass extends Sprite
{

private var anothesprite:Sprite=new Sprite();

public function myclass()
{
var alphaz:RegExp = new RegExp("[a-z]+", "i");

//can you tell me what this literal string is?
var whatisthis:String = anothersprite.name.toString().replace(alphaz, "");

//and can you tell me what the full name would be once compiled?

}

}
}



if you can honestly tell me those strings from the top of your head
i would suspect that you are an advanced AS3 programmer.

I'm very curious to know how many people know this information.
Thanks in advance,
Tadster