Sie sind nicht angemeldet.

1

Mittwoch, 4. November 2009, 22:40

TextBox and control Freeze

Hello,

I am currently working on an interactive virtual tour, i would llike to implement some textbox by adaptating the textbox plugin to my project.

I want to have the textfiel plugin display a single box with description centered at the screen and to freeze panorama control to focus the user attention on text like the exemple in the following link (you have to click on the button 2 "afficher le texte 2" :

http://www.nicolasburtey.net/interface/texte/

is this possible? Any examples ?
Thanks

2

Samstag, 7. November 2009, 16:03

Hi,

that's just a second plugin,

a small image (e.g. just 8x8 pixel large) with a single color that will be scaled to 100% x 100% of the screen, and is ordered behind the textfield (zorder="1" for the image and zorder="2" for the textfield),

e.g. here a small simple example:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<plugin name="textbg" url="small8x8bg.png" alpha="0.0" visible="false"
   align="lefttop" width="100%" height="100%"
   handcursor="false"
   onclick="action(closetext);"
   />

<plugin name="text" url="textfield.swf" ....  zorder="2" visible="false" />

<action name="showtext">
  set(plugin[textbg].visible,true);
  set(plugin[text].visible,true);
</action>

<action name="closetext">
  set(plugin[textbg].visible,false);
  set(plugin[text].visible,false);
</action>


best regards,
Klaus

3

Mittwoch, 9. Dezember 2009, 11:58

Thank you very much for your precious help Klaus, I did not manage to find solution, i will try this !

Best regards