Customizing the Default control var for Virstual Tour

  • Hi,
    I am trying to add my own control bars by changing the virtual skin.xml but having a lot of difficulties.
    For example I have a tour with thumbnails and like to have a more info button in the conrol bar for each scene.
    So based on the selected scene the more info will show the details of the selected scene.

    1) Is there a way to add debug or alert statements to see the values of the variables? I tried to adding a function that alerts about the variables but it does not work I added to index.html

    2) I am trying to get the current selected or displayed scene using
    scene[get(xml.scene)].index
    and assiging a name to htmltext based on the index of the scene so I will
    have htmltext1 for scene1 and htmltext2 for scene2 etc. But that is not working:


    set(textName,'htmltext');
    copy(index, scene[get(xml.scene)].index);


    txtadd(textName,index);


    set(plugin[get(textName)].enabled,true);
    tween(plugin[get(textName)].blur,8,0);
    tween(plugin[get(textName)].textblur,8,0);
    set(plugin[get(textName)].blur,8);
    set(plugin[get(textName)].textblur,8);
    set(plugin[get(textName)].visible,true);
    tween(plugin[get(textName)].blur,0);
    tween(plugin[get(textName)].textblur,0);


    tween(plugin[get(textName)].alpha,0.8);


    Is there a way to see the values in scene[get(xml.scene)].index and why it is not working if I do this it works
    txtadd(textName,2); and I have the text name = htmltext2.

    Thanks for your help with this

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!