A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: duplicate MC in flash

Threaded View

  1. #1
    Junior Member
    Join Date
    Apr 2004
    Posts
    24

    duplicate MC in flash

    I got a file with 13 dragable MC's. I got 50 targets where you can drop any of those MC's. Each MC' represent a goal you want to achive in life (travel for example) and the 50 targets represent a certain time in life (years). there is 5 targets per year and 10 years.

    So lets say I would like to travel 5 times a year the next 10 years. Then the MC that represent travel needs to be draged down to the 50 diffrent targets. So what I need is for that MC to Duplicate when selected and draged away from it's orginal possition. Does that make sence? How do I do that?

    this is the code I haVe on the dragabel MC (sort version with 4 targets):

    on (press) {
    startDrag(this);
    this.swapDepths(100);
    }
    on (release) {
    stopDrag();
    if (this._droptarget=="/target1") {
    setProperty(this, _x, 22.0);
    setProperty(this, _y, 126.0);
    }else {
    if (this._droptarget=="/target2") {
    setProperty(this, _x, 45.9);
    setProperty(this, _y, 126.0);
    }else {
    if (this._droptarget=="/target3") {
    setProperty(this, _x, 69.9);
    setProperty(this, _y, 126.0);
    }else {
    if (this._droptarget=="/target4") {
    setProperty(this, _x, 94.0);
    setProperty(this, _y, 126.0);
    }else {
    setProperty(this, _x, 22.0);
    setProperty(this, _y, 30.0);
    }
    }
    }
    }
    }

    thanks very much for any help you might offer.
    Last edited by the_strange_one; 10-13-2004 at 04:17 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