all groups > flash actionscript > march 2006 >
You're in the

flash actionscript

group:

Need Help - Navigating with a mouse click


Need Help - Navigating with a mouse click WolfmanVancouver
3/31/2006 6:52:12 PM
flash actionscript:
Hi if anyone could offer any help that would be greatly appreciated.

I have a product demo that I am currently working on. The demo is currently
controlled by either hitting the space bar or enter key to advance the
animation. I would also like to have the file advance by using a single or
double mouse click. Does anyone know how I could achieve this without creating
a button.

Thanks
Re: Need Help - Navigating with a mouse click TiJayOldroyd
3/31/2006 6:57:01 PM
this.onRelease = function() {
blah blah blah;
}

Re: Need Help - Navigating with a mouse click WolfmanVancouver
3/31/2006 8:54:51 PM
after reading my first post I think I need to re-explain.

I have a demo (animation) that is is controlled either hitting the space bar
or enter key to advance the animation. I have placed an invisble button just
off the edge of the stage and attached these actions to the button:

on(keyPress "<Space>"){
play()
}
on(keyPress "<Left>"){
play()
}
on(keyPress "<Enter>"){
play()
}

I would like to also have the animation controlled by using a mouse click. I
think that I need to add a mouse listener in order to make this happen. I'm not
really sure how to do this..

If someone could offer some advice it would be appreciated.

Thanks

Re: Need Help - Navigating with a mouse click TiJayOldroyd
3/31/2006 9:07:16 PM
this should do it

on (release) {
play();
Re: Need Help - Navigating with a mouse click WolfmanVancouver
3/31/2006 9:11:32 PM
AddThis Social Bookmark Button