Declaring in AS..
For a java guy like me, declaring/initializing an object instance variable is always as below:
ObjectName obj = new ObjectName();
And in AS (Action Script), i tend to write the similar thing again and again until my compiler warns me... Abbeyyy kya kar raha hein...
OLAPCube cube = new OLAPCube(); // Wrong syntax.. which i write over and over...
var cube:OLAPCube = new OLAPCube(); // Correct one
Hope i remember that i am in AS now until my HIMA starts off before i scrub off OLAP API Pass..
ObjectName obj = new ObjectName();
And in AS (Action Script), i tend to write the similar thing again and again until my compiler warns me... Abbeyyy kya kar raha hein...
OLAPCube cube = new OLAPCube(); // Wrong syntax.. which i write over and over...
var cube:OLAPCube = new OLAPCube(); // Correct one
Hope i remember that i am in AS now until my HIMA starts off before i scrub off OLAP API Pass..

0 comments:
Post a Comment