Quote:
Originally Posted by Rockyeaster07
Sorry to be a total noob, but really unsure on this.. any other way to explain it for a noob?
|
how he explained it was pretty basic. but i'll take a shot at explaining it.
ok so its a spot the difference game right? well lets say everything that is considered a "difference" will be a movieclip or a button placed on the stage.
so you have 7 differences, 1 movieclip/button for each difference. that makes 7 total.
following me so far? now what Prid was trying to tell you was there two ways of doing this. you can click on each movieclip/button and place the code on there or you can simply do it all on the main timeline. depending on how you choose to do it depends on how you write the code for its pressed.
see if you click the button/movieclip and press F9 to enter code then you'll have to use this for when its pressed:
ActionScript Code:
on(press){
// do something
}
if your doing it all on the main timeline and not on the buttons directly. then you'll do it like this:
ActionScript Code:
/*
when you place the movieclip/button on the stage
click it and give it an instance name. assuming you
had called one of them difference1. then this is how
you'd write it:
*/
difference1.onPress = function(){
// do something
}
now looking at Prids post you should understand it much better. so lets look at it. he want you to your frame (meaning on the main timeline) and place that variable there.
then on the movieclips/button if you put the code in a press event like i did above you can enter his code in there and it will work like a charm. so did that clear things up for you?