Hello Gareth. Definately true. if your lingo contains anything like: repeat while 1=1 nothing end repeat
you do not only have a repeat loop, but an ENDLESS repeat loop. But it all depends on the circumstance... Repeat loops are okay, if they are moderately short. The problem is, you use repeats because you have to, so I guess you have to cope with them. So if you NEED to so something in a timeconsuming repeat loop, and can't find another way, then go ahead. Let me also correct a misconception: Repeat loops do not lock out mouse events. Lingo execution does. there is a very thin difference whether you do repeat with a = 1 to 1000 doSomethingVeryheavy end repeat or doSomethingVeryheavy doSomethingVeryheavy doSomethingVeryheavy doSomethingVeryheavy doSomethingVeryheavy ... a thousand times If you have something extremely timeconsuming to do, which is not in an extreme rush (the next frame), then I suggest you look into the possibility of "dividing the load". instead of having a startmoviehandler which contains on startmovie DoSomethingThatLastsASecond DoAnotherThingThatLastsASecond AndYetAnotherThingThatLastsASecond end you could make empty frames at the beginning of your movie, and execute every part of your task in one frame, then continue to the next to execute the next... Also a concept which I definately love is Creating Child objects to do stuff for me say for instance, you want something to blend in and out on the stage, independently of playbackHead location etc., you can create a childobject, add it to the actorlist, and create a tasklist for it, meaning that if the ChildObject's tasklist is not empty it work's on whatever's in the tasklist until the task is completed. Complicated answer for a simple question. Pekka > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On > Behalf Of Gareth Evans > Sent: 24. lokakuuta 2001 9:06 > To: [EMAIL PROTECTED] > Subject: <lingo-l> Repeat loops > > > Hi list, > > Just a question which I hope is within the bounds of lingo: > > Is it true that repeat loops tend to lock down Director so that > it makes it difficult to respond to other mouse events? > > > So we should not be using repeat loops? > > > > > > > Make a difference, help support the relief efforts in the U.S. > http://clubs.lycos.com/live/events/september11.asp > > [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!]
