PDA

View Full Version : problem with setting vars within a movie clip



nik
March 15th, 2004, 12:22 PM
hey guys,
i need help with this problem..
i have three mc's that look like cd's:) Three instances of the same movie clip. they go into a player onRelease. do any of you know how to do this... if i click on a cd it looks if any other cd's are clicked. if anyof them are clicked then it tells them to gotoAndPlay (thisKeyFrame) in that cd movie clip(which would be a simple tween and will look like the cd comes back out).

i tried setting variables in the cdMovie clip like on the first frame onValue="no" but once it goes in and stops the onValue="yes". and then i had AS on each cd looking if the onValue variable is yes or no in each one of them. but for some reason it can't read it? Do you know what i should do? maybe create an object or something for each button?

Thanks for any help

nunomira
March 15th, 2004, 06:19 PM
hi,

here's a simple example of what I think you want

there are only two frames, instead of an animation, but the logic is pretty much the same

nik
March 15th, 2004, 09:39 PM
thanks man that helped a lot. So you basically set up a loop to see if clicked is true or false for every button. That's awesome. Thanks a lot again - exactly what i needed.