You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

flash360

Trainee

  • "flash360" started this thread

Posts: 89

Location: All over

Occupation: this

  • Send private message

1

Saturday, March 21st 2009, 10:54am

Calling an xml using an external swf plugin

Hi all

I have had success creating AS3 hotspots from a swf plugin (like a floorplan for example) using the code below

My question is: Although it works in the main timeline - putting the Button into a movie clip doesnt work

Ive tried root. and parent. before the krpano.call but no success

I`m sure its easy?? anyone... Klaus ;-)

cheers

John

Quoted

"function room1_clicked(mouseevent:MouseEvent):void
{

// load pano1.jpg - note: KEEP PLUGIN!
krpano.call("loadpano(1.jpg_cube.xml,null,MERGE,BLEND(1));");
}
"

2

Saturday, March 21st 2009, 6:11pm

Hi,

you need to be sure that the "krpano" variable is accessible,
e.g. when the "krpano" variable was defined in the main plugin movieclip/sprite,
it can't be accessed automatically by a other movieclip/sprite,

to make it easier - just a get new local plugin interface instance before:

e.g.

Source code

1
2
var krpano:krpano_as3_interface = krpano_as3_interface.getInstance();
krpano.call(...);


best regards,
Klaus