How to use the textfield plugin ?

  • Hi,

    I try to master the krpanos' function since a few days and i don't really understand how to load and use the "textfield" plugin.

    Do i have to build a html page in dreamweaver, for example, and then include the url in my xml code to load it ??

    Anyone would get a code example and a clear explanation will be welcome. *g*

    I also tried to find the answer in the xml examples, without succeed.

    Thank you..

  • Have you been able to use any of the bat files to convert your panorama images?


    If so, you will need to copy the textfield.swf file and place in in the same folder as the xml and html that was created. Or, a better option, copy the complete plugin folder and paste that folder with the xml and html.


    I EDITED THIS POST. I was thinking of the wrong plugin at first.
    Have you visited this page?

    https://krpano.com/plugins/textfield/


    Now, here is code assuming you have copied the entire plugin FOLDER.

    This code should go into your first xml file.


    <plugin name="htmltext" url="plugins/textfield.swf"
    origin="center"
    width="500" height="300"
    x="0" y="0"
    html="data:htmldata1"
    css="data:cssdata1"
    borderwidth="1"
    bordercolor="0xFFFFFF"
    backgroundcolor="0xFFFFFF"
    selectable="false"
    autosize="center"
    />

    <data name="htmldata1">
    <p align="center">
    <font face="times" size="+4">
    <b>Hello from Actionscript HTML</b>
    </font>
    </p>
    <b>bold</b><br/>
    <i>italic</i><br/>
    <u>underlined</u><br/>
    <br/>
    </data>

    <data name="cssdata1">
    a { text-decoration:underline; font-weight:bold; }
    a:hover { color:#885500; }
    </data>

    Edited 3 times, last by Jarredja (November 14, 2010 at 3:01 AM).

  • Here is something a bit different as it does not use the background like the previous snippit of code did.

    <plugin name="fs"
    url="plugins/textfield.swf"
    keep="true"
    visible="true" enabled="true" handcursor="true" capture="true" children="false"
    zorder="0"
    alpha="0.97" blendmode="normal"
    smoothing="true"
    autopos="bottomcenter,0,5"
    width="180" height="40"
    scale="1"
    onloaded=""
    onover=""
    onhover=""
    onout=""
    ondown=""
    onup=""
    onclick="switch(fullscreen);"
    parent=""
    autosize="center"
    background="false"
    backgroundcolor="0xffffff"
    blur="0"
    bordercolor="0"
    borderwidth="1"
    css=""
    glow="0"
    glowcolor="0x000000"
    html="data:textfield1"
    roundedge="0"
    selectable="true"
    shadow="0"
    textblur="0"
    textglow="4"
    textglowcolor="0x000000"
    textshadow="3"
    />

    <data name="textfield1">
    <p align="center"><font face="arial" color="#bac3c6" size="+5"><b><i>Fullscreen/Normal </i></b></font></p>
    </data>

  • Quote

    Have you been able to use any of the bat files to convert your panorama images?

    Hello Jarredja,

    Sorry i was absent for a few days. Yes i'am able to use the droplet and do some basics things. Have a look here :

    http://www.mitconseil.eu/FTPMIT/Public/…vtour/tour.html

    I've just made this "tour" for the topic, so don't look to the esthetic or whatever.

    I get the first code you gave me on krpano site. Thanks for both. As you can see i've changed and add few things in your first code to understand each parameters and it works. *smile* I just don't really understand the "css" part. (you don't have any in your second code ?) I can write a line in the plugin :

    css="p{color:#FF0000; font-family:Arial; font-size:14;}"

    or link to a css code

    But could you explain me those kind of parameters :

    a { text-decoration:underline; font-weight:bold; }
    a:hover { color:#885500; }

    Is there any other documentation on krpano site about all the css tags and their syntax.
    I 've downloaded the "flex" adobe documentation here :

    http://livedocs.adobe.com/flex/201/index.html

    but it's too complex for me to find it.

    Is it also possible to get the .xml of this example ?

    https://krpano.com/examples/textfield/

    to understand how to give to each text a different action. Also to open a second field or give a movement to the textfield etc..

    Sorry if my questions are weird but i'm not really a data processor, ' just using my logic. And i'm also french. *smile*

    Thanks for everything.. *g*

    Steph

    Edited once, last by esys (November 21, 2010 at 2:18 PM).

  • Hi,

    I'd like to combinate two pictures at the same place.
    Thanks to have a look here :

    http://www.mitconseil.eu/FTPMIT/Public/…Vtour/tour.html

    Click on the building in front of you. There's a "logo" in the right top corner of the picture, i'd like it to be interactive with an external link. So i have to separate the two pictures in the code, but i want them as they are in my ex and not side by side as they are when you write two separate sources.

    My problem is i don't know how to offset pictures or text in the textfield area. I've tried with "xoffset=.." etc.. no success (i'd like the car a little bit more on the left also).

    Any idea or code example to help me ?

    Thanks. *g*

    Steph

    Edited 2 times, last by esys (December 6, 2010 at 2:02 AM).

Participate now!

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