A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [RESOLVED] splice

  1. #1
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404

    resolved [RESOLVED] splice

    hi, is this normal or a bug:

    PHP Code:
    var stuff:Array = new Array("one","two","two","two");
    stuff.splice(2,2);
    trace(stuff); 
    however more unique names splice properly:

    PHP Code:
    var stuff:Array = new Array("one","two","ttfdsf","twvcx");
    stuff.splice(2,2);
    trace(stuff); 

  2. #2
    Client Software Programmer AS3.0's Avatar
    Join Date
    Apr 2011
    Posts
    1,404
    nvm I was using it wrong, second splice input must be a 1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center