Outline ·
[ Standard ] ·
Linear+
flash help again..., sorry,its me again...
|
TSsmokey
|
Mar 18 2006, 07:41 PM, updated 20y ago
|
|
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
|
Mar 18 2006, 09:17 PM
|
|
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; } }
|
|
|
|
|