Help with scaling images

  • Hi,
    I currently have a plugin defined in my tour that displays a fixed information icon in the upper right hand corner of the screen.

    <plugin name="information"
    url="info.png"
    align="righttop" x="+15" y="+15"
    scale="0.8"
    alpha="0.6"
    onover="tween(alpha,1);"
    onout="tween(alpha,0.6);"
    onhover="showtext(City Methodist Church Information, buttonstyle);"
    onclick="showInfo();"
    keep="true"
    />

    I then have these actions defined:


    <action name="showInfo">
    if(plugin[infoimage].visible,
    set(plugin[infoimage].visible,false);
    ,
    set(plugin[infoimage].visible,true);
    set(plugin[gallery2].visible,false);
    set(plugin[load3].alpha, 1.0);
    );
    </action>

    <action name="hideinfoimage">

    set(plugin[infoimage].visible,false);
    </action>

    My problem is I would like to scale the image that is displayed based on the current screen size. This way if they are on a smaller screen the image will not be so big.

    Is there a way for me to scale the image before it is displayed? Or is there a better way for me to accomplish what I am after?

    Any help is greatly appreciated.

Jetzt mitmachen!

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