Sie sind nicht angemeldet.

Hugo

Anfänger

  • »Hugo« ist der Autor dieses Themas

Beiträge: 5

Wohnort: Belo Horizonte / Minas Gerais / Brasil

  • Nachricht senden

1

Donnerstag, 1. März 2012, 15:14

Set plugin through action script

Hello All, can set the plugin object through action script, sample:


import krpano_as3_interface;
var krpano:krpano_as3_interface = null;
this.addEventListener(Event.ADDED_TO_STAGE, startplugin);


function startplugin(evt:Event):void
{
// get interface to krpano
krpano = krpano_as3_interface.getInstance();


// first - disable the build-in progressbar
krpano.set("progress.showload","none");
krpano.set("progress.showwait","none");
krpano.set("plugin[fundoloading].visible","true");
krpano.set("plugin[backgroundloading].visible","true");




I tried doing this but nothing happened!


Thanks!!!! *smile*

2

Donnerstag, 1. März 2012, 17:51

Hi,

the posted code itself is okay, so the problem must be somewhere else...

best regards,
Klaus

Hugo

Anfänger

  • »Hugo« ist der Autor dieses Themas

Beiträge: 5

Wohnort: Belo Horizonte / Minas Gerais / Brasil

  • Nachricht senden

3

Donnerstag, 1. März 2012, 18:42

Hi,

the posted code itself is okay, so the problem must be somewhere else...

best regards,
Klaus
Hi Klaus, without mysterious, but the Murphy Law follows me!!

I will check the XML archive. Below the code:

Quellcode

1
		<plugin name="backgroundloading"			url="paththeimage" 		        align="center"			visible="false"			x="0"			y="0"		/>




I think that is all right!



Thanks for help me!

4

Donnerstag, 1. März 2012, 19:57

Hi,

maybe post a link to the example,
or show the full example or describe what should happen...

best regards,
Klaus

Hugo

Anfänger

  • »Hugo« ist der Autor dieses Themas

Beiträge: 5

Wohnort: Belo Horizonte / Minas Gerais / Brasil

  • Nachricht senden

5

Donnerstag, 1. März 2012, 20:25

Klaus, my problem was between the chair and the computer!

I was putting the code in place wrong. *squint*

Now it´s all right!

Thank you!! *thumbsup*