A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: duplicatemovieclip / buttons

Threaded View

  1. #1
    my brain is mush
    Join Date
    Mar 2005
    Location
    Glasgow
    Posts
    40

    duplicatemovieclip / buttons

    i want create duplicate buttons and add actions to each of these new buttons...

    the below doesn't work..all the buttons just have the actions for the last button...any suggestions?

    for (i=0; i<mp3number; i++) {

    // duplicate movie clip and make visible
    _root.mp3item.duplicateMovieClip("mp3item"+i, i);
    _root["mp3item"+i]._visible = true;

    // add relevent text to textfield within movie
    _root["mp3item"+i].mp3info = _root["mp3text"+i];

    // move movie clip further down
    get_y = get_y+20;
    _root["mp3item"+i]._y = get_y;
    }

    //
    // set mp3 download and play buttons
    //
    for (i=0; i<mp3number; i++) {
    geturlinfo = getmp3links[i];
    _root["mp3item"+i].mp3download.onRelease = function() {
    getURL(geturlinfo, "_blank");
    };
    _root["mp3item"+i].mp3play.onRelease = function() {
    setmp3 = i;
    gotoAndStop("playmp3");
    };
    }
    Last edited by eviltwinisdead; 11-08-2005 at 03:38 PM.

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