is it possible to open image with hotspot open with different scales ?

  • hello all

    I was adding 'openimage' functions to my virtual tour scene.
    what i want is open an image with smaller scale: such as scale=0.5

    here is the code i used:

    the scale="0.1" only works with desktop browser, but not in smartphones, e.g. android phone.
    is that right way to do that ?

    thanks

  • Hello,

    Everything looks OK to me.
    Try adding the following line to your code:

    Code
    <action name="open">
            set(plugin[%1].visible,true);
            tween(plugin[%1].alpha,1);
            delayedcall(1, trace(get(plugin[sopenimage].scale)); showlog());
        </action>

    It should print you the value of the scale attribute in your console. If scale is the same value in your desktop and in your mobile, I'd say the explanation is not in your XML code.

    Did you add the following line to the HTML file where the virtual tour is embedded?

    Code
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />

    Cheers,

    Parallax VT

Participate now!

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