BleepingComputer.com: yanowhiz debug please

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

yanowhiz debug please

#1 User is offline   furian76 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 3
  • Joined: 02-June 05

Posted 02 June 2005 - 08:12 PM

// 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");
}
}
}

#2 User is offline   yano 

  • I can see what you post!
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Members
  • Posts: 6,469
  • Joined: 14-February 05
  • Gender:Male

Posted 02 June 2005 - 08:18 PM

change directions = Episode 1-5; to directions = Episode 0

#3 User is offline   furian76 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 3
  • Joined: 02-June 05

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

#4 User is offline   furian76 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 3
  • Joined: 02-June 05

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
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users