-
Variables =>> MovieClip
Hello guys! Long time no see.
Anyway on to the point! Im trying to send variables into movieclips, is there anyway i can do this? I mean I can't get Flash to do what i wanted it to do:
a single movieclip called clock<instance> with 2 hand(like a clock) and another movieclip called lab3l<instance> with a dyn.txtbx. var cityLable, i grouped this two movieclips together into mc named clockInstance<instance>, placed this (clockInstance) onto the stage centre (max centre) along with 2 buttons which point left and right.
when I click the 2 buttons pointin left and right, the clock instantly responds to a variable sent from the stage through clockInstance and into clock and lab3l. Easy.
What Im trying to archieve here is a world clock which displays world time, with the city name. I researched for these 4 cities but there could be more:
[warning: plain glibberish!]London (G.M.T), Beijing (G.M.T.+7), New York(G.M.T.-7) and Sydney (G.M.T.+10)[/warning]
now what im trying to do is to capture the computer time, set at G.M.T+7 and turn the hour hand this way and that. Easy.
Now the stupid coding of my brain comes in, I set a hell load of variables and try to use normal if and else ifs to decide which and what clock to use and how.
Im not gonna bore you I swear!!! :p
so Get to the REAL point, how do you send variables into Mcs and into the next MC?
Many Thanks!
Tongxn
-
SOLVED!!!
I simply made the hour hand spin around when i drew it and made 4 clocks, grouped them into a movieclip and i only need to set MC _x coordinate to get it Moving. u get what i mean.
Thanks anyway.
-
Hey tongxn,
I don't wish to be a nag - sometimes I neglect to use this feature on my own threads - but could you please select the Mark Thread Resolved option from the Thread Tools dropdown. Just helps keep things running smoothly. :)