var c = new Cloud();
c.x = Math.random() * 350;
c.y = Math.random() * 700;
clouds.push(c);
stage.addChild(c);
This code is in my document class, I don't get any errors, tracing the x, y, or even c values show correct values. Alas the Cloud objects are not visible.
I have tried parent.addChild(c) and stage.addChild(c); nothing seems to show them.
(note my stage is 350 width and 700 height)
Cloud
class and what is done in the class this code is in. – Rick van MookDebugger
in the contextmenu. If the constructor is empty it's no surprise it's not showing since there is nothing to show yet. Please paste the content of theCloud
class. So we can double check what's wrong. – Rick van Mook