×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Simple Rollover question (i pressume)

Simple Rollover question (i pressume)

Simple Rollover question (i pressume)

(OP)
I am making an educational program for a school i have a section with a collection of buttons with question marks on them.

I used the built in rollover member change function and this works fine. What i would like it to do is, when the question mark is hovered over on a button, it changing to the rollover image lets say 'teeth' as an example.

Now when clicked it will go to the frame that contains this data about the teeth. I've managed that much, but when i move off the teeth button it goes back to being a question mark. Is there a way of staying as the rollover image permanently once clicked.???

So to start the kids would have a collection of Question mark buttons but as they clicked them they stayed as the topic that they are, in a 'revealing as they go along' fashion.

Any help is much appreciated ^_^

Peter Butler
Tandokuno Design

RE: Simple Rollover question (i pressume)

You have to write custom button behaviour something like this. You need a button base graphic in one sprite channel and the question mark is immediately on top of the button base.

-- Behaviour attached to the button base
global gVisited

on beginSprite me
  if gVisited then
    sprite(me.spriteNum + 1).member = member("teeth")
  else
    sprite(me.spriteNum + 1).member = member("question mark")
  end if
end beginSprite

on mouseEnter me
  sprite(me.spriteNum + 1).member = member("teeth")
end mouseEnter

on mouseLeave me
  if not gVisited then
    sprite(me.spriteNum + 1).member = member("question mark")
  end if
end mouseLeave

on mouseUp me  
  gVisited = true
  go "teeth"
end mouseUp
--

Kenneth Kawamoto
www.materiaprima.co.uk

RE: Simple Rollover question (i pressume)

(OP)
This script works perfectly !!

Thankyou so much Kenneth you're awesome!!

Peter Butler
Tandokuno Design

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close