Mark...
That's what I have always done as well. Only now it doesn't wanna work.
Here is the exact code I used for my explanation earlier.
property x
on beginSprite me
x = 0
end
on mouseDown me
x = 1
end
on mouseUp me
if x then
alert "I'm button 1"
x = 0
end if
end
I just copied the above into a separate behavior and changed the alert to
say "I'm button 2" so I had 2 different behaviors. I have been building
buttons (amongst other things ;) for quite a while now and I can't recall
ever running into this before.
I tried 'the buttonStyle = 1' and it clears this up, but I don't understand
why the above code doesn't work. Anyone want to point out the errror ;)
Later.
...Neil
>I have always used a property in the behaviors. Something like:
>
>property spriteNum
>property pClicked
>
>on beginSprite me
> pClicked = 0
>end
>
>on mouseDown me
> pClicked = 1
>end
>
>on mouseUp me
> if pClicked then
> -- do something
> pClicked = 0
> end if
>end
>
>on mouseUpOutSide me
> pClicked = 0
>end
>
>BUT...Somebody recently posted the fact that you can use 'the buttonStyle'
>movie property to get the same effect. Even though the D7 docs say it only
>supports buttons created with the Tool Palette, it actually works with
>graphic buttons, too.
>
>And it just worked in my little quickie test! :-)
>--
>Mark A. Boyd
>Keep-On-Learnin' :)
[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!]