PDA

View Full Version : docking navigation tutorial?


gordee
07-13-2008, 01:43 PM
Hi,

Can anyone give advice on making a sliding nav bar OSX style, i.e. mouse over at bottom of the screen brings up nav bar?

thanks :)

phberlin
07-14-2008, 12:23 PM
Hhm, I'd suggest to put a hotspot at the bottom that is as large as the area you want the "mouse-over" to be active in. Then set this hotspot's alpha=0 (so it's active, but invisible) and give it an "onOver"-action that brings up your navigation bar. Get what I mean?

Regards, Ph.

gordee
07-14-2008, 06:37 PM
I think so...

It makes sense in theory but I guess I'm still getting used to xml.

I tried following this but couldn't get it working

http://flashpanoramas.com/forum/showthread.php?t=1246&highlight=hide+vavigation+slide+dock

I'm sure I'll get it in the end. Thanks for replying :)

gordee
07-15-2008, 01:42 PM
So I tried it this way...

<hotspots>
<global>

<spot id="dock" url="images/dock.png" alpha="0.25"

static="1" align="CB" salign="CB"

onOut="info.alignY=0,1000;
info.salignY=0.6,1000;"
onOver="info.alignY=0,1000;
info.salignY=0.35,1000;"
/>

<spot id="info" alt="info" url="images/black_i.png"

static="1" align="CB" salign="CB"

onClick="infoscreen.visible=1"
/>

<spot id="infoscreen" url="images/ghostsLogo.jpg"

static="1" align="CM" salign="CM" onClick="visible=0"

onOver="" onOut=""
/>

</global>
</hotspots>

I have a large rectangle spot at the bottom of the pano and when I mouse over it, the info button tweens up from below the screen as intended, but when I mouse over the info button it docks again. Any ideas how to stop this?

I could put the same mouse over code on the info button but this seems like the wrong thing to do right?

gordee
07-15-2008, 04:18 PM
I figured it out!