Tooltips and smart scale plugins

Two more open source plugins: long-awaited ToolTips and SmartScale plugin.

tooltips example


tooltips.swf, tooltips.fla (source).

smartscale.swf, smartscale.fla (source).

ToolTips plugin

ToolTips plugin is very simple: add alt tag to all hotspots you want to see the tooltips:

<spot id="left" alt="move left" static="1" align="BC" salign="BC" staticX="-225.5" staticY="-5" url="images/black_l.png" /> <spot id="right" alt="move right" static="1" align="BC" salign="BC" staticX="-150.5" staticY="-5" url="images/black_r.png" />
ToolTips plugin searches and shows alt tags using nice yellow box. That’s all, nice and easy.

So alt tag is a part of Hotspots code, you can change it dynamically, I’m using in example above:

onEnterFullscreen="full.alt=exit fullscreen" onExitFullscreen="full.alt=enter ullscreen"
This code is changing the tip for fullscreen button depends on the stage state.

SmartScale plugin

SmartScale works with hotspots too. It searches tags with smartStale=”1″ attribute and changes the scale and positions of navigation buttons depends on the screen width (good for flexible windows). This functionality cannot be done using Hotspots script so it doesn’t support conditions. But some Actionscript in the plugin did the trick.

Linear scaling looks a little inaccurate (too big buttons if your screen is really wide), so I added an additional scale mode in SmartScale plugin: it reduces the size of buttons only if the width is less than 800. It prevents missing buttons if your screen is small, but it do not scale the buttons more than 100%. Check the second example.

This second scale mode is switching on by additional parameter in XML:

<smartscale> mode=reduce </smartscale>

Both examples are good if you want to create your own plugin to work with Flash Panorama Player hotspots.

This entry was posted on Saturday, November 17th, 2007 at 1:27 pm and is filed under Flash, Flash Panorama Player. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

11 Comments so far

  1. Now I hope to see an avalanche of plugins for FPP! And even more if you release the API docs. ;) The Smartscale plugin is interesting. If I’m thinking about it a little, it’s quite great! Solves some nasty issues about interface design…

  2. Hi Denis,

    Very nice Tooltips.
    For hotspots (not static), I suggest to add the following code under the line 34:

    hotspots.addEventListener(MouseEvent.CLICK, doOut, false, 0, true);

    Congratulations and thanks!

  3. Thanks for the tooltips- you’re always one step ahead of me. I was about to request that feature!

    I noticed a glitch with the tooltip not fading after a loadpano action (this is with a non static hotspot, box object, distorted). The toolip persists even after the second pano is loaded. This doesn’t happen if I move the mouse away from the hotspot before the second pano finishes loading. I see this when viewing offline with both Safari and Firefox.

    Once it occurs, it will disappear only if I mouse over another hotspot (static or non-static) in the new pano.

  4. I should have tried Ricardo’s suggestion first. Yes! this cured the problem. Thanks.

  5. Hey,

    I was googling for blank screens loading for a flash movie, can you let me know what the bug was and how you fixed it?

    If you could email me that would be great, as Im ahving a similar prob!

    Toni x

  6. alot fo people have created the panorana.

    The thing I was looking for was that when I “zoomed in” I want to be able to look around like I had move a couple of steps forward, not just scaled up the graphics.

  7. Is there a problem with the latest Adobe Flash plugin? none of my Flash produced panoramas seem to work anymore after installing it…

    Michael

  8. It seems that flashpanoplayer had no update for a long time,is it stopped develop?

  9. To vrp: not at all.

    The current version utilizes the main panorama funstions. Thousands of site are using this version.

    FPP API allows to build new simple extensions, so now you can find new updates for Flash Panorama Player outside this site. I want to mention this site especially: http://flashpanos.com/ Great job, guys!

    Now I’m accumulating the material for the next big update.
    Let’s see what am I woking at (have alpha/beta status):
    1. Flash Component for Adobe Flash CS3.
    2. AIR application as GUI for FPP.
    3. New Hotspots (makes possible interactive swf application instead of faces images).
    4. Fisheye panoramas.
    5. Video panoramas.
    6. Extended FPP SDK.
    7. Single SWF file compiler for FPP.

    And last couple of months I taked participation in some custom projects based on FPP. So, guys, forgive me for temporary silence, I was busy a little. But I’ve never stop working on new FPP features because it is my favourite project. :)

    Also, I’m waiting with impatiently for Adobe Flash 10. It will be really great step for Flash panoramas. The update to new Flash version will really easy for FPP’s customers. ;)

  10. Friends, I bought the FPP but the package sent to not filed an executable to install the program on my computer Apple. Someone help me?
    Edson@edsonchagas.com

  11. About Two months passed,any news about fpp 2.03 ?

Have your say

Fields in bold are required. Email addresses are never published or distributed.

Some HTML code is allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>
URIs must be fully qualified (eg: http://www.domainname.com) and all tags must be properly closed.

Line breaks and paragraphs are automatically converted.

Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.