?
Solved

duplicateMovieClip to parent

Posted on 2003-03-19
7
Medium Priority
?
318 Views
Last Modified: 2008-01-16
I have created a sub-stage(movie clip, it is actually a rectangle without fill) and a movie clip with instance name "box" on the main stage.

Inside the sub-stage, there is a button. I set the following script and wish the button can trigger duplicateMovieClip and generate a new movie clip on the main stage.

on (release) {
        //Can be done by attachMovie!!!
     //_parent.attachMovie("box","box2",2);
     //_parent.box2._x = 100;
     //_parent.box2._y = 200;

     _parent.box.duplicateMovieClip("_parent.box2",2);
     _parent.box2._x = 100;
}

I can do what I want by using attachMovie, but I don't know why I can't do this by duplicateMovieClip! Is there anything wrong with the notation? Or it is not possible to do that to the parent by using duplicateMovieClip?? Please advise..


0
Comment
Question by:ping1234
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 6

Accepted Solution

by:
henryww earned 200 total points
ID: 8167943
i think u can only duplicate movieclips in the same container, same timeline .....

0
 
LVL 5

Expert Comment

by:ocgstyles
ID: 8168552
henryww is correct....  note that it only lasts for the current frame too.

-styles
0
 
LVL 6

Expert Comment

by:henryww
ID: 8168622
thanks for the confirmation O

how's it going with the chatroom ... ? it is open for public yet?

let me know when it is done, i will be a memeber too :)
cheers
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Expert Comment

by:ocgstyles
ID: 8168687
Been a little busy the past week, haven't really had too much time...  the chat logic is there now, just need to make a nice environment for it.

i haven't been able to post too much stuff on here either... =(

-styles
0
 
LVL 6

Expert Comment

by:henryww
ID: 8168957
i know ... i haven't seen u around lately...
i was hoping u can give us a hand here ... :)
wanna see u in the top 15 soon ...
0
 
LVL 5

Expert Comment

by:ocgstyles
ID: 8169637
right now it is 4:00.  i am freaking out because i have to go to court today!  :(

oh the stress....
0
 
LVL 6

Expert Comment

by:henryww
ID: 8170152
oh why ... what have u done???
told u not to mess with all the ladies u met at the bar.... and u don't listen.... sigh ....
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question