dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: duplication

Threaded View

  1. #1
    Junior Member
    Join Date
    Oct 2002
    Location
    ¿
    Posts
    28

    duplication

    I have a duplicated movie and I can't seem to make it do what I want.

    Heres what I have, a movie clip that has been duplicated 3 times
    ----------------------
    movie1-(instance name movie1)
    movie2-(instance name movie2)
    movie3-(instance name movie3)

    ----------------------
    I also have a button that has been duplicated 3 times
    ----------------------
    button1
    button2
    button3
    ----------------------
    The button Code
    ----------------------
    on (release) {
    if (this.url.indexOf("|")>0) {
    var z = this.url.split("|");
    _root[z[0]].gotoAndPlay(z[1]);
    }
    }
    ----------------------
    The Array Code
    ----------------------
    linkArray =
    [["movie1|1"],
    ["movie2|1"],
    ["movie3|1"]];

    myMenu["holder"+k]["menu"+m].url = linkArray[k][m];
    ----------------------
    ----------------------
    What I want to do is if you click button1, movie1 plays if you click button2, movie2 plays and it you click button3, movie3 plays. A problem I'm have is I don't know how to make a specific movie clip play when the movie clip is being duplicated. Another problem is I have to put the movie clip in with the main button and I can't seem to target the movie clip when it is inside another movie clip.
    ----------------------

    Take a look at the menu
    http://www.medeirosdesign.com
    Download the file
    http://www.medeirosdesign.com/Menu.fla.zip
    Last edited by deride; 12-17-2002 at 01:59 AM.

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