Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'Bezel Menu' system being unresponsive.

Status
Not open for further replies.

CrazyJR

Programmer
Oct 3, 2001
5
AU
I'm working on a presentation at the moment featuring a menu system (resembling the twistable bezel of a watch) where a circular bezel is used to navigate the circular menu (much like a tuning dial on a radio). Basically, the user drag the bezel around until the pointer section is pointing at the desired menu option. While the mouse is held down over this, a central image changes to indicate the selection, and once the user releases the mouse, it goes to the desired page.

Now, in theory, what I've done should be working (as far as I can see). Attached to the bezel sprite is a 'drag to rotate' script as well as the following:


on exitframe

if sprite(5).rotation > 190 and sprite(5).rotation < 196 then set the member of sprite 9 to 50
else if sprite(5).rotation > 205 and sprite(5).rotation < 214 then set the member of sprite 9 to 51

[...etc. etc. for all the menu items]

else set the member of sprite 9 to 40
end if

On MouseUp

if sprite(5).rotation > 190 and sprite(5).rotation < 196 then go to &quot;page1&quot;
else if sprite(5).rotation > 205 and sprite(5).rotation < 214 then go to &quot;page2&quot;

[etc. etc. as above]

end if


This works fine when there is only one menu option, but once more are added (by adding more 'else if' options as noted above), the whole thing seems to work once, then stops and won't work again at all.

Any help in regard to fixing this problem would be very, very much appreciated.

Thanks in advance.
J.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top