Skip to main content
darling67
Known Participant
October 16, 2011
Answered

Duplicate function definition error

  • October 16, 2011
  • 1 reply
  • 15274 views

Hello all!

One of the the most annoying errors to get is the "duplicate function definition" error! I appreciate that Flash doesn't want to see the same function twice...

... But what about the same function used in two different sections (labels) of one site? I've got two different slideshows in two different sections of my site, and I need the same function called out for each.

The function is function nextImage():void

If I remove it one, that slideshow doesn't work (remains fixed on image 1 of the slideshow).. if I keep it in, nothing works!

Any ideas for a work-around? I had wanted to use the same script for both slideshows, but forget that! So, I found another script for a different type of slideshow. I thought I'd be safe taking that approach. Apparently not.

Thanks!!!

This topic has been closed for replies.
Correct answer Ned Murphy

I don't know whether someone else will have better to offer, but if you have a duplicate function problem for two different slideshow designs, rename that function in one of them.

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
October 16, 2011

I don't know whether someone else will have better to offer, but if you have a duplicate function problem for two different slideshow designs, rename that function in one of them.

darling67
darling67Author
Known Participant
October 16, 2011

Hmmmm.... I didn't know you were allowed to do that. I thought there was a function name for every specific.... "function"!

I'll try that. Thanks.