|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
HI,
I am new to flash . i did a tutorial on movie clip depth and i am not getting the result as intended .. pls help me to find my error in code or concept. All i was trying to is attaching a movie clip to another movie clip; all clips are there in the library and properly set to export on 1st frame for actionscript. i wrote this script on the 1st frame of my main timeline. attachMovie("ball"," ball1",1); ball1._x = 200; ball1._y = 200; ball1.attachMovie("ball", "ball2", 1); ball1.ball2._x += 20; but the output i got was ... I have attached the screenshot [IMG]tmp.JPG[/IMG] a single ball shown on screen ... i dont see the second ball attached to ball1 now thats what is confusing me ... pls help me .... Regards Anand |
|
#2
|
|||
|
|||
|
Assign the MovieClip to a variable
anandkanatt,
Assign the movieclip to a variable and use the variable. Change the first line of code from... attachMovie("ball"," ball1",1); to var ball1:MovieClip = attachMovie("ball"," ball1",1); and I got it to work. |
|
#3
|
|||
|
|||
|
Thanks for that post... it did work out for me too .. thanks
|
![]() |
| Viewing: Dev Articles Community Forums > Web Design > Flash Development > Run time depth problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|