At 12:48 -0500 01_01_22, grimmwerks wrote:
>Hey Tab
>
>I'm sure I didn't ask the question properly, but my main idea was that
>sprites are handling the navigation via different behaviors. So to do the
>same thing in a frame script would be messy..

You don't have to "do" the thing in the frame script.
The frame script is just a surefire place to pick up key-events.
 From there transfer the event to the sprites by using sendAllSprites, as:

--- frameScript----
on keyDown me
  sendAllSprites #mKeyDown, the key
end
--- /frameScript----


--- spriteScript----
on mKeyDown me, aKey
   --do what I would otherwise do if I was able to receive key-events by myself.
   --no mess attached!
end
--- /spriteScript----

The only thing you loose is that the behaviors, are no longer totally 
"standAlone", but that is rarely a critical consideration in the 
context of a "system framework" for a specific application.

Jakob

[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!]

Reply via email to