in as2 when we going to use a global variable we just write _globl before the variable.
however in as3 due to it become OOP in writing style we have to follow it. that’s mean we can’t do that anymore
instead we create a class and then declare a variable inside it. since class can be access from anywhere.
for examlpe:
public class global
{
public var gv: string;
}
after that we can use it on anywhere to calling the class and it variable global.gv = “as3 is nice”;
i have been playing some 3D thingy for flash and suddenly come across a development tools called Unity. and it instantly become my favorite toy to play with. i mean in at least creating 3D content for web
As far as i know for 3D content, Unity is way way way better than flash’s any kind of 3D engine, and its sucks player.. pleaseĀ put some effort on displaying 3D content Adobe ..i mean come on..even sony’s 3D tv is coming
Yes Unity has it own player which support 3D with super smooth frame rate. Not making you freak fall from chair you said? wait until you hear this
Unity 3D support all cutting edge 3D effect and physics you have seen in real game console nowadays..Lighting effects, Shader, Nvidia’s physic etc and it support many language to develop the interaction content like
Javascript, C++,C#, etc. ok ok now now if you haven’t fall from your chair or didn’t shout out omg, or jaw dropping on the floor than take a look of these example.
http://unity3d.com/gallery/live-demos/index.html#tropical-paradise (wait for it to install the unity player and right click to chose full screen if you like)
unity rockx