[Papervision3D] cool unity3d game

Makc makc.the.great at gmail.com
Fri Apr 4 12:10:49 PST 2008


Excuse me, but this is getting too long already, and totally
pointless. Not to mention this is off topic for pv3d list.

On Fri, Apr 4, 2008 at 8:13 PM, tomsamson <blumenzuechter at gmx.de> wrote:
> ..Many of the ones coming on board later
> came in because it allowed em to lrealize their fantasies without having
> to code in lower level languages...
> There are lots of creative people who maybe don´t want to create things
> in the same way as you do, i´m against having lots of options cut down.
>

Let me remind you that you still can continue to code in good old AS1
style; this code works fine in AS3:

// make AS1 style function
// this one goes from Netscape JS reference
var str_rep:Function = function (n) {
var s = "", t = this.toString()
while (--n >= 0) s += t
return s
}

// make a string
var s1:String = "a";

// String class is final, but who gives a shit
String.prototype.rep = str_rep;

// cast to Object to stfu compiler
trace ((s1 as Object).rep(3)) // returns "aaa"

// or abuse square brackets
trace (s1["rep"](4)) // returns "aaaa"

Then, I don't get it what's big deal with waiting for objects to be
created and added to stage. First, there are events such as
Event.ADDED_TO_STAGE specifically for that, and second, having your
code "waiting" for objects initialization in past actually means there
was no option to run your code before initialization - a limitation,
not a feature.

Oh wait, you tricked me into arguing... let's stop it.



More information about the Papervision3D mailing list