OOPS!
Just realised that your code was following your post.
My previous post would still apply but you could animate a
*place holder* in an empty channel (say: 10) and substitute the
relevant cast member as you need:
case (the rollOver) of
1: set the member of sprite(10) to logo
set the locH of sprite(10) to the locH +40 (or whatever you want)
repeat while the locH> sprite(1).right
2: set the member of sprite(10) to cases
set the locH of sprite(10) to the locH +40 (or whatever you want)
repeat while the locH> sprite(2).right
3: etc.
I am not a programmer and this is hard coding but I am sure that
some good soul out there will be able to help you optimize
your script and, at the same, time help me remove my foot from
my mouth!
Incidentally: You will find that you can only refer to spriteChannels
by their number not by their names.
John
>
> (ON movimenta2
> global
> plogo,logo,pcases,cases,ptecno,tecno,pp
> rojetos,projetos
>
> if sprite(plogo).locH<logo and
> sprite(ptecno).locH<tecno and
> sprite(pcases).locH<cases and
> sprite(pprojetos).locH<projetos then
> repeat while sprite(plogo).locH<
> logo and sprite(ptecno).locH<tecno and
> sprite(pcases).locH<cases and
> sprite(pprojetos).locH<projetos
>
> sprite(plogo).locH=
> sprite(plogo).locH+40
>
> sprite(ptecno).locH=
> sprite(ptecno).locH+40
>
> sprite(pcases).locH=
> sprite(pcases).locH+40
>
> sprite(pprojetos).locH=
> sprite(pprojetos).locH+40
>
> updatestage
>
> end repeat
>
> else
> if sprite(plogo).locH>logo and
> sprite(ptecno).locH>tecno and
> sprite(pcases).locH>cases and
> sprite(pprojetos).locH>projetos then
> repeat while sprite(plogo).locH>
> logo and sprite(ptecno).locH>tecno and
> sprite(pcases).locH>cases and
> sprite(pprojetos).locH>projetos
>
> sprite(plogo).locH=
> sprite(plogo).locH-40
>
> sprite(ptecno).locH=
> sprite(ptecno).locH-40
>
> sprite(pcases).locH=
> sprite(pcases).locH-40
>
> sprite(pprojetos).locH=
> sprite(pprojetos).locH-40
> updatestage
> end repeat
> sprite(plogo).LocH=logo
> sprite(pcases).LocH=cases
> sprite(pprojetos).LocH=projetos
> sprite(ptecno).LocH=tecno
> end if
> end if
> end if
> end)
>
>
> __________________________________________________________________________
> Preocupado com v�rus? Crie seu e-mail gr�tis do BOL com antiv�rus !
> http://www.bol.com.br
>
> [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!]
[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!]