toolbar menu access

Using Pano2VR/Object2VR SWF files with your own Flash projects
Post Reply
unnamed
Posts: 3
Joined: Tue Mar 02, 2010 5:46 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
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
unnamed
Posts: 3
Joined: Tue Mar 02, 2010 5:46 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.
unnamed
Posts: 3
Joined: Tue Mar 02, 2010 5:46 pm

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

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

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