Hi Allen,
No, there isn't (to my knowledge) any way to directly control the
speed of film loops.
As others have tried to point out: you need top get rid of the repeat
loops altogether, because the odd behaviour you're seeing is a direct
result of the way repeat loops are handled by Director.
One way to avoid repeat loops in your situation is to use other
system events in your behavior to set the button states:
on mouseEnter
Sprite(Spritenum).cursor=HoverCursor
Sprite(Spritenum).member=Hovermember
end
on mouseLeave
Sprite(Spritenum).cursor=NormalCursor
Sprite(Spritenum).member=Normalmember
end
on mouseDown
Sprite(Spritenum).cursor=ClickedCursor
Sprite(Spritenum).member=Clickedmember
end
on mouseUp
Sprite(Spritenum).cursor=HoverCursor
Sprite(Spritenum).member=Hovermember
do myButtonScript
end
on mouseUpOutside
Sprite(Spritenum).cursor=NormalCursor
Sprite(Spritenum).member=Normalmember
end
The above is just an (untested) example of the intended approach.
You can use the beginSprite handler to initialise property variables
such as NormalCursor, Normalmember, myButtonScript.
Additionally you can use the getPropertyDescriptionlist handler to
set score properties for the individual buttons, so you can use the
behavior for different buttons without modifying the script itself.
Since this type of behavior isn't using any repeat loops, It
shouldn't have any effect on the speed of your film loops.
Hope this helps,
Mark
On 20-feb-2006, at 10:34, Allen Stare wrote:
Here's what I'm working with. It's just a simple little behavior
that I've
used for years (I'm sure I stole it out of a book somewhere years
ago and
have modified it from project to project to suit my needs). It
handles the
roll over character and the clicked character and sounds for
entering and
clicking and a whole bunch of button related things. As you
guessed, the
offending section is here:
Mark Hagers
[EMAIL PROTECTED]
[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!]