A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: you've got to be kidding...

  1. #1
    Senior Member SubwayDesigns's Avatar
    Join Date
    Oct 2002
    Location
    Lausanne, Switzerland
    Posts
    143

    you've got to be kidding...

    this is driving me crazy. Here's a piece of code I'm using:

    Code:
    1tf.tabIndex = 1;
    2tf.tabIndex = 2;
    gy1.restrict = "0-9";
    gy1.tabIndex = 3;
    4tf.tabIndex = 4;
    5tf.tabIndex = 5;
    gy2.restrict = "0-9";
    gy2.tabIndex = 6;
    7tf.tabIndex = 7;
    8tf.tabIndex = 8;
    gy3.restrict = "0-9";
    gy3.tabIndex = 9;
    now personnaly I can't find any syntax errors, but when I export/pas into normal mode, flash gives this as output:

    Symbol=Symbol 123, Layer=Layer 1, Frame=1: Line 3: ';' expected
    1tf.tabIndex = 1;

    Symbol=Symbol 123, Layer=Layer 1, Frame=1: Line 4: ';' expected
    2tf.tabIndex = 2;

    Symbol=Symbol 123, Layer=Layer 1, Frame=1: Line 7: ';' expected
    4tf.tabIndex = 4;

    Symbol=Symbol 123, Layer=Layer 1, Frame=1: Line 8: ';' expected
    5tf.tabIndex = 5;

    Symbol=Symbol 123, Layer=Layer 1, Frame=1: Line 11: ';' expected
    7tf.tabIndex = 7;

    Symbol=Symbol 123, Layer=Layer 1, Frame=1: Line 12: ';' expected
    8tf.tabIndex = 8;
    am I missing something here?

    any help would be appreciated.

    -s.

  2. #2
    Untitled-1.fla strille's Avatar
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    1,626
    You cannot name instances starting with a number. Well, actually you can, but if you do you have to write for example this[1]. Rename them and it should solve itself.

  3. #3
    Senior Member SubwayDesigns's Avatar
    Join Date
    Oct 2002
    Location
    Lausanne, Switzerland
    Posts
    143
    hmm... didn't know that. Thanks for the answer.

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