Hi
I have a keydownscript set to a handler in a parent script.

I'm pretty sure the "keydownscript" needs to be a handler in a movie script - or a line of lingo (such as "sendSprite(1, myKedownHandler"))


I have a Movie enterframe calling a main method for updating objects.

events such as enterFrame, exitframe, mouseDown etc etc - do not pass by default if they are caught higher up the event chain. This means if you have a frame script with an enterframe handler, the event will not get sent to any moviescripts unless you explicitly pass it - eg


-- frameScript
on enterframe (me)
   do something
   pass -- let the event go to the movieScripts
end     



Basically the keydownscript handler never gets the event in shockwave.

I've found that Shockwave + Safari can be very sluggish at capturing keyDown events with the keydownscript, but they do work (provided shockwave itself has focus)


2 questions:
- 1 - I tried to set the keyboardFocusSprite but it does not help. how do you set the focus on an object beside using the keyboardfocussprite?

The keyboardfocussprite kind of works toggling the focus between editable sprites, but it wont help (directly) if you are trying to give a different member type access to 'on keyDown' handlers. Depending on what you want the events for, you are better off either testing for the keyPressed or use the keyDownScript and route a message to the object/sprite.



- 2 - Any idea of what is the priority and order of events : enterframe , keydown....?

On the back of the manual of Director 4 (I think it was), was a very helpful diagram of how events are passed - generally first to the 'primary event handler' (which is the keyDownScript), then on to sprites , then framscripts and finally movieScripts.


Luke--------------------------------
| www.meccamedialight.com.au   |
| www.lingoworkshop.com        |
--------------------------------


-- ***************************************************************** Mecca Medialight Pty Ltd

Mecca Medialight:
111 Moor Street
Fitzroy, Vic. 3065
Tel +613 9416 2033
Fax +613 9416 2055

Mecca Medialight Sound Studio:
1 Bakehouse Lane
http://www.meccamedialight.com.au/

*****************************************************************
This email and any files transmitted with it may contain information which is privileged, confidential and protected from disclosure. If you have received this email in error please notify [EMAIL PROTECTED] and do not use, disclose, copy, distribute or retain any of it without our authority.
*****************************************************************



[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/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