Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Actionscript / March 2006



Tip: Looking for answers? Try searching our database.

Need Help - Navigating with a mouse click

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WolfmanVancouver - 31 Mar 2006 19:52 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.