AS3: Controls buttonns dont move when I reposition panorama

Using Pano2VR/Object2VR SWF files with your own Flash projects
Post Reply
eileen kelly
Posts: 4
Joined: Tue Oct 05, 2010 6:32 pm

I am using AS3 to load my panorama swf into Flash. Everything works great, except when I reposition the swf from 0,0 the control buttons don't move.
Has anyone encountered this problem before? And is there some way to fix it?

Thanks!
eileen kelly
Posts: 4
Joined: Tue Oct 05, 2010 6:32 pm

I figured out what the problem was. The code I was using was simply moving the panorama itself and not the whole movieclip.

So I fixed it by changing the original line of code from vr.pano.setWindowSize(256,180) to:

vr.x = 256;
vr.y = 180;


Worked perfectly! :D
Hope this can help someone else with the same problem.
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Cool, thank you. :D
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
shannonr
Posts: 3
Joined: Mon Nov 01, 2010 4:41 pm

Hi - did you mean you changed vr.pano.setWindowPos(256,180) or vr.pano.setWindowSize(256,180)?
Surely vr.pano.setWindowSize(256,180) wouldn't reposition the clip anyway? I'm having the same problem and this didn't work for me :(
Post Reply