Adobe Dreamweaver Forums



Last 10 THreads :         Cotrolling Separate Movie Files (Last Post : aquachong - Replies : 3 - Views : 4 )           »          Fill graphics (Last Post : rtalton - Replies : 1 - Views : 2 )           »          CFPDF action="addWatermark" ISSUE/BUG (Last Post : -==cfSearching==- - Replies : 9 - Views : 13 )           »          remove editable region (Last Post : sugar_d - Replies : 0 - Views : 1 )           »          While executing error (Last Post : TedMoore - Replies : 2 - Views : 3 )           »          CS4 trials expired too early (Last Post : John Waller - Replies : 9 - Views : 10 )           »          can't convert wmv files (Last Post : scrytser - Replies : 3 - Views : 18 )           »          Need assistance converting some AS2 code to AS3 (Last Post : NedWebs - Replies : 1 - Views : 2 )           »          Creating form element from within a component (Last Post : jim1234 - Replies : 0 - Views : 1 )           »          Re: MIDI commands? (Last Post : rtalton - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flash
 
Tags: , ,



Reply
  #1 (permalink)  
Old 08-26-2008, 09:02 PM
kolnikoff
 
Posts: n/a
Diggs:
Default Check click on screen

Hi,

I have a set of buttons on screen but want to check if the user clicked
anywhere else on screen and if so issue a prompt to tell them to click
on one of the buttons.

Do I have to set up the whole screen as a button too?

Cheers

Kol


Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-27-2008, 09:23 PM
kolnikoff
 
Posts: n/a
Diggs:
Default Re: Check click on screen

kolnikoff wrote:
> Hi,
>
> I have a set of buttons on screen but want to check if the user clicked
> anywhere else on screen and if so issue a prompt to tell them to click
> on one of the buttons.
>
> Do I have to set up the whole screen as a button too?
>
> Cheers
>
> Kol


Forgot to mention I'm using AS 2.0 for this.

I'm thinking along the lines of:

check if the mouse button is pressed and use the switch statement to
action any button presses with the 'default' option to be actioned if no
matching button presses were recognised....

anybutton(onPress)????
(use a listening event???)

switch (anybutton)
case btn1:
//button one clicked
do something
break
case btn2:
//button two clicked
do something else
break
default :
//this is the click anywhere else on screen case
show a prompt on screen to tell user to ckick on buttons
break

Just can't get my head round the actual code at the moment!!!

hope you can help

cheers

Kol
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 08:49 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk