Posts by Cyril

    Problems... *confused*

    Anyone having problems embedding with this version?
    I don't know if it's just me, but I'm having issues with this one.
    After embedding with kprotect (as always), my swf won't open. (even using the build 2010-02-21 krpano.swf) Loading error of my xml...
    Back to the 1.0.8 beta 9 (build 2010-01-13) and everything's fine!

    I have one startup XML, with just 10 lines of code, then 2 others XML included from the startup XML.
    Using MacPro Snow Leopard.
    I'm using japanese characters in the code (for showtext, but it worked so far, see no reason why it shouldn't work anymore).
    By the way the same problem happened with the version just before (build 2010-02-19 or 18, don't remember). And it works perfectly with the 2010-01-13 version.

    Hi,

    First, you need to check your krpano folder ( krpano-1.0.7, available here: https://krpano.com/download/ ), inside this you'll find a " plugins-sources " folder, in which you have "flash-cs3" folder with examples in as3 (it opens in flash cs4 as well). It will be helpful if you want to develop your own plugin in as3.
    Otherwise you could also check this page: https://krpano.com/docu/plugins/ for instructions.
    The code you need is krpano.call("loadpano(myPano.xml,null,null,BLEND(1));"); ,but if you haven't open the example in the "flash-cs3" folder yet, I'm sure you're wondering how to use it... first have a look, you'll get it fast.

    ah, je viens de voir, tu es francais? Ca va etre plus facile a expliquer alors. Je vais completer brievement. Tu as besoin d'integrer a ton code as3 quelques lignes de plus pour lui permettre de communiquer avec krpano. L'exemple dans le fichier cite ci-dessus est un peu confus, mais avec de l'attention on s'y retrouve et on voit rapidement comment le modifier pour arriver a ce qui nous interesse. Pas besoin de vraiment s'y connaitre en actionscript, juste un minimum pour comprendre.
    En regardant dans les autres post sur le forum (categorie Actionscript
    3 / Flash CS3 / Flex - Interfaces
    ), tu pourras trouver des exemples assez parlant.
    Courage, ca demande du temps au debut!

    you could use a temp variable to test if your button should be visible or not.

    var tempRotate:uint;

    function ar_clicked(mouseevent:MouseEvent):void
    {
    krpano.call("switch(autorotate.enabled)");
    this.btn_autorotate.visible = false;
    this.btn_closerotate.visible = true;
    tempRotate = 1;
    }


    function arclose_clicked(mouseevent:MouseEvent):void
    {
    krpano.call("switch(autorotate.enabled)");
    this.btn_closerotate.visible = false;
    this.btn_autorotate.visible = true;
    tempRotate = 0;
    }


    function nav_clicked(ev:MouseEvent):void
    {


    switch(tempRotate)
    {
    case "1":
    this.btn_autorotate.visible = false;
    this.btn_closerotate.visible = true;
    break;
    case "0":
    this.btn_autorotate.visible = true;
    this.btn_closerotate.visible = false;
    break;
    }


    this.btn_menu.visible = true;

    this.btn_nav.visible = false;

    }

    Same as Michel, I think the problem with the polygonal hotspot is that you have to change the "fillalpha" value (and the borderalpha value as well later if the test is successfull).

    just one thing about Michel's xml code (that I haven't try):

    if you put onout="tween(filllapha,0)" it might not work, as when you put the mouse on the flash plugin (the "navigation-test" plugin in the xml), your mouse is physically outside the "hs-combine" plugin.

    just few words in french to be more clear... sorry...
    quand tu mettras le curseur sur le plugin "navigation-test", tu vas effectivement rendre visible le fillalpha du "hs_combine" (par la fonction que Michel a ecrit dans le code as3 ci-dessus) , mais etant donne que le curseur sera en meme temps en dehors du plugin "hs-combine" (puisque sur le plugin "navigation-test"), il executera egalement la fonction onout="tween(filllapha,0)" du "hs-combine" et le rendra immediatement invisible. Fais d'abord des test sans le onout, puis tu pourras aviser ton code xml par la suite.

    Hi Vinyl,

    actually I had a try and it worked with the code I gave you yesterday.

    Here is the full code working with my plugin.

    as3 code for your flash plugin:

    Code
    monBouton.addEventListener(MouseEvent.CLICK, maFonction);
    
    
    function maFonction(e:MouseEvent):void
    {
    		krpano.set("hotspot[nomDeMonHotspotDansLeFichierxml].alpha", "0.8");
    	}

    and you might try to include your other action in it, which become:

    Code
    monBouton.addEventListener(MouseEvent.CLICK, maFonction);
    
    
    function maFonction(e:MouseEvent):void
    {
    krpano.set("hotspot[nomDeMonHotspotDansLeFichierxml].alpha", "0.8");
    krpano.call("looktohotspot (nomDeMonHotspotDansLeFichierxml, 18, smooth(100,50,20);");
    }

    It works here, it should be working for you.
    If it still doesn't work, check that you don't misspell (mal ecrit) your hotspot name, and that your hotspot is enabled="true" and visible="true" in your xml file.

    ( si ca ne marche toujours pas, tu peux poster ici un morceau de code plus long (as3 et/ou xml) pour qu'on essaie de trouver l'erreur, ou me contacter par message )

    ps: thank you for answering on my post, I'll try by checking the path of all files

    Hi,

    I've made a swf file with some animation in it, then when I try to include it in krpano it says "WARNING: ExternalInterface NOT available" then "ERROR: download of "myAnimation.swf" failed".
    I made it with Flash CS4 including some action script 3. The swf file works fine when I try it with flash player, but I can't have it work in krpano.
    By the way I'm using krpano 1.0.8 beta 8.

    Am I doing something wrong or missing something? *confused*