At 07:31 +0000 03/23/2002, Shaik wrote:
>Hello Friends,
>
>How to active my mouseevents while am in "Repeat While" loop.
You can't. Repeat loops hog the chip. An laternative would be to put
your repeats into a framescript of some kind:
PROPERTY pnValue
on beginSprite me
pnValue = 0
END beginSprite
on exitFrame me
if pnValue <> 0 then
me.TestValue()
end if
go the frame
END exitFrame
on BeginTesting me, nValue
pnValue = nValue
END BeginTesting
on TestValue
pnValue = pnValue - 1
put "Value is" && pnValue
END TestValue
...You'd start this, if it was in your frame script channel, like this:
sendSprite ( 0, #BeginTesting, 50 )
This would do the put sequence 50 times until the value had reached
0, but still allow mouse, key and other events to get through.
You'd need to do some kind of variant of this for whatever your
repeat loop was doing. You can also try idle events, but if there's
enough stuff going on elsewhere the idle events might never happen.
--
Warren Ockrassa | http://www.nightwares.com/
Director help | Free files | Sample chapters | Freelance | Consulting
Author | Director 8.5 Shockwave Studio: A Beginner's Guide
Published by Osborne/McGraw-Hill
http://www.osborne.com/indexes/beginners_guides.shtml
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/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!]