Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-20-2005, 07:28 PM   #1
ragz
Registered User
 
Join Date: Apr 2005
Posts: 20
Default drawing lines

I draw a line between two mc's by creating a line mc
Then I drag and drop a mc onto the screen and create another line object that is drawn from the current MC to another point. My problem is that when the 2nd line is drawn, the first one disappears. Why is this happening?
ragz is offline   Reply With Quote
Old 04-22-2005, 08:18 AM   #2
Neil Davidson
Registered User
 
Join Date: Dec 2004
Posts: 141
Default

I have a feeling your problem is that you are drawing either the "same" line (just a different path) over again, which removes your first one, or you are using a movieclip to draw them in. If you are using a movieclip to draw them in you might be creating the lines on the same _level.

Post the script you have so far and I can help you far better the guessing.
Neil Davidson is offline   Reply With Quote
Old 04-22-2005, 05:02 PM   #3
ragz
Registered User
 
Join Date: Apr 2005
Posts: 20
Default

yes I was using movie clips to draw them in and using the same level.
I found a method to use, _root.getNextHighestDepth(). Why does creating lines on the same level cause them to dissapear after new lines have been created?
ragz is offline   Reply With Quote
Old 04-22-2005, 07:41 PM   #4
Neil Davidson
Registered User
 
Join Date: Dec 2004
Posts: 141
Default

Flash is simply selfish. Every level only allows for -1- clip to exist. I'm not sure exactly why the program does this, but it's easy enough to work with on smaller sites/applications.

Wait until you start getting into developing over 900 layers worth of clips!
Neil Davidson is offline   Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:03 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.