Hi,

They are both statements using the "ternary operator" - you had the right idea in your prevouse email.

http://www.google.co.uk/search?hl=en&q=actionscript+ternary+operator&btnG=Google+Search&meta=&aq=0&oq=actionscript+tern

Basically it reads (If the condition before the qestion mark is true) ? do this : otherwise do that; It is often better to write out your ternary statement with brackets because it helps make it a bit clearer.

   Something like this:

   maxH = (maxH == 0) ? maxW : maxH;

   Glen

Isaac Alves wrote:
I would like to understand that one too:

maxH = maxH == 0 ? maxW : maxH;

Thanks!
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to