Mouse position and more question

  • Hi,


    I want ad point (hotspot part) on mouse click.


    mouse.x return only mouse position and write only on trace

    set(hotspot[newspot].ath, mouse.x ); - NOT Work


    Please do you know:

    1. how write mouse position on ATH and ATV (not x, y)?

    2. How insert position tu hotspot?

    3. How debug all value of some object (eg. mouse).... IN PHP var_dump(mouse).... but what there?

    4. Is possible use of plugin "editor" only part of "add polygonal hotspot"?

    5. Where is api documentation? http://www.krpano.com/docu/api ... is removed :(


    Thank's for answer of any question. Thanks, Thanks.... thanks

  • Hi,


    I use in action script:

    set(some_var, some_text_information);

    js(show_data( get(some_var) ) );


    Javascript:

    function show_data(value){

    alert(value);

    }


    alert give me "get(some_var)" ... not "some_text_information"

    Where is mistake?

  • Hi brz00ro,

    Zitat

    alert give me "get(some_var)" ... not "some_text_information"

    Then it seems that the get() is not resolved inside a js() function...
    So, try in this way:

    xml:
    set(some_var, some_text_information);

    js(show_data( some_var ) );

    javascript:
    function krpano()
    {
    return document.getElementById("krpanoSWFObject");
    }

    function show_data(arg)
    {
    alert(arg);
    var result = krpano().get(arg);
    alert(result);
    }


    SAlut.

  • Code
    xml: 
    set(ddata,get(hotspot[newspot].point[0].ath)); 
    
    
    trace(ddata); -----> this return eg:.... -15.75485457 
    
    
    js(write_flash(ddata)); 
    the same result: 
    js(write_flash(get(ddata)));


    my question... how get ddata on javascript


    Code
    javascript: 
    
    
    function write_flash(value){ 
    
    
    alert(value); --> return 'ddata' not -15.75485457 
    
    
    }


    on: js(write_flash(get(ddata))); return 'get(ddata)' not -15.75485457


    I try your solution....


    Code
    krpano = document.getElementById("krpanoDIV"); 
    
    
    alert('test'); 
    alert(krpano.get(ddata));


    :(

Jetzt mitmachen!

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