Ls,
a:To get myself aquinted with this speed monster called starling I wrote a small flocking routine that basically does:
new Startling(main, stage)
main:
init
new flock(nrbirds)
flock:
init flock
for (nbirds) -> new(bird)
bird:
init bird / birdimage
addchild(birdimage)
They add, but dont show on stage. I tried passing the stage thru the constructors to bird.. Flash doesnt like that.
Tried making a Public Stage var. Doesnt work.
b: all subclasses after main are using the starling.sprite as superclass.
So i did:
new Startling(main, stage)
main:
init
new flock(nrbirds)
for (nbirds)
addChild(flock.coantains[nbird].birdimage)
flock:
init flock
for (nbirds) -> new(bird)
bird:
init bird / birdimage
push bird into flock.contains(bird)
now i see em onstage.
Q: can I/how do I/ access the stage in sub classes to use addChild?
Q: what am i doing wrong?
Q: how the H did you get that to run so fast =)
Highest regards,
Mac