Forums  

Go Back   Forums > Talk > General FPP Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 11-03-2008, 10:13 PM
housser housser is offline
Junior Member
 
Join Date: Aug 2008
Posts: 19
Downloads: 0
Uploads: 0
Default absolutely (in pixels) position hotspots

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.
Reply With Quote
  #2  
Old 11-03-2008, 11:10 PM
Trausti Hraunfjord's Avatar
Trausti Hraunfjord Trausti Hraunfjord is offline
Administrator
 
Join Date: Dec 2007
Location: Icelander in Peru(dise)
Posts: 1,563
Downloads: 1
Uploads: 0
Send a message via Skype™ to Trausti Hraunfjord
Default

Code:
          <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).
__________________
Trausti Hraunfjord
Flashificator, the GUI for FPP.
Win-Mac compatible.
Reply With Quote
  #3  
Old 11-03-2008, 11:41 PM
housser housser is offline
Junior Member
 
Join Date: Aug 2008
Posts: 19
Downloads: 0
Uploads: 0
Default

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.
Reply With Quote
Reply

Tags
absolute, align, hotspots, position

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 12:21 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.