Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 flash help again..., sorry,its me again...

views
     
TSsmokey
post Mar 18 2006, 07:41 PM, updated 20y ago

Infinity speed
*******
Senior Member
3,506 posts

Joined: Jan 2003
From: Lumpur
sorry for keep opening up threads...

got a problem now...

QUOTE
on (press, keyPress "<Down>") {
graphic._y += 10;
}
i assign that actionscript to a button...and the 'graphic' is the instance name for the scrolling contents...

but the problem is, the scrolling only works if i press the keyboard 'down' arrow key...it wont work if i press the button with my mouse...

any1 can explain?
mclelun
post Mar 18 2006, 09:17 PM

On my way
****
Senior Member
662 posts

Joined: Jan 2003
because the "press" event is only trigger once everytime u click it.

CODE
on(press) {
vDown = true;
}

on(release){
vDown = false;
}

on(keyPress "<Down>"){
_root.graphic._y += 5;
}

onClipEvent(enterFrame){
if(vDown == true){
 _root.graphic._y += 5;
}
}


 

Change to:
| Lo-Fi Version
0.0118sec    0.57    5 queries    GZIP Disabled
Time is now: 25th November 2025 - 11:01 AM