Hello,
I'm trying to reproduce the hotspots made by grandlap (http://www.palais.royal.culture.fr/#/fr/pano/place_jour/t=Cour d'honneur)
I don't know if I'm using the right method but here I am :
I've made a swf file with a button(clip) and when mouse is over this button I move a mask with tweenlite to show the red background, I also move a transparent clip over the background and button for when mouse is out this clip then I move back the mask to hide the red background :
import com.greensock.*;
import flash.events.MouseEvent;
btn.addEventListener(MouseEvent.MOUSE_OVER, rollOverHandler);
off.addEventListener(MouseEvent.MOUSE_OUT, rollOutHandler);
function rollOverHandler(event:MouseEvent):void
{
TweenLite.to(off, 1, {x:161, y:17});
TweenLite.to(masque, 1, {x:180, y:28});
}
function rollOutHandler(event:MouseEvent):void
{
TweenLite.to(masque, 1, {x:0, y:28});
TweenLite.to(off, 1, {x:198, y:17});
}
Alles anzeigen
Now I would like to add a text on the red background calling a variable from the hotspot like MyText="I love krpano" and then show I love krpano over the red background...
I saw an example to call a variable from a plugin, but this is a hotspot...
Am I going the right way ? and how to call text from the xml file ?
My source file are attached..
Many thanx !