Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

modular scripting or addressing problem

Status
Not open for further replies.

eevul

Programmer
Feb 21, 2003
1
GB
In a game, I have a movie clip which contains 3 other movie clips - options A, B and C. I want to track which of these options the user selects and to give him/her a score depending on which option they choose.

I'm trying to do this using the setRGB and getRGB methods of the Color object. As I have 50 instances of the main movie clip (the one containing the 3 options) I think I must write the code in the main timeline, not within the movie clip. The problem is: it don't work!

any ideas
 
better to use some variables on main timeline and use them to track user

eg main timeline

a = false

when a is clicked as part of the on release function _root.a = true

you can then tell by which values are true where user has been
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top