Page 1 of 1

aeMoveTo don't move any if other exist

Posted: Sun Dec 19, 2010 1:14 am
by JosepM
Hi,

Why this code don't move any?

on mouseUp
aeMoveTo the long ID of graphic "panel1", -46,200,1000,"inOUT"
wait 2 second
beep
aeMoveTo the long ID of graphic "panel1", 84,200,1000,"inOUT"
end mouseUp

If I put only one aeMoveTo run fine, but with both nothing is moved.

Why?


Salut,
Josep

Re: aeMoveTo don't move any if other exist

Posted: Mon Dec 20, 2010 12:27 pm
by malte
Hi Josep.

The problem here is the wait statement, as it blocks the messages ae needs from executing.

Either use wait with messages, or do a send in time:

All the best,

malte

Re: aeMoveTo don't move any if other exist

Posted: Mon Dec 20, 2010 1:02 pm
by JosepM
Thanks Malte. :D