A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Been a while..

  1. #1

    Been a while.. [RESOLVED]

    I haven't used Flash in a while and I'm paying for it now. I'm trying to control the main timeline from an MC. When a certain score is reached, the frame should advance to 2. Have a look at my current code:
    Code:
            if (parseInt(/:score) >= parseInt(/:pelletCount * 10)) {
                gotoAndStop (2);
            }
    When gotoAndStop(2); is replaced with getURL(), it works flawlessly. Is there a special way to control the main timeline from an MC?
    Last edited by Supra; 12-06-2002 at 02:49 PM.

  2. #2
    ¤ ¤ ¤ PAZ ¤ ¤ ¤ nordberg's Avatar
    Join Date
    Nov 2000
    Location
    east of west
    Posts
    4,704
    i'm not sure how you have your .fla setup, but since you mentioned something about controlling the main timeline, it might be as simple as adding _root. to the front of your goto command...

    Code:
    _root.gotoAndStop(2);

    Ah, these boys is all swelled up. So this was earlier...getting set to trade. Then, woooaaah differences.
    Blog ¤ Photos ¤ Book

  3. #3
    Yup.. that did it. I should probably stop using Normal Mode more often Thanks bro

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