SunQuest
           Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 13th, 2004, 07:47 AM
z00m z00m is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 102 z00m User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
duplicateMovieClip

hi

why when i do "duplicatemovieclip"
i can't control the duplicated mc?

this is my code

onClipEvent(enterFrame) {
if(b1hold) {
duplicateMovieClip(_root.b1, _root.b4, 1)
_root.b4._alpha = 50
_root.b4.startDrag(true);
}
}

when i do it i just can't conyrol the duplicated mc :\

if u can help me so.. thanks ahead z00m

Reply With Quote
  #2  
Old January 13th, 2004, 10:55 AM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,457 Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)  Folding Points: 6414 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 6 Days 5 h 46 m 34 sec
Reputation Power: 503
Facebook MySpace
Hi, try :

_root.b1.duplicateMovieClip("b4", 1);
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old January 14th, 2004, 01:31 AM
z00m z00m is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 102 z00m User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
thank you very much! it did work but... now another weird problem, this is what i am doing
--------------------------------------------------------
on(press) {
duplicateMovieClip(_root.asd, "nana", 1);
startDrag(_root.nana);
_root.nana._alpha = 50
_root.nana.onRelease = function() {
stopDrag();
}
}

it duplicates fine drags fine changes alpha fine
but it won't do the "stopdrag" command
what am i doing wrong?

and another thing

when i drag it the dragged mc it's still a button
is there any way to make the dragged mc to not read as a button? thanks ahead, z00m

Reply With Quote
  #4  
Old January 14th, 2004, 02:15 AM
Red|5 Red|5 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Gdansk
Posts: 10 Red|5 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 49 sec
Reputation Power: 0
Why don't you just put it in another "on" statement?



on(press) {
duplicateMovieClip(_root.asd, "nana", 1);
startDrag(_root.nana);
_root.nana._alpha = 50
}
on(release){
stopDrag();
}

Reply With Quote
  #5  
Old January 14th, 2004, 01:36 PM
z00m z00m is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 102 z00m User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
i did... it didn't work

Reply With Quote
  #6  
Old January 14th, 2004, 02:15 PM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,457 Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Tann San User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)  Folding Points: 6414 Folding Title: Novice Folder
Time spent in forums: 2 Weeks 6 Days 5 h 46 m 34 sec
Reputation Power: 503
Facebook MySpace
Hi, I dont think it will work as you expect. For nana's on(release) function to be activated it must first be pressed. Your not doing that. Your starting its drag in side another clip. This is what you want to do:

on(press) {
_root.asd.duplicateMovieClip("nana", 1);
_root.nana.startDrag();
_root.nana._alpha = 50
}

on(release){
_root.nana.stopDrag();
}

I altered the grammer slightly. It's essentially the same as Red|5's code. Try that and see if it works.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > duplicateMovieClip


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway