ActionScript 3.0 :: [XML] What's Shorthand Mean
Jul 9, 2009I 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 RepliesI 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 RepliesI'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]...
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;
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]...
Code:
if (myBoolean){
mc.gotoAndStop(2);
[code].....
What the syntax is for removing the listener when writing it shorthand?[code]...
View 2 RepliesAs 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].....