createJS - how to set width and height of symbol on stage
Hi,
I am creating a game using Animate and CreateJS, and I have a background image that I have created as a symbol in Animate. This background symbol is the correct size in Animate but when I export the Javascript and Html and view it in the browser the background symbol is very small (a lot smaller than the height and width set in Animate).
I have tried setting the height and width in my Javascript as well as in the actions tab in Animate and I can't seem to get it to appear as its correct size.
I have tried this:
var thebackground = new lib.Background();
this.stage.addChild(thebackground);
thebackground.setBounds(0,0,500,500);
And I have tried:
var thebackground = new lib.Background();
this.stage.addChild(thebackground);
thebackground.height = this.stage.height;
thebackground.width = this.stage.width;
And I have tried:
var thebackground = new lib.Background();
this.stage.addChild(thebackground);
thebackground.height = this.stage.getBounds().height;
thebackground.width = this.stage.getBounds().width;
And nothing seems to work. Any suggestions? Thanks in advance for your help!!
