PDA

View Full Version : get an as2 spot to communicate with hotspots.swf


jaaaab
07-28-2008, 10:40 PM
Hi all!

it's possible to embed an AS3 spot in a tour and get it to communicate with hotspots.swf thanks to this AS3 code:

var hotspots:Object;

loaderInfo.addEventListener(Event.INIT, initHandler);

function initHandler (event:Event) {
if (loaderInfo.loader!=null) {

// get link to hotspots plugin object:
hotspots = loaderInfo.loader.hotspots;

hotspots.execute("fullscreen(-)");

}
}

anyone knows if it's possible to do the same but with an AS2 spot?

tx!

Scott Witte
07-28-2008, 11:21 PM
Wouldn't localConnection allow you to do this? Essentially:
if (masterSlot != null) {
_lc.send(masterSlot, "execute", "fullscreen(-)");
}
or something very close to that. And I suspect you know all about localConnection.

jaaaab
07-29-2008, 10:33 AM
sometimes evidence is just here..

didn't remember this old good controller.fla was written in AS2.

thanks Scott!