Hi guys,
I’ve just upgraded to Flash CS3, and was going through the following example code at the Adobe Actionscript 3 site:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Stage.html#fullScreenHeight
So yeah i was trying to run the code for that example which starts of as:
import flash.display.Stage;
import flash.display.StageDisplayState;
import flash.events.MouseEvent;
import flash.geom.Rectangle;
// cover the stage with a green rectangle
var greenRect:Sprite = new Sprite();
greenRect.graphics.beginFill(0x00FF00);
........
I cannot get the code to run! I get the following error:
“1119: Access of possibly undefined property fullScreenWidth through a reference with static type flash.display:Stage.
1119: Access of possibly undefined property fullScreenHeight through a reference with static type flash.display:Stage.
stage.fullScreenSourceRect = fullScreenRect;”
Now i know something must be wrong with my install because I tried the same code on a friends PC at work and its running fine!
I did have Flash 8 installed when I installed Flash CS3, which i thought may have caused this, something it doesnt know about a new library or something? Anyway I’ve uninstalled all Flash versions i had and cleanly reinstalled Flash CS3 and its still broken
If anyone has any ideas i’d be incredibly grateful, thanks.