rss twitter

IF statement shortform

Actionscript:

Actionscript:
  1. if(_scrollable) {
  2.    _maskwidth = _positions.width - _spacer;
  3. } else {
  4.    _maskwidth = _positions.width;
  5. }

Actionscript:

Actionscript:
  1. _maskwidth = _scrollable ? _positions.width - _spacer : _positions.width;

One Response to “IF statement shortform”

  1. [...] - hast du das mit der if-kurzform verstanden? solange der currentframe kleiner als 8 ist soll er weitergehen, sonst auf frame 1 [...]

Leave a Reply

Powered by WordPress | Free T-Mobile Phones for Sale | Thanks to Palm Pre Blog, Video Game Music and Get Six Pack Abs