>The problem only comes up if you are foolish enough to rely on cast 
>position, but just for interest: how do you drag and drop a bunch of cast 
>members into the new cast in such a way that the gaps between the cast 
>members remains intact?

Is this a quiz? ;-)

Interesting gotcha, Colin. People do sometimes rely on cast position, 
especially for rollovers, even animations. Usually that's a cast member + 1 
sort of thing, so it wouldn't be impacted by this. Other processes that 
count on cast position might blow up, though.

>  What happens is all the gaps are removed, even if you have selected the 
> gaps in the original cast window.

You're absolutely right--I had overlooked that point. Good thing I advised 
him to test, eh?

First, let me address a point Zac made. If you drag and drop, then unlink, 
the external cast will be empty--dragging and dropping is really cut and 
paste.  Instead, you can copy and paste--select all, then right-click and 
"copy cast members." (Or ctrl-c, or whatever your favorite copy command 
is.)  Then you paste into the new cast. That way, when you unlink the 
external cast, all your members will still be safe.

Now, back to your point, Colin. If you're relying on cast position, then 
set both casts to the traditional view, not the list view. You can see the 
old and new side by side, and insert blank cast members in the appropriate 
positions. It's a bit of manual labor, but it works.

Could you copy the members in a loop with Lingo? I'm not quite sure how I 
would do this--member(i, "internal cast").media = member(i, "external 
cast").media doesn't work, nor does the keyword "member."

I ran into an interesting bug last week related to this. I was modifying 
some legacy code, and I attached James Newton's rollover member change 
behavior from the D8 library to some graphic sprites I was using as buttons.

Rollover worked fine, but clicking on it changed it to a totally unrelated 
cast member. I went on a mouseUp hunt, and found where the previous coder 
was setting the sprite to member + 1.



Cordially,
Kerry Thompson
Learning Network


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to