Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Community Boards > Just for Kicks Challenges

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-16-2009, 06:39 PM   #1
tadster
tadster
 
tadster's Avatar
 
Join Date: Feb 2009
Location: Texas
Posts: 168
Default Name these strings

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
tadster is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Exracting data from strings... chill93101 ActionScript 2.0 2 07-11-2007 10:28 AM
strings within strings ninjabonsai1 ActionScript 2.0 3 09-28-2006 09:59 PM
Starting new lines in strings... Rolfalmao ActionScript 1.0 (and below) 2 06-07-2006 06:44 PM
Accessing entries from the Strings panel with ActionScript thumbling ActionScript 2.0 3 01-26-2005 04:41 PM
searching strings (and man, have I tried!) marev Simple Stuff (Newbies) 2 11-07-2001 12:39 AM


All times are GMT. The time now is 11:33 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.