// Sets the default value for the dynamic directions box variable: "directions"
directions = normal;
// Create a function to take a user's selection from the combo box and set the correct directions in the directions box and send the map animation to the correct frame.
function onChange(component) {
if (component == combo) {
active = combo.getSelectedIndex();
if (active == "0") {
directions = Episode 1-5;
getURL("http://www.macromedia.com","_self");
} else if (active == "1") {
directions = Episode 1;
getURL("http://www.macromedia.com","_self");
} else if (active == "2") {
directions = Episode 2;
getURL("http://www.macromedia.com","_self");
} else if (active == "3") {
directions = Episode 3;
getURL("http://www.macromedia.com","_self");
} else if (active == "4") {
directions = Episode 4;
getURL("http://www.macromedia.com","_self");
} else if (active == "5") {
directions = Episode 5;
getURL("http://www.macromedia.com","_self");
}
}
}
Page 1 of 1
yanowhiz debug please
#2
Posted 02 June 2005 - 08:18 PM
change directions = Episode 1-5; to directions = Episode 0
#3
Posted 02 June 2005 - 08:23 PM
**Error** Symbol=Symbol 2, layer=main, frame=1:Line 3: Statement must appear within on/onClipEvent handler
function onChange(component) {
Total ActionScript Errors: 1 Reported Errors: 1
function onChange(component) {
Total ActionScript Errors: 1 Reported Errors: 1
#4
Posted 02 June 2005 - 08:40 PM
// Sets the default value for the dynamic directions box variable: "directions"
// Sets the Movie Clip to function
onClipEvent (load){
// Create a function to take a user's selection from the combo box and set the correct directions in the directions box and send the map animation to the correct frame.
function onChange(component) {
if (component == combo) {
active = combo.getSelectedIndex();
if (active == "0") {
directions = Eps
getURL("http://www.macromedia.com","_self");
} else if (active == "1") {
directions = 1
getURL("http://www.macromedia.com","_self");
} else if (active == "2") {
directions = 2
getURL("http://www.macromedia.com","_self");
} else if (active == "3") {
directions =
getURL("http://www.macromedia.com","_self");
} else if (active == "4") {
directions =
getURL("http://www.macromedia.com","_self");
} else if (active == "5") {
directions =
getURL("http://www.macromedia.com","_self");
}
}
}
}
Share this topic:
Page 1 of 1

Help

Back to top









