A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [MX04] Change a mc variable using the root timeline?

  1. #1
    is a animator.
    Join Date
    Jan 2002
    Posts
    11

    [MX04] Change a mc variable using the root timeline?

    Why can't I change a variable in a clip via the main timeline? The initial values are set in the clip on load.

    Here is the code on the main timeline

    Code:
    _root.speedcalc.11second = _root.speedcalc.speed;
    This just ends up as a syntax error and the variable doesn't get set.

  2. #2
    Senior Member
    Join Date
    Nov 2005
    Location
    dante's inferno
    Posts
    904
    is 11second a variable? I don't believe you can start a variable with a number, swithc it to second11. not sure if that is your problem though.

    what is speedcalc, a movie clip?

    in the movie clip you would have?:
    var second11;
    var speed;

    try tracing your paths to see if your variables have a value

    trace(_root.speedcalc.speed);



    IMS

  3. #3
    is a animator.
    Join Date
    Jan 2002
    Posts
    11
    Thanks, it was 3am and I forgot you can't have numbers at the begining lol.

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