As3 split strangeness

Posted by coulix on Stack Overflow See other posts from Stack Overflow or by coulix
Published on 2010-04-21T16:37:54Z Indexed on 2010/04/21 16:43 UTC
Read the original article Hit count: 198

Filed under:
|
|
|

Hello coders,

Super simple example:

var Path:String="E:\SWF Security\Acess Current Path\Access SWF URL.swf" 

var Path1:Array = Path.split("\\") // Split using the backslash as delimiter (No limit the number of returned tokens) 

trace(Path1)

What do you expect path1 to be ? E: ? No its E:SWF SecurityAcess Current PathAccess SWF URL.swf and i have no idea why.

© Stack Overflow or respective owner

Related posts about as3

Related posts about split