ActionScript 3.0 :: Shorthand For Value Reversal ?

Jan 22, 2010

Is there an easier way to do this?

ActionScript Code:
if(!mc.visible) mc.visible=true;

Didn't know if I've missed some kind of reversal syntax that could instruct an IF statement to reverse it's value if it is true.

ActionScript Code:
//theoretical reverse method
if(!mc.visible) reverse;

View 9 Replies


Similar Posts:


ActionScript 3.0 :: [XML] What's Shorthand Mean

Jul 9, 2009

I ran across this: queue.push ({src:xmlItem.@src, title:xmlItem.@title, url:xmlItem.@url}) I know what it does but I can't find the expanded code version

View 5 Replies

ActionScript 3.0 :: Shorthand Set & Get Methods?

Mar 11, 2011

I've built controllers for the application which are defined in the Document class while the get & set methods are in the appropriate class. I find they become very screen real-estate intensive once you have more than 10 methods so i was wondering if anyone could let me know a way for writing them which has one function and sets and gets all the properties. heres some of them which define all the height,width, color,stroke,fill,tint of a drawn rectangle.

[Code]...

View 1 Replies

ActionScript 2.0 :: Get Better At Shorthand Coding?

Jan 21, 2009

I'm trying to get better at coding but I'm having a hard time with this one. How do I turn this into shorthand:

[code]...

View 2 Replies

ActionScript 3.0 :: Make Shorthand If Statement?

Jan 15, 2011

Code:
if (myBoolean){
mc.gotoAndStop(2);

[code].....

View 2 Replies

ActionScript 3.0 :: Remove Listener For Shorthand Eventlistener?

Jan 11, 2012

What the syntax is for removing the listener when writing it shorthand?[code]...

View 2 Replies

ActionScript 2.0 :: Unable To Make Flash Shorthand Tips?

Jun 28, 2006

As I get into more advanced ActionScript, I start wondering about ways I can write things more quickly. For example, this code

ActionScript Code:
button1.onRelease = function() {
//something

[code].....

View 14 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved