A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Variables =>> MovieClip

  1. #1
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870

    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!!!

    so Get to the REAL point, how do you send variables into Mcs and into the next MC?

    Many Thanks!
    Tongxn
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  2. #2
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870
    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.
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  3. #3
    Registered User greenham's Avatar
    Join Date
    Mar 2005
    Location
    Australia
    Posts
    555
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center