1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
import flash.net.navigateToURL;
import flash.net.URLRequest;
import fl.events.ScrollEvent;
stop();
video.addEventListener(MouseEvent.CLICK, onClic);
contact.addEventListener(MouseEvent.CLICK, onCliccontact);
spectacle.addEventListener(MouseEvent.CLICK, onClicspectacle);
ateliers.addEventListener(MouseEvent.CLICK, onClicateliers);
accueil.addEventListener(MouseEvent.CLICK, onClicaccueil);
photos.addEventListener(MouseEvent.CLICK, onClicphotos);
ateliersenfants.addEventListener(MouseEvent.CLICK, onClicateliersenfants);
ateliersadultes.addEventListener(MouseEvent.CLICK, onClicateliersadultes);
projets.addEventListener(MouseEvent.CLICK, onClicprojets);
function onClic(pEvt:Event):void {
gotoAndStop("3");
}
function onCliccontact(pEvt:Event):void {
gotoAndStop("2");
}
function onClicspectacle(pEvt:Event):void {
gotoAndStop("spectacle");
}
function onClicateliers(pEvt:Event):void {
gotoAndStop("ateliers");
}
function onClicaccueil(pEvt:Event):void {
gotoAndStop("1");
}
function onClicphotos(pEvt:Event):void {
gotoAndStop("photos");
}
function onClicateliersenfants(pEvt:Event):void {
gotoAndStop("ateliersenfants");
}
function onClicateliersadultes(pEvt:Event):void {
gotoAndStop("ateliersadultes");
}
function onClicprojets(pEvt:Event):void {
gotoAndStop("projets");
}
btlemondelien.addEventListener(MouseEvent.CLICK,allerlemonde);
function allerlemonde(event:MouseEvent):void{
navigateToURL(new URLRequest("http://www.azeta.fr"));
}
aSp.setSize(436, 400);
function scrollListener(event:ScrollEvent):void {
trace("horizontalScPosition: " + aSp.horizontalScrollPosition +
", verticalScrollPosition = " + aSp.verticalScrollPosition);
};
aSp.addEventListener(ScrollEvent.SCROLL, scrollListener);
function completeListener(event:Event):void {
trace(event.target.source + " has completed loading.");
};
// Add listener.
aSp.addEventListener(Event.COMPLETE, completeListener);
aSp.source = "willydugarte/images/presentation.jpg"; |
Partager