AllExperts > Macromedia Director 
Search      
Macromedia Director
Volunteer
Answers to thousands of questions
 Home · More Macromedia Director Questions · Answer Library  · Encyclopedia ·
More Macromedia Director Answers
Question Library

Ask a question about Macromedia Director
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Arvind
Expertise
I can answer questions on creating simple games using Director 8 and Director 8.5. Please no questions on 3D aspects. Lingo questions welcomed.

Experience
I am at University and have completed an HND in Computing and Mathematical Sciences, and a BSc in Multimedia Technology. Below is my dissertation which is on Interactive Gaming: -

G@ME-i 2
 
   

You are here:  Experts > Computing/Technology > Web Design > Macromedia Director > getting a sprite to appear when another sprite is clicked

Macromedia Director - getting a sprite to appear when another sprite is clicked


Expert: Arvind - 2/17/2006

Question
hi again Arvind

I've been trying to get a text cast member to appear when I click on an area in a picture.

on mousewithin me

show member.(1)

end

but I'm not getting anywhere.

have also tried adding a transparent shape and putting the behaviour on the shape, but the same thing happens.  Is there a way to do this? It's on the tip of my brain but I simply can't think of it.

Hope you can help me.

Alejandra  

Answer
Hi Alejandra,

You can use the VISIBLE property to make this happen.

Create a script on your script channel with the following: -

on exitFrame me
 sprite(1).visible = false
end

Make sure you replace the "1" with whatever channel your text sprite is on.  Then on the sprite you want to click, put this script: -

on mouseUp me
 sprite(1).visible = true
end

Save the movie, rewind, and play it back.  Click the sprite, and your text should appear. :D


Hope that helps.


Arvind

View Follow-Ups    Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.