Beiträge von Zarillo

    I have a sitemap with clickable hotspots, each representing a different panorma. When the user clicks one of the hotspots it positions the radar to that position. The problem is that the radar covers some of the hotspots and therefor it's not possible to click them.
    I've the capture set to false on the radar plugin, but still it won't trigger the hotspot-click-function.

    The clickable hotspots are made inside the sitemap-plugin (movieclips - flash).

    url="%SWFPATH%/plugins/sitemap.swf"
    alturl="%SWFPATH%/plugins/sitemap.js"
    keep="true"
    align="lefttop"
    handcursor="false"
    capture="true"
    scalechildren="true"
    width="prop"
    height="100%"
    zorder="5"
    visible="true"
    />


    url="%SWFPATH%/plugins/radar.swf"
    alturl="%SWFPATH%/plugins/radar.js"
    keep="true"
    align="lefttop"
    edge="center"
    parent="sitemap"
    capture="false"
    enabled="true"
    x="200"
    y="200"
    heading="270.0"
    fillcolor="0xFF0000"
    fillalpha="0.5"
    blendmode="add"
    zorder="0"
    visible="true"
    scale = "0.8"
    />


    Any suggestions how to solve this without creating a separate plugin for the hotspots?

    /Zarillo


    Update:

    I found a workaround for this problem. Instead of loading 2 plugins I smashed them together into one.

    /Zarillo

    Yes, but my goal was to display some loadingbar or text describing how many percentage that has been loaded.

    I came to think of one solution for this after I published my question...

    If I would to create a plugin that loads an external swf file. Then I could use a ProgressEvent on the Loader.

    Like this:
    krpano.call("addplugin(myplugin)");
    var plugin:Object = krpano.get("plugin[myplugin]");
    plugin.keep = true;
    plugin.url = "%SWFPATH%/plugins/emptyplugin.swf";
    plugin.externalurl = "%SWFPATH%/plugins/myplugin.swf";
    plugin.handcursor = false;
    plugin.align = "lefttop";
    plugin.x = plugin.y = 0;
    plugin.visible = true;

    and then add a Loader in the registerplugin event that loads the external swf-file.

    I think that could work...


    Or are there any other solutions?


    /Zarillo

    Hi,

    I use this command for displaying tooltips for hotspots. If the coordinate is in the screen it should draw out the tooltip.

    This is what I have:

    var area:Object = krpano.get("area");
    var tempX:Number;
    krpano.call("spheretoscreen(hotspot["+obj.test+"].ath, hotspot["+obj.test+"].atv, hotspotx, hotspoty)");

    tempX = Number(krpano.get("hotspotx"))+Number(area.x);


    And if the value is between a certain interval then it draws out the tooltip.

    The result I get is either NAN or a value that is incorrect.
    It seems like to spheretoscreen command thinks that the hotspots are located at a different position than they are. And it thinks that they are all located at the same coordinate.

    Let me know if you need more information regarding this problem...

    Best Regards,
    Zarillo

    Hi,

    Is it possible to view the progress when loading/adding plugins?
    I have a plugin that is over 2MB and it would be nice to see some response when creating it.

    This is an example:

    krpano.call("addplugin(myplugin)");
    var plugin:Object = krpano.get("plugin[myplugin]");
    plugin.keep = true;
    plugin.url = "%SWFPATH%/plugins/myplugin.swf";
    plugin.handcursor = false;
    plugin.align = "lefttop";
    plugin.x = plugin.y = 0;
    plugin.visible = true;

    Would it be possible to use a Loader for this instead so that I could check the progress or is it possible to view the progress in some other way?

    /Zarillo

    Hi,


    I'm not quite sure if this is what you are looking for...


    Add a hotspot that covers your photo and then add a onclick event to the hotspot.

    E.g

    fillcolor="0xFFFFFF"
    fillalpha="0.0"
    bordercolor="0xFFFFFF"
    borderalpha="0.0"
    point[0].ath = "0"
    point[0].atv = "0"
    point[1].ath = "10"
    point[1].atv = "0"
    point[2].ath = "10"
    point[2].atv = "10"
    point[3].ath = "0"
    point[3].atv = "10"
    onclick=function() { //your code }; >


    Change the atv and ath points so that it covers your photo.

    /Zarillo

    Hi,

    Spheretoscreen command stopped working when I updated from the beta version.

    I'm trying to call this command from actionscript but the result of it is very confusing...and wrong. If I make an action (containing the spehertoscreen calculation) in the XML-file and call that one from actionscript I get the correct result.

    Have the syntax for calling spheretoscreen from actionscript changed?

    This is what I'm trying to call (and this worked with the beta release):
    krpano.call("spheretoscreen(hotspot[name].ath, hotspot[name].atv, hotspotx, hotspoty)");

    What to do?

    Br,
    Zarillo