Right. Code that is executed in a DO command is compiled each time and so will take much longer to execute.
Bob On Feb 11, 2012, at 10:33 AM, Ken Corey wrote: > On 11/02/2012 17:53, Richard MacLemale wrote: >> Well, I know one thing - trying to put script steps in an array and run it >> on the iPad 1 is NOT a winning idea. It's taking 163 milliseconds to >> execute two lines of code that way. My window is more like 33 milliseconds. >> Back to the old drawing board, as they say... > > I don't know what the engine does to the code...the code might be "compiled" > (I use that term loosely) down, where evaluated code isn't. > > Hrm...can you abstract each little script enough to make little commands? > > on appearFlower > set the loc of image "flower" to 400,401 > set the height of image "flower" to 150 > set the width of image "flower" to 150 > end appearFlower > > in frame 30: > appearFlower > > > Does that help? > > -Ken > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode