A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Expression box?

  1. #1
    Member
    Join Date
    Feb 2001
    Posts
    42
    What does the expression box do? does it matter if it is checked or not?

  2. #2
    Senior Member
    Join Date
    Nov 2001
    Posts
    667
    It's hard to explain what it does... but yes it does matter if it's checked or not.

    What it does is to toggle "" around that peice of input on and off (expression = no ""). (It's explaining what that does thats hard).

    Well heres an example:

    gotoAndPlay("myFrame");

    (expression box not checked) This sends the movie to a frame labeled 'myFrame'.

    While:

    gotoAndPlay(myFrame);

    (expression box checked) Sends the movie to to the value of the variable 'myFrame'. ('myFrame' can be a number or a string).

    This isnt really the best example, but I hope you get the idea.

  3. #3
    Developer
    Join Date
    Sep 2001
    Location
    The Bluegrass State Will Flash For Food ™
    Posts
    3,789

    Does this help at all...

    // example

    anotherVar = "that text"; // not an expression because we're using quotes

    thatVar = " and this text"; // again, expression box is not checked; you still have quotes

    thisVar = anotherVar + thatVar; // thisVar is equal to the value of anotherVar plus the value of thatVar ("that text and this text"); this is an expression (box is checked, removes the quotes, evaluates the expression)

  4. #4
    Member
    Join Date
    Feb 2001
    Posts
    42
    i sorta get it now...

    thanks guys for clearing it up for me

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