PDA

View Full Version : How to set canvas height.


Raji.S
09-18-2009, 10:12 AM
Hi,

For me, The height and width of the canvas should change based on the system resolution(The canvas has many childrens). But i should not set the height and width of the canvas in percentages like height=100%. So please tell me, How to calculate my canvas height and width based on system resolution.


Thanks in advance

anilkamal
09-18-2009, 10:50 AM
Hi

You can use onResize event handling function for the problem. When user resizing screen, set the height and width corresponding to current screen resolution.

EX: stage.addEventListener(Event.RESIZE,resizeHandler) ;

Thanks