Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: flash 5 - up key isn't recognized
From: Helen Triolo
Date: Wed, 25 Oct 2000 17:13:32 +0100

hiya f! (love those cheery messages ;-) Not sure if it's your problem
or not (since the up key should still work until the scroll reaches the
top and then quit), but I think you need to check for

if (_root.text.scroll > 1) {

in your UP key loop (the opposite of your DOWN key check). And also I
don't think you should need all the else statements that check if the
key = 0 since they all perform this command

_root.text.scroll = _root.text.scroll;

which does nothing, as far as I can tell, and nothing is what will
happen even if you don't check (but I could be wrong -- I didn't test
the code).

Regards,
Helen
---------------------------------------------------
Flash 5 Journal: http://i-technica.com/flash5
Flash Q&A archive: http://i-technica.com/flashlist

Fortune Elkins wrote:
>
> hiya!
>
> got my press and hold key scrolling down cold in flash 5. except that flash
> doesn't seem to recognize the *up* arrow key press.
>
> what's the error in my code? i trust y'alls eagle-eyes here...<g>
>
> if (Key.isDown(Key.UP) == 1) {
> if (_root.text.scroll<=_root.text.maxscroll) {
> _root.text.scroll = _root.text.scroll-1;
> }
> } else if (Key.isDown(Key.UP) == 0) {
> _root.text.scroll = _root.text.scroll;
> }
> } else if (Key.isDown(Key.DOWN) == 1) {
> if (_root.text.scroll<_root.text.maxscroll) {
> _root.text.scroll = _root.text.scroll+1;
> }
> } else if (Key.isDown(Key.DOWN) == 0) {
> _root.text.scroll = _root.text.scroll;
>
> }
> else if (Key.isDown(Key.PGUP) == 1) {
> _root.text.scroll = 1;
> }
> else if (Key.isDown(Key.PGUP) == 0) {
> _root.text.scroll = _root.text.scroll;
> }
> else if (Key.isDown(Key.PGDN) == 1) {
> _root.text.scroll = 27;
> }
> else if (Key.isDown(Key.PGDN) == 0) {
> _root.text.scroll = _root.text.scroll;
> }
> endif;
>
> tia,
>
> fortune
>
> ----------------------------------------------------------------------------
> --------------------
> The views and opinions expressed in this email message are the sender's
> own, and do not necessarily represent the views and opinions of Summit
> Systems Inc.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flasher is generously supported by...
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and the Flash(tm) Film Festival
> November 27-29, 2000, LONDON, National Film Theatre
>
> Produced by United Digital Artists and lynda.com
> -Sponsored by Macromedia, Adobe Systems and Apple Computer
> -http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
> Register before November 10 and save £200
> http:// www.flashforward2000.com
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save £200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: flash 5 - up key isn't recognized, Fortune Elkins

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]