View Full Version : absolutely (in pixels) position hotspots
housser
11-03-2008, 09:13 PM
Is there any way I can use pixel values to absolutely position static hotspots? I want to be able to place a menu exactly 50 pixels from the top and left borders, but it seems the salignX and salignY only range from -1 to 1, which results in an absolute scale, and also different scales for x and y.
Trausti Hraunfjord
11-03-2008, 10:10 PM
<spot
id="hotspot1"
url="files/hotspotFiles/imaqes/myHotspotImage.jpg"
static="1"
depth="1"
staticX="6"
staticY="-6"
alignX="0"
alignY="-1"
salignX="-0.5"
salignY="0.5"
/>
That's according to FFC. The image is statically placed 6 pixels away from the bottom left corner (and 6 pixels from the left side).
housser
11-03-2008, 10:41 PM
Brilliant, thanks Trausti for setting that up for me.
Would have taken me plenty of trial and error with those 3 sets of variables to get it right...
Working on a cool collaboration between myself and another flash developer for a client's web site that I look forward to sharing when done.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.