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
TiJayOldroyd - 31 Mar 2006 19:57 GMT
this.onRelease = function() {
blah blah blah;
}
i would think that would do it...haven't tried it yet...
WolfmanVancouver - 31 Mar 2006 21:54 GMT
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
TiJayOldroyd - 31 Mar 2006 22:07 GMT
this should do it
on (release) {
play();
}
WolfmanVancouver - 31 Mar 2006 22:11 GMT
Thanks but I've already tried that and I've tried mouseDown as well with no luck.