Hi, how can i access toolbar menu using as3 ? i mean something like vr.pano.toolbar_reference. I need to update its postion when going fullscreen
thanks for help
toolbar menu access
-
- Posts: 470
- Joined: Sat Sep 09, 2006 10:51 am
- Contact:
If you made that toolbar-thing in Pano2VR's own skin editor there should be no need to access it from AS3.
Provided you set it up properly in the skin editor it should automatically reposition itself when going fullscreen with stage.displayState = StageDisplayState.FULL_SCREEN; in your AS3 code.
Erik
Provided you set it up properly in the skin editor it should automatically reposition itself when going fullscreen with stage.displayState = StageDisplayState.FULL_SCREEN; in your AS3 code.
Erik
hmm for me its not working but its a bit complicated. pano2vr is loaded to another swf, and from that main swf i'am trying to go fullscreen, everything but position of toolbar is working fine.
even if use this function:
vr.pano.setWindowSize(stage.fullScreenWidth, stage.fullScreenHeight);
toolbar wont update to center of the screen.
so i need to add something like this to my reposition event:
vr.pano.toolbar.x = stage.stageWidth/2; etc.
toolbar skin is default.
even if use this function:
vr.pano.setWindowSize(stage.fullScreenWidth, stage.fullScreenHeight);
toolbar wont update to center of the screen.
so i need to add something like this to my reposition event:
vr.pano.toolbar.x = stage.stageWidth/2; etc.
toolbar skin is default.