ActionScript 3.0: Did you know that ...

Some interesting facts about Actionscript 3.0 is not always known ...

trace ()

The instruction trace() , used for debugging, now supports multiple parameters:

1
a , b , c ) ; trace (a, b, c);

eval ()

The statement eval() was eliminated in Actionscript 3.0. However, because you can access properties and methods of an object with the syntax used to access elements of an array, you may in some circumstances "simulate" - somehow - education eval() :

1
2
String = ( muoviX ) ? 'x' : 'y' ; var co: String = (muoviX)? 'x', 'y';
= 20 ; myMovieClip [co] = 20;

super ()

The call to the superclass using super() is no longer bound to the first statement in the constructor of a subclass. Now you can call super() anywhere in the constructor:

1
2
3
4
5
MiaClasse ( ) { public function MyClass () {
initOne ();
; super ();
initTwo ();
}

There are no comments for this post

Leave a comment

TAG XHTML PERMITS: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> INSERTION CODE:
 <pre></pre> // blocco generico <code></code> // blocco generico [cc_actionscript][/cc_actionscript] // Actionscript [cc_actionscript3][/cc_actionscript3] // Actionscript 3 [cc_css][/cc_css] // CSS Style Sheet [cc_html][/cc_html] // HTML [cc_js][/cc_js] // Javascript [cc_objc][/cc_objc] // Objective-C [cc_php][/cc_objc] // PHP [cc_sql][/cc_sql] // SQL 


Stop SOPA