A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Drag and Drop

Hybrid View

  1. #1
    Junior Member
    Join Date
    Feb 2002
    Posts
    19


    what does the .pop() do ?
    if (_droptarget.split("_", 2).pop() eq "1")

    p.s.
    I am looking for a good example of a drag and drop interaction I can use. If you know of any I would appreciate it.

  2. #2
    deva_station
    Guest
    i think its used in arrays to delete the last array element.

    example:
    Code:
    names=["tom","becky","lisa","stuart"];
    newNames=names.pop();
    /*would producenew array with following elements: newNames=["tom","becky","lisa"]*/

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