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.

45 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. Hi

    I added a FlashPanorama to http://www.stonesailing.org.uk – which works fine .. but I can’t get tooltips to work.
    As far as I can see I’ve followed your instructions and I’ve placed the swfs in a folder /files on the site. The following is part of the implemented code:

    Any thoughts please?

  12. I started using the panorama player at work recently and want to know if this program is still
    being maintained. I havent seen anything new since this tooltips plugin.
    Thank You

  13. The tooltips plugin seems to work fine – except:

    When you use national characters in the “alt=” field (above 0x7F) there seems to be a problem – at least when using ISO 8859-1 encoding. These characters just don’t show at all. And you can’t use HTML encoding (&auml;) either.

    I havn’t tried UTF-8 encoding, but none of my other HTML pages use it, so…

    Any bright ideas?

  14. Chris (and others).

    FPP is still being maintained and a new version is expected to be released soon.

    The blog is not very active, but you should check the forums for updates and answers to your questions and everything else related to the player.

    The forums are found here: http://flashpanoramas.com/forum/

    Hope this helps.

    Trausti

  15. HI. I`ve just buy the FPP and here are some bugs that I`ve met with:
    not working externalTest.html. It shows the pano, but I could not start to rotate panorama using buttons.
    preview_pano.html – it shows the preview of panoramas, but on the clicks nothing happens
    bw_preview_detection.html – it is not working at all on my machine

    The tooltip plugin do not shows russian letters in tips.

    I`m using opera browser it it helps you to fix this troubles

    all other exemples are working properly.

    That`s it.

    FPP helps me a lot but it takes time to understand how it works.. Hope sometimes it gets users-friendly interface, that would be very important step!

  16. I can’t get the smartscale to work.
    Could you tell me what I’ve done wrong please?

    Here’s the xml code:

    panoName=images/mas_solars_por_la_noche/mas_solars_por_la_noche

    loaderText =
    layer_50 = files/plugins/glassMeter.swf
    layer_1 = files/plugins/cashe.swf
    layer_2 = files/smartscale.swf
    layer_6= files/plugins/hotspots.swf
    //layer_5= files/plugins/editor.swf
    layer_4= files/plugins/autorotator.swf
    layer_7= files/plugins/mp3player.swf
    layer_8= files/plugins/234.swf
    layer_25= files/plugins/tooltips.swf

    panHome = 0
    tiltHome = 16
    zoomHome = 0.65

    //—–hotspots—–/

    /

    />

    //——-shadows———//

    //——-thumbinals———//

    //navigation//

    />

    //labels//

    //music//

    mode=reduce

  17. Hi!

    Is there a way to display ISO-8859-2 characters (like: ?, ??, ??, ??, ??) in the tooltips?
    I’ve tried to use ä instead of “?”, but it displayed white space only.

    Thanx

    Peter

  18. Sorry, it shold be:

    “I??ve tried to use ä instead of ???????, but it displayed white space only.”

  19. simply i’ve tried tu use HTML entity instead of character “?” (the entity was parsed as the actual character in my previous posts)

  20. Hi,

    I was wondering if there was someone out there who could help..I am using tool tips quite successfully but I have encountered a problem. I need to italicise the scientific names in my alt tag but can’t work out how to do this (I can italicise the whole alt tag but not just a few words).

    Is there a way to achieve this?

    Thanks.

  21. I was looking for these tooltip! Thanks!

  22. Thanks for giving us objective information, much appreciate this !

  23. Hi there, I read your blog like every week. Your writing
    style is witty, keep doing what you’re doing!

    Also visit my web-site … Asshole Dumby

  24. here

    Tooltips and smart scale plugins | flashpanoramas.com blog

  25. Buy Diet Pills Australia

    Tooltips and smart scale plugins | flashpanoramas.com blog

  26. dot hack quarantine

    Tooltips and smart scale plugins | flashpanoramas.com blog

  27. http://www.voucherslug.co.uk

    Tooltips and smart scale plugins | flashpanoramas.com blog

  28. You made some good points there. I did a search on the topic and found most persons will agree with your blog.

  29. We pay a visit each day a few web sites and blogs to see content, but this web page presents quality based content material.

  30. I do not know if it’s just me or if everybody else experiencing issues with your site.It appears like some of the text within your posts are runningoff the screen. Can someone else please comment and letme know if this is happening to them as well? This could be a problem with my browser becauseI’ve had this happen before. Many thanks

  31. According to me not very credible statement. I advise you to be careful.

  32. As a Newbie, I am permanently browsing online for articles that can be of assistance to me. Thank you

  33. Could you make a list all of your social

  34. This really answered my drawback bdisus, thanks!

  35. very nice

  36. BEST SUPPLIER

    Tooltips and smart scale plugins | flashpanoramas.com blog

  37. Very interesting information!Perfect just what I was looking for! “Love endures only when the lovers love many things together and not merely each other.” by Walter Lippmann.

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

  39. What a great post.. Thank you for your share..

  40. I conceive this site has some real great information for everyone :D. “I like work it fascinates me. I can sit and look at it for hours.” by Jerome K. Jerome.

  41. Suas dicas s??o muito ut?is ajuda bastante

  42. ????????

    Tooltips and smart scale plugins | flashpanoramas.com blog

  43. You made some good points there. I did a search on the topic and found most persons will agree with your blog, Thank you very much.

  44. Please make it as user-friendly as Apple does it. No wonder no one can be better than Apple.

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=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <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.