Sal
Posts: 135
Location: United States
Registered: 4 Sep 2009
|
adding border color?
Posted: 9 Feb 2010 at 4:28 GMT
|
reply
|
Hi, everybody.
Does anybody knows how can I add a border color to my window pano, ? I want a border around the pano window,
I thought that I can add it inside this line, I am not sure if it possible, if it is, could you help me with the code that will go inside:
p2q_EmbedFlash('horno3atardecer.swf','300','100','allowFullScreen','true','FlashVars',flashvars);
Thank You
Sal
|
|
alert moderator
|
|
Seba
Posts: 56
Location: Kuala Lumpur, Malaysia
Registered: 19 Aug 2005
|
Re: adding border color?
Posted: 9 Feb 2010 at 4:41 GMT updated: 9 Feb 2010 at 4:44 GMT
|
reply
|
That's the object/embed tag, which passes information to browser's Flash player like file size, background color, file version (for player verification), variables etc. There is no way to control borders from here.
If you want the borders within SWF files, then you need to add them using the skin editor in Pano2VR. Simply place over sized rectangular shapes (4 of them) on the borders of the stage, and set the Anchor point to make sure they maintain position while scaling. I guess 20pix x 2000pix will be just fine. Unless you want the border thicker than more than 20pix. But make sure it at least 2000 high to cover high resolutions monitors. And because it will be a single color vector, it won't add much site to the file. Barely few KBs.
If you want the border outside of the SWF then you could use the CSS margin property. Say 50 pixel on each side of the window:
<style type="text/css"> body { margin-left: 50px; margin-top: 50px; margin-right: 50px; margin-bottom: 50px; } </style>
|
|
alert moderator
|
|
Trausti
[Flashificator]
Posts: 642
Location: Lima, Peru
Registered: 30 Jul 2009
|
Re: adding border color?
Posted: 9 Feb 2010 at 4:46 GMT updated: 9 Feb 2010 at 4:46 GMT
|
reply
|
Seba said: I guess 20pix x 2000pix will be just fine.
Better make it 2880 pix wide, since there are monitors going up to that size now. On such a wide monitor, the border line would simply end 2000 pixels in.... so put the maximum which is 2880.
Trausti flashificator.com/ flashificator.com/forums
|
|
alert moderator
|
|
Sal
Posts: 135
Location: United States
Registered: 4 Sep 2009
|
Re: adding border color?
Posted: 9 Feb 2010 at 4:58 GMT
|
reply
|
ok, thank you
I understood what you re saying..
I ll make some tests to see whats the better choice..
Sal
|
|
alert moderator
|
|
vn2009
Posts: 111
Location: duluth mn, United States
Registered: 24 Sep 2009
|
Re: adding border color?
Posted: 9 Feb 2010 at 14:53 GMT
|
reply
|
|
in krpano i would make a box same as you. 20px tall and only 2 pixels wide. align the box to bottomleft and set the width to 100% and it scales to the otherside of the monitor reguardless of size. even if they are using that new 1/2 moon shaped monitor with 180 degree FOV.
|
|
alert moderator
|
|