A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Bloody Hell!

  1. #1
    Member
    Join Date
    Mar 2002
    Posts
    37

    Simple Question Really...

    Right,

    I'm trying to do a telltarget command that sends a movie to a variable scene, generated by adding the number of attempts made in a game to the suffix "off" (I'm turning window lights off one by one....)

    Now I've tested the variable and it's generating that ok. So I get:

    1off
    2off
    3off et

    And they are (funnily enough) the names of the scenes. The file I want to change is on the main timeline and called "windows" . So when I use the code below, it's supposed to send it there - how come it doesn't then??? ARGH!

    My code:

    tellTarget (_root.windows) {
    _root.windownumber = _root.numberattempts + "off";
    gotoAndPlay (_root.windownumber);
    }

  2. #2
    Flashkit Jedi

    Join Date
    Jul 2001
    Location
    Coruscant System
    Posts
    3,426
    tellTarget sux.

    Use the following code:

    Code:
    _root.windownumber = _root.numberattempts + "off"; 
    _root.windows.gotoAndPlay(_root.windownumber, 1);
    That will work.

    XFM

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