A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: } and ; suffixes

  1. #1
    Member
    Join Date
    Jun 2001
    Posts
    71
    hello everyone,
    okay I know htis is a bit of a stupid question but it's starting to conufuse me.
    when I use a basic command like tellTarget("___") I put a } or a { or a ; behind it.
    I htink Flash automatically puts a { on it.
    And when I use things like gotoAndPlay it puts a ;
    on the end.
    Whta's the difference between {, }, and ;???
    and when I made a new line I wasnted to { and make a space between the two line of commands and it gave me a syntaxe error.
    please help

    thanks everyone in advanced!

  2. #2
    Member
    Join Date
    Oct 2001
    Posts
    44

    Arrow

    Dear...

    The explanation is following:

    1. Char ";" is put at the end of the instruction, for example:

    movie_clip.gotoAndPlay(1);
    y=1;

    2. Chars "{" and "}" indicate a block of instructions within the statement, for example:

    with (movie_clip) {
    _x=100;
    _y=100;
    gotoAndPlay(10);
    ......and so on
    }
    or
    if (x == 1){
    y=2;
    j++;
    .....and so on
    }

    Got it ?
    For the rest, read ActionScript Reference in Flash 5 Help
    OK. That´s all for the basics...
    Good Luck
    ZeroIQ

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