English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hey there...i am currently doing flash project and i want to do a loading page that will give the user the chance to skip to go to a main page....at the same time the button should also stop the background music ? Plzzz help me

2007-03-22 20:28:49 · 1 answers · asked by Jessica P 4 in Computers & Internet Programming & Design

1 answers

Ok This is assuming ur using Flash 8, but the same can be done using lower versions also..

First open ur library, right click on the bg music and select "linkage", then select "Export for Actionscript"; give a name in the identifier that will be easy to refer to later. e.g. "bg_mus" (widout the quotes)

Now on the frst frame of ur main timeline add the following code:
mysound= new Sound();
mysound.attachSound("bg_mus");
mysound.start();

The above code will start playing ur bg music as soon as the movie loads.

Now

Select ur Skip Btn and add the following code

on(release)
{
getURL("man.html");
mysound.stop();
}

dat shud solve ur problem

2007-03-22 20:54:37 · answer #1 · answered by Travis Rex 2 · 0 0

fedest.com, questions and answers