You are not logged in.

1

Friday, December 9th 2011, 11:38pm

hello i would like that when plugin01 y plugin02 get invisinble, that plugin home gets invisible too

hello i would like that when plugin01 y plugin02 get invisible, that plugin home gets invisible too.

I'm trying 2 days but is not function. *cry*

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<plugin name="plugin01" 
    url="img/plu01.jpg" 
    visible="true"
    keep="true"
    children="false"
    align="leftbottom" 
    width="350" 
    height="35" 
    x="50" 
    y="5" 
    handcursor="true"
    onclick="set(plugin[plugin01].visible,false); action(if); "
/>

<plugin name="plugin02" 
    url="img/plu02.jpg" 
    visible="true"
    keep="true"
    children="false"
    align="leftbottom" 
    width="350" 
    height="35" 
    x="10" 
    y="5" 
    handcursor="true"
    onclick="set(plugin[plugin02].visible,false);   action(if); "
/>

<plugin name="home" 
    url="img/home.jpg" 
    visible="true"
    keep="true"
    children="false"
    align="leftbottom" 
    width="350" 
    height="35" 
    x="100" 
    y="5" 
    handcursor="true"
/>

<action name="if">
if(plugin[plugin01, plugin02].visible == false,
set(plugin[home].visible,false) );    
</action>

This post has been edited 2 times, last edit by "ArturoJM" (Dec 9th 2011, 11:54pm)


Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Saturday, December 10th 2011, 6:10am

Why dont you set them all to a local parent a manipulate that?
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Zephyr

Professional

Posts: 994

Location: Netherlands

Occupation: Web developer

  • Send private message

3

Saturday, December 10th 2011, 10:08am

alsoo Im not sure if an action with the name if is allowed (couild confilict with the if statement).
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

4

Saturday, December 10th 2011, 6:59pm

how can I insert the two plugins within a parent and that active with the IF. I have to add the plugin de item=0. Can zou please sent an example, guide to or an demonsration to understand the functionality of the IF command. I have seen the demonstration of foto slide of krpano. It has 130 lines and I don t understand the functionalitz of IF.