PDA

View Full Version : Respect the distance between icons


The_Beatnik
07-11-2008, 09:31 AM
Hi all,
I have a little question....the forum is here for that :)
I want to put a navigation menu....so i made it my xml with box...all is on the good way however i made it for a fullscreen and when i minimise the size of the window, the icons are too close and the distance between the icons had change.....so the question is: What do i need to put in my xml to respect a distance between my icons on any size of screen?

The xml is there....
THank you very much
The_Beatnik


<box id="info" url="images/black_i.png" distorted="0" static="1" distance="2.00" salignX="0.33" salignY="0.42" alignX="-0.20" alignY="-0.20" depth="0" scale="0.72" alpha="0.7" />

<box id="zoomin" url="images/black_p.png" distorted="0" static="1" salignX="0.37" salignY="0.42" alignX="-0.20" alignY="-0.20" depth="0" scale="0.72" alpha="0.7" blockMouse="1"
onPress="pano.zoomKey=2,500"
onRelease="pano.zoomKey=0"

/>



<box id="zoomout" url="images/black_m.png" distorted="0" static="1" distance="-0.42" salignX="0.41" salignY="0.42" alignX="-0.20" alignY="-0.20" depth="0" scale="0.72" alpha="0.7" blockMouse="1"
onPress="pano.zoomKey=-2,500"
onRelease="pano.zoomKey=0"
/>

<box id="full" url="images/black_f.png" distorted="0" static="1" distance="2.75" salignX="0.45" salignY="0.42" alignX="-0.20" alignY="-0.20" depth="0" scale="0.72" alpha="0.7" soundpan="1.00"
onClick="fullscreen(-)"/>

The_Beatnik
07-12-2008, 06:19 PM
Please, i need some help...:???: I don't find any solution.

Jareish
07-12-2008, 07:41 PM
Tried the smartscale plugin? http://flashpanoramas.com/blog/2007/11/17/tooltips-and-smart-scale-plugins/#more-47

HansNyberg
07-12-2008, 07:55 PM
Read the tutorial and look at the example with the navigation bar
navigation.xml

I do not understand how you came up with your code. I never seen anything like it. You have to have an align point like BC which stands for bottom centre.

Just use the code from navigation.xml and adjust it to your files.

Hans

Jareish
07-12-2008, 08:55 PM
Read the tutorial and look at the example with the navigation bar
navigation.xml

I do not understand how you came up with your code. I never seen anything like it. You have to have an align point like BC which stands for bottom centre.

Just use the code from navigation.xml and adjust it to your files.

Hans

Alignment can alsoo be between -1 and 1