On this page: http://www.kirupa.com/developer/oop2/AS2OOPInheritance4.htm
why doesn’t the code have to make an new instance of the class such as this:
var myBouncer:Bouncer = new Bouncer(); // WHY ISN'T THIS THERE!?!?
var balls_bounds:Object = {left:10, top:10, right:290, bottom:290};
for (var i = 0; i < 5; i++){
_mc = attachMovie("Ball", "ball"+i, i, {_x:150, _y:150});
_mc.init(5, balls_bounds);
}
I don’t understand why that doesn’t have to be included. It was there before and now out of now where, Senocular doesn’t include that scripting and it still works. What gives?
I don’t understand???:thumb2: