|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
Hi, try :
_root.b1.duplicateMovieClip("b4", 1); |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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(); } |
|
#5
|
|||
|
|||
|
i did... it didn't work
|
|
#6
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > duplicateMovieClip |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|