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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Old fashion menues

Status
Not open for further replies.

johanbj

Technical User
Nov 11, 2002
4
NO
Hi

Please bear with me, I'm a newbie... Is there a web-site or an example that explains how to make these types of menues:
I have 3 choices that I want the user to choose from: 1) More Information 2) Register 3) Quit. Menu 1 should automatically be highlighted and marked with a see-through rectangle. If the users presses down-arrow, the next menu should be highlighted and marked with the same rectangle, and so on... I think this is the old way of navigating through a menu. No use of mouse, only selecting with arrows for up, down,left, right and Enter as OK instead of click with mouse.

Best Regards,
Bjarte
 
Hi and yes, just like those menues, but it can even be more simple. There doesn't have to be that fade-inn effect on the see-through rectangle... And the menu should work with press on the keyboard (left, rigt arrow and enter) instead of mouse.

Regards,
Bjarte
 
Yes, this is the one that I'm looking for, but how to control it by the arrow-keys? I'm not able to use the propriu.rar file :-(( Which program should I use?
 
winrar v3.0
If you cannot find it give me your e-mail and i will send you all the files. Regards,
Dragos.


 
(Rename the: ".rar" file to: ".zip" then unzip it!) To control by keys you need to add this:

Code:
onClipEvent (keyDown) {
	if (Key.isDown(37)) {
		direction = "left";
	}
	if (Key.isDown(39)) {
		direction = "right";
	}
	if (Key.isDown(38)) {
		direction = "up";
	}
	if (Key.isDown(40)) {
		direction = "down";
	}
}
onClipEvent (enterFrame) {
	if (direction == "left") {
	    // left code here
	} else if (direction == "right") {
	    // right code here
	} else if (direction == "up") {
	    // up code here
	} else if (direction == "down") {
	    // down code here
	}
}
Regards
David Byng
spider.gif

davidbyng@hotmail.com
 
Ready as always.
Nice work DAVID!!! Regards,
Dragos.


 
Thanxs to everybody that have given me informastion and tips. Now I have the input that I need :) And I got WinRar from Tucows, but renaming to .zip was also a good one...

Regards,
Bjarte
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top