Roll over on a textfield image ?

  • Hi,

    I use the google earth logo in a textfield plugin. I'd like to add a roll over when the mouse comes over. My problem is that in a Vtour, i need to open different ".kmz" each time. The only way i found to open a .kmz is to use a textfield. I can give it effects, but how to tween a variable' effect when mouse comes over ?


    <plugin name="google" url="plugins/textfield.swf"
    visible="true"
    align="lefttop"
    keep="false"
    effect="glow(0xffff73,0.5,4,2);dropshadow(1,0x000000,3,0.5);"
    edge=""
    width="55"
    height="55"
    x="15" y="3"
    zorder="8"
    alpha="0.0"
    onover=""
    onloaded="tween(plugin[google].alpha, 0.7, 2);"
    background="false"
    html="data:htmldata1"
    selectable="true"
    />

    <data name="htmldata1">
    <a href="Capitainerie.kmz"><img src="skin/google_earth_logo.png" /></a>
    </data>


    I've tried with tween, set etc.; not working !! I don't know how to write a css in this case.

    MAny thanks. *smile*

  • Hi,

    the behavior of the HTML text and links is completely controlled by flash,
    so it's not possible to have a roll-over image there,

    but why can't you open link to the ".kmz" file by the openurl() action?
    e.g.

    Code
    onclick="openurl(Capitainerie.kmz,_self);"

    then you could use a normal krpano plugin image...

    best regards,
    Klaus

  • Hi Klaus,

    Thanks for your time.

    Sometimes i hate myself to look so far while it's by my feet. I've done exactly what you said with an other plugin (googlemap) !

    Actually i've tried many ways to open a .kmz file, except this one precisely (with _self). It works your way, of course.
    I've tried, first, to add a "onclick" action to a .swf file. You can't. You have to write the action in flash (via actions in flash cs4) and the function getURL in flash doesn't work with .kmz. I thought it was the same with a normal plugin.

    By the way, is there a topic about how to give an alternative plugin or hotspot when you're loading a pano from an i-phone. It doesn't support flash files, is it?
    So it won't show the swf plugins or hotspots (textfield, navigation etc..), is it ?
    If so, which setting do i have to modify ? Add a "altloaded" to each swf plugin or hotspot, like this ?

    Code
    altonloaded="if(isphone, mul(scale,2)); onloaded();"


    If so, any fragment of code to share ? What about the syntax for the i-pad, "ispad" ?
    MAny questions *whistling* , but so far, i'm not really familiar with the i-phone use *unsure* :

    Can't load my pano on i-phone or i-pad

    Many Thanks Klaus. *smile*

    Steph

    2 Mal editiert, zuletzt von esys (24. Februar 2011 um 02:59)

Jetzt mitmachen!

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