toolbar menu access

Using Pano2VR/Object2VR SWF files with your own Flash projects
Post Reply
Posts: 3
Joined: Tue Mar 02, 2010 5:46 pm

Tue Mar 02, 2010 6:38 pm

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
erik leeman
Posts: 470
Joined: Sat Sep 09, 2006 10:51 am

Tue Mar 02, 2010 8:17 pm

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.

Posts: 3
Joined: Tue Mar 02, 2010 5:46 pm

Tue Mar 02, 2010 9:47 pm

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.
Posts: 3
Joined: Tue Mar 02, 2010 5:46 pm

Wed Mar 03, 2010 8:33 pm

okey, i found it :) thanks for help anyway :)
Posts: 1
Joined: Thu Mar 04, 2010 2:53 am

Thu Mar 04, 2010 3:15 am

unnamed wrote:okey, i found it :) thanks for help anyway :)
I have the same problem, how you fix it?, please help
Untitled-1.jpg (83.15 KiB) Viewed 3003 times
User avatar
Posts: 403
Joined: Wed Aug 15, 2007 1:02 pm

Thu Mar 04, 2010 12:48 pm

This seems to be not an AS the container for your controller anchored to the bottom center of the window?
Picture 8.png
Picture 8.png (16.26 KiB) Viewed 3001 times
Post Reply