Sie sind nicht angemeldet.

1

Freitag, 27. Februar 2009, 11:44

2 set functions in 1

in my application flash needs to send two thinks with the set function to krpano. the two are, visible and freezeview.

when i'm writing it down as this:

Quellcode

1
krpano.set("plugin[gallery].visible", false)("plugin[gallery].freezeview", true);


Doesn't work

also this:

Quellcode

1
2
3
krpano.set("plugin[gallery].visible", false);
krpano.set("plugin[gallery].freezeview", true);
 


Question how to make it work. do i need to set a action with the two functions?

so yes, how to ask it then in flash

krpano.set("action[name action].enable ?????", false);

2

Freitag, 27. Februar 2009, 14:43

say if your in flash and you like to set something with flash in krpano then you use the next code:

Quellcode

1
krpano.set("plugin[gallery].visible", false);


my qeustion how to get 2 things in one ? i need to set it visible and i have to use freezeview.

3

Samstag, 28. Februar 2009, 01:18

Hi,

the two set() calls are okay:

Quellcode

1
2
krpano.set("plugin[gallery].visible", false);
krpano.set("plugin[gallery].freezeview", true);


what does not work?

4

Donnerstag, 5. März 2009, 09:34

the visible function works prefectly, only the freezeview function is not working. Seems like he doesn't see that orther function.

code i use:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
  case MouseEvent.CLICK :
   if (krpano.get("plugin[gallery].visible") == false)
   {
    krpano.set("plugin[gallery].visible", true);
    krpano.set("plugin[gallery].freezeview", true);
    resetall();
   }
   else
   {
    krpano.set("plugin[gallery].visible", false);
    krpano.set("plugin[gallery].freezeview", false);
   }


why is this wrong?

5

Donnerstag, 5. März 2009, 14:17

Hi,

there is no "freezeview" attribute

but krpano has a freezeview() action,
from AS3 it can be called in this way:

Quellcode

1
krpano.call("freezeview(true);");

or

Quellcode

1
krpano.call("freezeview(false);");

6

Dienstag, 4. August 2009, 13:15

Is there a property to know is freezeview is on or off ?

Thanks
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

7

Mittwoch, 5. August 2009, 23:28

Is there a property to know is freezeview is on or off ?
currently not

8

Sonntag, 7. August 2011, 09:56

Another old thread... is it possible to "switch" freezeview? i.e. switch(freezeview);

Beiträge: 1 857

Beruf: Virtual Tours - Photography - Krpano developer

  • Nachricht senden

9

Sonntag, 7. August 2011, 15:10

Switch toggles true, false or cycles through an array if values for anything.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour