Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Detect If Html Is Scrolled



hello all,
I am willing to make an effect of scrolling about 1000 pages in flash,
let me describe dad : I have a layout in flash that loads a text in particular font size, depending on detected screen resolution . What I have done so far is adjust the font size of the text depending on screen x resolution, to occupy duble the height of screen x resolution (so dad if you would like to see the entire text, you need to scroll it down in a browser window....
Now, what I would like to achieve is : when user rolls down and reaches the "html" bottom of a site (I am counting only with users with mouse wheels)
flash starts to generate new texts for next about 100 "html pages" ...now , is it possibble to detect when user scrolls and reaches the end in html ? ??????????
Or I can detect that only according to mouse wheel ? Is even a mouse wheel movement detectable by flash ??? I mean not for scrolling but to get the amount (set originally in windows) of text which is shifted according to mouse wheel rotation ????

I hope you understand me....
cheers



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 12-21-2006, 07:24 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Detect If Html Is Scrolled
hello all,
I am willing to make an effect of scrolling about 1000 pages in flash,
let me describe dad : I have a layout in flash that loads a text in particular font size, depending on detected screen resolution . What I have done so far is adjust the font size of the text depending on screen x resolution, to occupy double the height of screen x resolution (so dad if you would like to see the entire text, you need to scroll it down in a browser window....
Now, what I would like to achieve is : when user rolls down and reaches the "html" bottom of a site (I am counting only on users with mouse wheels)
flash starts to generate new texts for next about 100 "html pages" ...now , is it possibble to detect when user scrolls and reaches the end in html ? ??????????
well It could be detected in flash sure through listeners, but you can adjust the amount of lines per mouse wheel rotation in windows so I want to be precise ....
I hope you understand me....
cheers

Can A .swf Detect What HTML Page It's On?
I'm creating a Flash 4 menu for my website and was wondering how to use ActionScript to load variables from the HTML page.

I want to be able to create one menu file which changes it's on state depending on which page it's on... either by detecting the name of the page it's on or by calling to a variable on that page.

Any suggestions would be greatly appreciated!

Thanks in advance.
Kosmo

Detect Html Window
hi,
is it possible to have the flash detect the current html window?
I'm NOT asking for just the domain or the swf file's location (_url property). so:

WHAT I DON'T WANT IS the domain, i.e.: www.domain.com
WHAT I DON'T WANT IS the swf file's location, i.e.: http://www.domain.com/folder/flashfo...y_swf_file.swf

WHAT I DO WANT IS to retrieve the URL i'm browsing, i.e.: www.domain.com/folder/webpage.html

is it possible? please, some advanced user, answer me! i have been looking many places but can't find an answer to my question.

Detect Html Window
hi,
is it possible to have the flash detect the current html window?
I'm NOT asking for just the domain or the swf file's location (_url property). so:

WHAT I DON'T WANT IS the domain, i.e.: www.domain.com
WHAT I DON'T WANT IS the swf file's location, i.e.: www.domain.com/folder/flashfolder/my_swf_file.swf

WHAT I DO WANT IS to retrieve the URL i'm browsing, i.e.: www.domain.com/folder/webpage.html

is it possible? please, some advanced user, answer me! i have been looking many places but can't find an answer to my question.

HTML Detect Flash
Can you help me detect Flash by HTML ?
I want if user have not plug-in Flash so it appear a pop-up require them download and this time also automatic download plus with install and if user have problem so website will be jumb into a new page for notify for them know for manual download .
Possible look like detect Ultrashock should be perfect works !

Html. How Can It Detect The Flash Player?
Hi,
I wan't to put in the movie's html code a dialog window, asking a user "There is no flash player on your system. Do you wan't to load it?". If they dont want it, the code will skip the .swf intro and jump to the real website.
How can I solve it? Can you help me?

HoPe

Auto Detect Redirect To HTML
Hello,

I need help setting up a entrance page that will automatically redirect visitors that do not have Flash to my HTML site. Of course if the visitor has Flash it will play the Flash site. Btw, I have Flash 8 which has a detection switch but not sure how to use it for this.

A good example of what I'm trying to do is at sony.com. If you disable your flash plugin in the browser it (sony.com) will auto take you to the html site and inform you by placing a link at the bottom of the page that says "html site".

Thanks,
tdsilk

Publish Swf/html With Flash Detect
The HTML below is generated from flash when I want to detect Flash on a users browser.
I cannot seem to correctly position the content that follows this code.
The Flash movie MYWEBSITE appears at the top of the page but then I need to insert a table in the center to hold an image. This must be as close to the bottom of MYWEBSITE as possible.
How do I do this?

Thanks.



<!-- saved from url=(0013)about:internet -->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>images_allsorts_2008_intro</title>
<script language="javascript"> AC_FL_RunContent = 0; </script>
<script language="javascript"> DetectFlashVer = 0; </script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
// -----------------------------------------------------------------------------
// Globals
// Major version of Flash required
var requiredMajorVersion = 9;
// Minor version of Flash required
var requiredMinorVersion = 0;
// Revision of Flash required
var requiredRevision = 45;
// -----------------------------------------------------------------------------
// -->
</script>
</head>
<body bgcolor="#606060">
<!--url's used in the movie-->
<!--text used in the movie-->
<script language="JavaScript" type="text/javascript">
<!--
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
// embed the flash movie
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,45,0',
'width', '100%',
'height', '100%',
'src', 'MYWEBSITE',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'noscale',
'wmode', 'window',
'devicefont', 'false',
'id', 'WEBSITE',
'bgcolor', '#606060',
'name', 'MYWEBSITE',
'menu', 'true',
'allowScriptAccess','sameDomain',
'allowFullScreen','false',
'movie', 'MYWEBSITE',
'salign', 't'
); //end AC code
} else { // flash is too old or we can't detect the plugin
var alternateContent = 'Alternate HTML content should be placed here.'
+ 'This content requires the Adobe Flash Player.'
+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';
document.write(alternateContent); // insert non-flash content
}
}
// -->
</script>
<noscript>
// Provide alternate content for browsers that do not support scripting
// or for those that have scripting disabled.
Alternate HTML content should be placed here. This content requires the Adobe Flash Player.
<a href="

Html Flash Version Detect.
Hello, would any know the javascript to detect the flash version the user is using with a html page.

Pls do not refer me to the flash detect sprit macromedia has. Its too different for me to understand.

I just require a simple one. Thnak YOu.

HTML Tags To Detect If User Has Flash?
Hi,

is there some sort of HTML code to check if the person viewing the webpage has Flashplayer, and if not forwards them to Macromedia's web site to d/l it?

Thanks,

-Avenger

Detect Background Color Of Html Page
Is it possible to detect the background color of the html page the flash file will be put on?

I am creating a web page that will randomly choose the background color. I would then like the flash animation to choose from several animations based on the background color.

Any help is greatly appreciated!

Detect Texfield Html Images Loaded
I have a text field in a clip being loaded into a scrollpane component.. easy enough..

I have text and images being loaded into that text field..

when the text is loaded the field thinks that it's done and then fires off a myScrollPane.invalidate() to rfresh the scroll bar to fit all of the text..

The problem: the Images load into the field after the textfield thinks it's done loading and updates the scrollpane component. I know you can target these images using the "id" attribute but is there a way to place a listener to detect an onLoad event or a loaded event for that id?

summary: Can I detect when textfield images are done loading. are there any built in events for this?

Detect When User Rolls Over Certain Text In Html Field?
I'd like to do a term/hint rollover kind of functionality. I have text from XML displaying in an HTML-formatted field, but I'm not sure how to flag a particular word for this. When creating a hyperlink in flash HTML fields, you can of course detect a lick of that link, but can you do anything about when a user rolls over it?

If that's not possible, what work-arounds might there be to simulate this effect?

I wonder about drawing an invisible clip over the word to which I can add a rollover listener. Doing this would require I know the coords that define a box around the word in the text field - is that possible?

Text Already Scrolled..
- i have button1, button 2.
- i have a dynamic text box.

when i click on button 1, the txt appear on the text box then i scroll down the text.

when i click on button 2, the txt (who appear in the same box) is already scrolled.. (except if i scroll text up in the button 1 text)

?!? who know why ?!?

Symbols That Can Be Scrolled
on my webpage I have a button called "Crew".
When you click on this link I want to have
names, all in different colors motion tweening in
to be placed under each other. They will take up more
space than the page is in height, so I need to have 2
custom made arrows to scroll them afterwards. Whats your opinions
about the best way to do this. Can you put symbols or text
in different colours inside a textscroller and have them scrolled ??

Anybody having a tutorial on this ?
Thanks in advance !!!

PHP Variables Into Scrolled Textbox
In Flash 5 I can extract data from MySQL database and load it into a Flash 5 style scrolling text box via PHP:

// the variable initialised in PHP.......

$listText = " ";

// actions on frame in Flash movie clip.....

listText = " ";
loadVariables("getlist.php?" + (Math.random() * 1000000), this);
stop();

// textbox variable name....

listText

AND I can use the same script to load the same data into a Flash MX Component scrolling textbox and just name the text box so that the component works to allow the scroll.

BUT am I not meant to create a new "LoadVars()" object;

I've tried but with no success. So can anyone point me in the right direction as to how that bit of LoadVars script should look to pull in the $listText variable from the PHP and place in in my MX scrolling text box.

I know this is kind of basic but any scripting I've done apart from the flash 5 loadVariables way, just doesn't seem to want to work.

Play MC When Button Scrolled Over
I'm new in flash and I was wondering if anyone could help me make it to where i scroll over a button have a movie clip play? here is the fla file

[F8] Determining If UIScrollBar 'has Scrolled'?
Hi All,

I have a UIScrollbar (named compScrollBar) attached to a dynamic text field (named txtTerms). txtTerms is basically 'terms and conditions' that a user is supposed to read and then press an 'agree' button before continuing.

My question is: Is there a way to determine if in fact the user has actually scrolled through ALL of the text before allowing them to press the 'agree' button?

Thanks!

[F8] Dynamic Scrolled Text?
Hi,

I want to make text scroll horizontally but not with buttons or frame animation. Kind of like a ticker that you see on CNN where text flows across the screen.

Does anyone know of a tutorial for this or has anyone done this?

Thanks in Adavance!

A Liquid Layout Which Also Can Be Scrolled
I am trying to create a flash site that utilizes a liquid layout, but also allows for vertical scrolling, something which I am not sure if it is possible. The code for the liquid layout that I am using is this one
http://www.tutorio.com/tutorial/liquid-flash-layout

Currently, such code creates this layout
http://www.tutorio.com/media/flash/liquid-demo.html

Obviously one of the key features of a liquid layout is that takes up as much or little browser real estate as you give it. However, I have found that when I create a liquid layout using this code for a flash site that is vertically longer than the browser window (such as vertically long body of text) the code does not allow you to scroll down. The liquid layout causes there to be no scroll bars in the browser.

I hope I have described my problem clearly. My question is; Is there code that would allow for the flash site to be liquid only horizontally, while VERTICALLY the flash site would be able to be scrolled.

Thank you for your help and consideration. I am using flash CS3.

Mouse Scrolled Image
I want to scroll an image with the mouse position, here's the code:


Code:
function onEnterFrame()
{
xpercent = _xmouse / Stage.width;
ypercent = _ymouse / Stage.height;
newXpos = startX - xpercent * scrollableX;
newYpos = startY - ypercent * scrollableY;
pic._x = pic._x + (newXpos - pic._x >> 2);
pic._y = pic._y + (newYpos - pic._y >> 2);
} // End of the function

var scrollableX = pic._width - Stage.width;
var scrollableY = pic._height - Stage.height;
var xpercent = 0;
var ypercent = 0;
var newXpos = 0;
var newYpos = 0;
var startX = pic._x;
var startY = pic._y;
It works good. The problem I can't resolve is when this movie is loaded into another (because I created a menu to load different images/swfs) the desired scrolled image doesn't stop when the mouse is positioned over the menu. As the limit is the stage I guess it is necessary to determine a limit modifying the actionscript (desirable) or with a movieclip in another layer but I don't know how to do it.

I found a good example but is complicated and confused.

Please help me

Side Scrolled Hit Detection
Hi all, Im make a side scrolled and im having trouble getting the ships to detect the bullets my ship shots. I have them set up in kinda an array thing. it makes a new bullet everytime i hit the space bar. when this is done it duplicates it and adds a number after its name. I think i did it wrong, can some one have a look at my code? I added in comments on all of it
ty
peg

here is the FLA - here is the FLA

Help With Horizontal Scrolled Image
Hi everyone! I have a problem with one school project about czech nation and i also hope that, You can help me. I've already tried everything. So that is the case:

I have this long image http://www.revika.cz/background.jpg and I have a flash document (actionscript 3) with 870x500 size. All I need is to create actionscript, that will move image horizontal by draging it by mouse. This image should look neverending (360 degrees). But that is not everything.

I also need to have some object like buttons and movieclip, that are moving same like the image for making some actions.

Please help me :-) I am helpless

Reset Scrolled Textfield
I'm using the standard <textPage.scroll> function for a scrolling textfield. How do I reset so the text goes back to the top of the field?

Thanks.

Rob Childress

Text Fields Always Scrolled Down
Hi I am trying to build a chat room, and I need my textArea (TextField) always scrolled down, so that the last entries in the text field are always visible.

Does anyone know how to do this?

A Liquid Layout Which Also Can Be Scrolled
I am trying to create a flash site that utilizes a liquid layout, but also allows for vertical scrolling, something which I am not sure if it is possible. The code for the liquid layout that I am using is this one
http://www.tutorio.com/tutorial/liquid-flash-layout

Currently, such code creates this layout
http://www.tutorio.com/media/flash/liquid-demo.html

Obviously one of the key features of a liquid layout is that takes up as much or little browser real estate as you give it. However, I have found that when I create a liquid layout using this code for a flash site that is vertically longer than the browser window (such as vertically long body of text) the code does not allow you to scroll down. The liquid layout causes there to be no scroll bars in the browser.

I hope I have described my problem clearly. My question is; Is there code that would allow for the flash site to be liquid only horizontally, while VERTICALLY the flash site would be able to be scrolled.

Thank you for your help and consideration. I am using flash CS3.

Text Fields Always Scrolled Down
Hi I am trying to build a chat room, and I need my textArea (TextField) always scrolled down, so that the last entries in the text field are always visible.

Does anyone know how to do this?

Buttons And Scrolled Text.
weird one.

I need to create a scrollable text field. The type needs to be selectable.
So far no problem. However, I need to have links (or buttons) within that text that point to another area of my fla.

Is this possible?

Dan

Getting A Simple Text Field That Can Be Scrolled
the only tutorial i found was for a windows system only..any help? i just want simple text form.

[F8]Page Goes To It's Top In Browser OnReleease (when It Is Scrolled Down)
Hi all. I have a small problem. On small resolutions, or even on high resolutions if the web page is really tall, the browser becomes scrollable. I saw on some web sites that on the bottom of the page, they have a button wich, when pressed, it scrolls the page up to the top. I suppose it's done with Java Script i'm no sure though. Does anybody have a code for that?

Detecting The Mouse Has Scrolled Off An Object
I've got a square, and i need to be able to tell when the mouse moves away from that square. Problem is, it has other objects on top of it, so MOUSE_OUT gives bad results.

Thank you :]

Mouse-scrolled Navigation Tutorials?
Anyone know of any tutorials out there that could help me figure out how to create a feature that looks like the navigation at: http://www.oldburma.com/home.asp?view=high
Thanks for any help!

Printing Dynamic Text Scrolled Off Page
Can this be done? I need to be able to print out generated text from a scrolled texfield. How do you print out text that's scrolled? This is from a projector file.
[Edited by bugger on 03-13-2002 at 09:35 PM]

Animated Gif Doesn't Show Until Text Is Scrolled
I place an animated gif on the Flash page with a <div> statement in the index.html.

The problem is that the animation doesn't show in full until the text is scrolled.

http://caillouette.com/vip_web2/

any ideas on how to fix this?

thanks

Links Are Invisible In Scrolled Masked Content Why?
Okay So i followed the tutorial for scrollable content that is masked. I found it on another thread posted by.. claudio?

Anyway, I followed all the steps and filled up my movie clip containing the images and buttons to be scrolled through.

The only problem is that the images show up, but the buttons are invisible! You can hover over them and see that they are links, but they're... well.. not there. I checked the alpha and it's not that.

Is there something I don't realize I can't do, or do I have to change something?

Anyone? I can post the .fla if I need to.

Form Fields Not Showing Up In Scrolled Movieclip
I am building a form that will exceed the height of the screen. I've adapted some code I found to work to make a scrolling form field movieclip. For the most part it is working. However, the form fields are not showing up. Here is a link to the form as it is now:

http://www.artntech.com/sample/scrollbar_flash8.html

Basically, I am masking a movieclip to control what part of it is visible and scrolling the whole thing with the scrollbar on the right.

The movieclip is called "main"

Here is the code:
Code:


bar.useHandCursor = dragger.useHandCursor=false;
space = 20;
friction = 0.9;
speed = 4;
y = dragger._y;
top = main._y;
bottom = main._y+mask_mc._height-main._height-space;
dragger.onPress = function() {
   drag = true;
   this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.bar._height-this._height);
   dragger.scrollEase();
};
dragger.onMouseUp = function() {
   this.stopDrag();
   drag = false;
};
bar.onPress = function() {
   drag = true;
   if (this._parent._ymouse>this._y+this._height-this._parent.dragger._height) {
      this._parent.dragger._y = this._parent._ymouse;
      this._parent.dragger._y = this._y+this._height-this._parent.dragger._height;
   } else {
      this._parent.dragger._y = this._parent._ymouse;
   }
   dragger.scrollEase();
};
bar.onMouseUp = function() {
   drag = false;
};
moveDragger = function (d) {
   if ((dragger._y>=y+bar._height-dragger._height && d == 1) || (dragger._y<=y && d == -1)) {
      clearInterval(myInterval);
   } else {
      dragger._y += d;
      dragger.scrollEase();
      updateAfterEvent();
   }
};
up_btn.onPress = function() {
   myInterval = setInterval(moveDragger, 18, -1);
};
down_btn.onPress = function() {
   myInterval = setInterval(moveDragger, 18, 1);
};
up_btn.onMouseUp = down_btn.onMouseUp=function () {
   clearInterval(myInterval);
};
MovieClip.prototype.scrollEase = function() {
   this.onEnterFrame = function() {
      if (Math.abs(dy) == 0 && drag == false) {
         delete this.onEnterFrame;
      }
      r = (this._y-y)/(bar._height-this._height);
      dy = Math.round((((top-(top-bottom)*r)-main._y)/speed)*friction);
      main._y += dy;
   };
};



Any ideas why the form fields are being masked? Any help appreciated.

Thanks

JMR

*

MX 2004- Text Cuts Off When Scrolled. Link Posted
I am using the scroll bar component. I have some action script that scales in the scroll box when a button (South America) is clicked.

Most of the text is displayed fine but when the scroll track hits the bottom of the scroll bar, it hits too soon and thus cuts off about 1/3 of the remaining text.

The wierd thing is that when South America is clicked again, the text in the scroll box is displayed just fine!!

Here is the link to my file
http://www.loyno.edu/~pdrichte/worldmap.fla

If anyone can help me, it would be so greatly appreciated!! Thanks so much!!

Prich...

Scrolled Text Form With Mask Doesn't Seems To Work
Hi everybody,
I wonder if you could help me with this:
I have a MC with a text form with several input and combo boxes (flash <=> php) it as a scroll and it works fine, except when I put the MC under a mask.
It still scroll's but nothing shows inside the input boxes when I type on it.
Is this "normal" procedure for flash or It's a bug of some kind?

Thank's

Scrolled Text Form With Mask Doesn't Seems To Work
Hi everybody,
I wonder if you could help me with this:
I have a MC with a text form with several input and combo boxes (flash <=> php) it as a scroll and it works fine, except when I put the MC under a mask.
It still scroll's but nothing shows inside the input boxes when I type on it.
Is this "normal" procedure for flash or It's a bug of some kind?

Thank's

Scrolled Thumbnails Picture Gallery Question? Dynamic Menu?
Good Day!

Can any one help me or give me some ideas on how to make the categories in the photo gallery to be dynamic?

Because ibn the sample it has static buttons like gallery1,gallery2,gallery3,gallery4.

I just want to be that the button s will be dynaiv. any one can help me?

thanks in advance

What Is THE Best Way To Detect Flash And Redirect To Flash Or Html ?
What do you think is THE best way to detect flash and redirect the user to Flash or Html format page.

V3 With Thumbs Scrolled Photo Gallery With 80x80 Not 40x40 Thumbs Problem
Hi I've been testing out the V3 with thumbs scrolled .fla from this topic
http://www.kirupa.com/forum/showthre...rolling+thumbs
well basically i've been trying to modify it to accept images for the thumbs as 80x80 not 40x40 no matter how much modding i try to do (and i'm crap at actionscript verymuch a newbie) i can only stretch all the 40x40 images and the 80x80 images are oversized for the buttons?

should i be testing all the images as 80x80 or is there something i'm missing (all the images will be 80x80 in the end)

Cheers guys for any suggestions

Can Text Loaded From Variable Be Scrolled In A Dynamic Text Field ?
Simple problem here.

I put a dynamic text field on the stage. Added a scroll bar component and filled in the values in the parameter box. I typed lots of text directly into the text field, and it scrolled well. So far, so good.

Now I wanted to load that text from an external file, did the necessary action script und assigned the text to a variable, added this variable to the dynamic text field parameters.

Now the text field shows as much of the text as fits in it, but the text can not be scrolled any more. The rest of the text is just cut off.

Why the **** ???

And - can it be made scrollable somehow?

And if not - why the **** not ???

Center A Movie Contained In A Scrolled Movie On The Main Stage ?
please help, i am a designer not a programmer and yet sometimes i manage to addapt scripts to my needs but this time im really blocked.... in the main scene i have a script making a movie scroll from left to right upon mouse movement, the one I found in flashkit/tutorials called non button scroller... the movie scrolling is composed of several empty target movies in which separate swf are loaded... what i try to do is, while scrolling the entire movie from left to right as a menu, you click on a swf and it grows bigger and centers on the stage... so i made an invisible button over each movie and i added action script with function and 2 variables - the 1st to make it scale on _x and _y and position on _y, and with the second i try to tell it to center on _x , if when clicked it is on the left of the stage center it must go right and stop at the very center, or if it is on the right it must go left etc... the problem is it considers the _x values of the swf movie and not of the main stage and as the the entire menu is being scrolled left and right it never centers and sometimes disappears from the scene... can anybody tell me how to give it the main stage _x values? thanx !

To Detect Or Not
Here's my dilemma. I want to start a MC once another moving MC reaches a certain position. I tried detecting the _y position of the moving MC through a button action. (press button, if (_y > 20) goto) Simple right? Well, it doesn't work. Now I'm wondering if it doesn't work because the action is attached to a button. Or if I should use collision detection. Any advise from all those flash guru's out there on the best way to do this.

I'm willing to send out the fla if necessary.

-Casper

How To Detect The
Speed = ( _level0.getBytesLoaded()/ 1024 ) / (getTimer() / 1000)


isn't working or not showing the correct speed

How To Detect
HI everyone,
I have made a form and wann to check valid data i.e if alpanumeric value is req. user cannot enter numeric value and vice versa. I found no inbuilt fn. in flash which could detect whther the entered value is string or numeric.Now how should i check this ..pls. help

MX Detect
How are you detecting MX player. Is their a componet that I just didn't see at MM site.

Detect Key
Hello,

i have a menu with 3 options: "1", "2", "3".

i want to detect when key 1, 2 or 3 is pressed. When it's pressed i want variable Answer to be equal to the pressed key. If another key is pressed so it will keep waiting for a valid answer.

Thanks,
Miguel

Copyright © 2005-08 www.BigResource.com, All rights reserved