Mojsan


« Hänvisar. | Hem | »

Actionscript i samma ruta som startsidan:

gjord_btn.addEventListener(MouseEvent.CLICK, byggsten);
function byggsten(event:MouseEvent):void
{
gotoAndStop(“byggsten”);
}
farg_btn.addEventListener(MouseEvent.CLICK, färger);
function färger(event:MouseEvent):void
{
gotoAndStop(“färger”);
}
avsluta_btn.addEventListener(MouseEvent.CLICK, avsluta);
function avsluta(event:MouseEvent):void
{
gotoAndStop(“avsluta”);
}
stopSound_btn.addEventListener(MouseEvent.CLICK, ljud);
function ljud(event:MouseEvent):void
{
SoundMixer.stopAll();
}
url_btn.addEventListener(MouseEvent.CLICK, mer_info);
function mer_info(event: MouseEvent)
{
var front:URLRequest = new URLRequest(“http://sv.wikipedia.org/wiki/Regnb%C3%A5ge”);
navigateToURL(front, ‘_blank’);
}

 

acstionscript på en av tillbaka-knapparna:
button_1.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame);

function fl_ClickToGoToAndStopAtFrame(event:MouseEvent):void
{
gotoAndStop(“front”);
}

 

Actionscript på se allt igen-knappen:

igen_btn.addEventListener(MouseEvent.CLICK, upprepaintro);
function upprepaintro(event:MouseEvent):void
{
gotoAndPlay(1);
}

 

andra actionscriptet är ett stop(); och ligger innan startsidan.

Första actionscriptet:

huvudmenyn_btn.addEventListener(MouseEvent.CLICK, front);
function front(event:MouseEvent):void
{
gotoAndStop(“front”);
}


Lämna en kommentar

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Logga ut / Ändra )

Twitter-bild

You are commenting using your Twitter account. Logga ut / Ändra )

Facebook-foto

You are commenting using your Facebook account. Logga ut / Ändra )

Ansluter till %s

Follow

Get every new post delivered to your Inbox.