A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: variable from main timeline!!

  1. #1
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472
    My problems are quite simple:

    How to obtain a the varable "xspeed" from the main timeline?
    this._x = this_x + _root.xspeed;
    doesn't work

    How to obtain the varable "xspeed" from another mc?
    this._x = this_x + _root.othermc.xspeed;
    doesn't work

    Please help
    Kristian

  2. #2
    this._x = Number(this._x) + Number(_root.xspeed);
    this._x = Number(this._x) + Number(_root.othermc.xspeed);

    Sometimes Flash needs help realizing variables are numbers.

    --J


  3. #3
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472
    Hi J

    Thanks a bunch
    -K

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