| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
tadster
Join Date: Feb 2009
Location: Texas
Posts: 168
|
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 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |