Hi everyone,
Im quite new to actionscript, basicly I have designed a flash website that is slightly too large for viewing on 1024x768… What I need to happen is when the flash window size is say below 800x700 the flash window scales but if its above 800x700 it doesnt scale?
Could someone please help me with the script? I have been playing around and reading examples but to no luck, is this along the right path?
[COLOR=#993300]Stage[/COLOR].[COLOR=#993300]scaleMode[/COLOR] = [COLOR=#0000FF]“Scale”[/COLOR]
[COLOR=#993300]var[/COLOR] resizeListener:[COLOR=#993300]Object[/COLOR] = [COLOR=#993300]new[/COLOR] [COLOR=#993300]Object[/COLOR]COLOR=#000000[/COLOR];
resizeListener.[COLOR=#993300]onResize[/COLOR] = [COLOR=#993300]function[/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#993300]stage[/COLOR].[COLOR=#000000]maxValueX[/COLOR] = [COLOR=#000000]900[/COLOR];
[COLOR=#993300]stage[/COLOR].[COLOR=#000000]minValueX[/COLOR] = [COLOR=#000000]500[/COLOR];
[COLOR=#993300]stage[/COLOR].[COLOR=#000000]maxValueY[/COLOR] = [COLOR=#000000]900[/COLOR];
[COLOR=#993300]stage[/COLOR].[COLOR=#000000]minValueY[/COLOR] = [COLOR=#000000]500[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#993300]Stage[/COLOR].[COLOR=#993300]addListener[/COLOR]COLOR=#000000[/COLOR];
Thankyou
Tommy