Best Practices in Rev development

Stephen Barncard stephenREVOLUTION at barncard.com
Thu Jun 21 13:16:04 EDT 2007


Yes, a good idea. For instance, one might want the same code to be 
triggered from different events.

on mousedown
   doit
end mousedown

on selectionchanged
   doit
end selectionchanged

on returninfield
   doit
end returninfield

on doit
repeat with n = 1 to 200
set the cursor to busy
end repeat
end doit


>My point was more about decoupling the bulk of the actual code from
>the on-screen object event handlers: mouseUp, returnInField, etc. I
>don't always do this, but if the handler grows to more than a couple
>of lines I'll usually break it out.
>
>--
>-Mark Wieder

-- 


stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -





More information about the use-livecode mailing list