Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account

Flash function/event handler issue

  • Please log in to reply



    New Member

  • Member
  • Pip
  • 1 posts
I have a function and use a movie clip event to call the function. It doesn't work in Flash 5. I removed the instance names for my text fields and made them variable names (since instance names only work on movie clips in Flash 5). But, it still isn't working. Please take a look and let me know if there is something I'm missing:

function getPlayerByLastName(lastname){
for(var i = 0; i < player.length; i++) {
if(player[i].lastname.toLowerCase() == lastname.toLowerCase()) {
return player[i].firstname +" "+ player[i].lastname +" "+ player[i].team +" "+ player[i].pposition +" "+ player[i].averagepoints;
return "No Match";
searchButton.onMouseDown = function(){
returnField = getPlayerByLastName(nameField);

The only thing in my code that is not included is and array I created.

  • 0


Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP