Hi, I know that this posting is two days late but may I clarify this:
>Now to your other question. It would appear that you've got your sprites (the buttons you're wanting to program) spanning across multiple >frames in the Score (I'd guess 28 frames) and that the code you've attached to them is attached to only part of their span. The default is 28 frames but I did not use this. Rather I used 20 frames. But here you are suggesting only one frame. Is this common? >This is important because the 'beginSprite' and 'endSprite' stuff in a behavior is not entirely aptly named. It would be better to think of it as '>beginAttach' and 'endAttach' -- the behavior code activates only at the point it's first attached in the Score, and deactivates when it is >detached. It's not locked to a sprite span; it is locked to its own span of frames. This means you can have a sprite spanning from frame 5 >to 15, but if you've hot a behavior attached only at frame 10, that's the only place in the entire sprite's duration where the behavior will have >any effect. (More or less!) I do not understand. How can a behavior be attached to a frame? Isn't a behavior attached to a sprite? > So the first thing to do would probably be to shorten the span of frames your buttons occupy so they are down to just one frame. At the >end of their spans right now you should see either a little circle or a little rectangle, terminating a line. Those are 'handles' of a sort and >can be used to drag the sprite's span to a longer or shorter duration. Drag both sprites' spans so they each occupy one frame (the same >frame) and, in the frame script channel at the top of the score, make sure to add this behavior: >on exitFrame me >go the frame >End exit Frame >on mouseUp me >sprite(250).visible = not ( sprite(250).visible ) >END mouseUp >on endSprite me >sprite(250).visible = TRUE END >endSprite I shortened the sprite to one frame as you suggested. I've taken away all other lingo commands. And these three scripts are all I use, is this correct? I'm sorry, but why does it still not work? When I run it, the debugger appears with this message: sprite(250).visible = not ( sprite(250).visible ) with the words me<offspring'''''' 34956fc> These are variables,I know. What has the offspring got to do with it? And you also wrote these words: 'Also, make sure you add the 'me' keywords if these are behaviors'. Where is my mistake now? Thank you Noelle [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!]
