Drag n Drop Objects in Flash vs. Rev

Chipp Walters chipp at chipp.com
Thu Dec 4 11:20:55 EST 2003


Roman,

Don't use idle. There are a number of postings earlier on this subject. In
fact the one below is from Scott Raney, the creator of the MetaCard engine:

http://lists.runrev.com/pipermail/use-revolution/2002-February/002304.html

> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com]On Behalf Of Roman
> Opendak
> Sent: Thursday, December 04, 2003 11:57 AM
> To: How to use Revolution
> Subject: Re: Drag n Drop Objects in Flash vs. Rev
>
>
> > Is there a way to simulate:
> >
> >    Repeat until the mouseClick
> >
> > without monopolizing the CPU?
> >
> > This repeat loop is useful when you want the user to be able to click
> > the mouse to stop or interrupt screen activity.
> >
> > Jim
>
>
> here's a script that takes up 50 % of the cpu time... heh, heh
> it goes in the cd script
>
> on opencard
>   global counter
>   put 0 into counter
> end opencard
>
> on idle
>   global counter
>   add 1 to counter
>   if counter >= 2 then
>     put 0 into counter
>     repeat with i = 1 to number of cd btns
>       set the loc of cd btn i to random(height of this cd),
> random(width of
> this cd)
>     end repeat
>   end if
> end idle
>
> its not exaclty game speed but its great for making things blink!
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the use-livecode mailing list