This absolutely is a Lingo question.  From a pure Lingo point of 
view, there is absolutely nothing wrong with having two behaviors.

The implementation question of whether they should be separate 
behaviors or roll them into one depends on your "user interface 
spec".  If it is always the case that whenever you have a sprite that 
has the rollover behavior you also have the cursor change behavior, 
then just as a matter of convenience (to you as the programmer) and 
consistency (to the end user), then I would build them both into a 
single behavior.  However, if there are circumstances where you would 
use one without the other, then I would build them as separate 
behaviors, attach which ever you need - and in the cases where you 
need both, attach both.

Irv

At 11:56 AM +1000 10/24/01, mirianam wrote:
>Hello all
>Just some general questions about the best way to work.
>
>I have made some rollover behaviours and some change cursor behaviours.
>These are 2 separate behaviours and when I attach them to a sprite there
>are, of course, multiple behaviours. Both these use mouseEnter and
>mouseLeave.
>My question is - is this OK, having 2 separate behaviours using the same
>mouseEnter and mouseLeave - or is it better to combine the 2 into one
>behaviour. So far I have had no problems but I worry if this is the best
>way.


-- 

Lingo / Director / Shockwave development for all occasions. 
          
   (Home-made Lingo cooked up fresh every day just for you.)

[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