dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: duplication

  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.

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    173

    this could help you out

    hey deride,

    believe it or not there is an awesome guns 'n roses site that actually deals with the problem you are referencing.

    http://www.keithhopkin.com/stuff/gnr/

    let me know if this helps.

  3. #3
    Junior Member
    Join Date
    Oct 2002
    Location
    ¿
    Posts
    28
    Beleive it or not your a !(never mind) Thanks for the page link but I wasn't even born when this music was big, so I don't get the joke.

    happy holiday's

  4. #4
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    hello Deride,
    You question was not a "simple one" that may have been why you didn't get any "real" answers.
    To answer it, one had actually to open your file and... do it.
    A function was added on the main timeline
    7 icons were made (just simple tweens-adjust to your needs)
    those 7 icons are exported and attached to the movieclip "icons" which is actually your example's red square.

    in attachment

    gparis
    Attached Files Attached Files

  5. #5
    Junior Member
    Join Date
    Oct 2002
    Location
    ¿
    Posts
    28
    gparis I was so happy to read your thread but when I went to download the file, this message pops up. (Access to attachment.php was denied) Maybe I'm doing something wrong?
    My E-mail address
    Last edited by deride; 12-17-2002 at 10:20 PM.

  6. #6
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    sent at your email address

    gparis

  7. #7
    Junior Member
    Join Date
    Oct 2002
    Location
    ¿
    Posts
    28
    gparis it works perfect (I don't know how to thank) Thank you for taking the time to look into the problem I was having and fixing it. your amazing!!!

  8. #8
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    You're welcome
    I just hope you understand what is happening so you can modify that menu and the icons in it to realy suit your needs. Hope my explanation was clear enough..
    As for the php problem, I know Mac IE has problems with the script. Netscape doesn't though. No idea how it goes for PC..

    gparis

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