Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

yanowhiz debug please


  • Please log in to reply
3 replies to this topic

#1 furian76

furian76

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:01:04 PM

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

BC AdBot (Login to Remove)

 


#2 yano

yano

    I can see what you post!


  • Members
  • 6,469 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:01:04 PM

Posted 02 June 2005 - 08:18 PM

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

#3 furian76

furian76
  • Topic Starter

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:01:04 PM

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 furian76

furian76
  • Topic Starter

  • Members
  • 3 posts
  • OFFLINE
  •  
  • Local time:01:04 PM

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

 	 }

  }

	}

}





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users