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

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old September 15th, 2006, 05:17 AM
anandkanatt anandkanatt is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 2 anandkanatt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 21 sec
Reputation Power: 0
Exclamation Run time depth problem

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
Attached Images
File Type: jpg tmp.JPG (27.2 KB, 247 views)

Reply With Quote
  #2  
Old October 4th, 2006, 11:25 AM
megamulli megamulli is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2006
Posts: 1 megamulli User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 m 42 sec
Reputation Power: 0
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.

Reply With Quote
  #3  
Old October 5th, 2006, 02:10 AM
anandkanatt anandkanatt is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Sep 2006
Posts: 2 anandkanatt User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 42 m 21 sec
Reputation Power: 0
Thanks for that post... it did work out for me too .. thanks

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignFlash Development > Run time depth problem


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 4 hosted by Hostway
Stay green...Green IT