screentosphere(mouse.x,mouse.y,toh,tov)

  • how cai i transform the mouseX and mouseY using the function screentosphere(mouse.x,mouse.y,toh,tov)???


    i wanna click, then apeear a hotspot using the mouseX and mouseY, but finally they stay fix in the pano image.


    var spotname:String = "spot1";
    _krPano.call("addhotspot(" + spotname + ")");
    var spot:Object = _krPano.get("hotspot["+ spotname + "]");
    spot.url = _urlImage;
    //spot.ath = -18.9274;
    spot.ath = mouseX;
    spot.atv = mouseY;
    //spot.atv = 32.5275;
    spot.zoom = false;
    spot.onclick = function():void { _krPano.call("showlog()"); _krPano.trace(1, "cliquei aqui..."); };
    _isExist = true;



    after i setup de mouseX and mouseY, how the spot stay fix without change the position please?

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!