Skip to main content
Known Participant
October 10, 2007
Question

MovieClipLoader listener not working

  • October 10, 2007
  • 2 replies
  • 402 views
I have this block of code which is giving me an error

**Error** Symbol=mc:thumbnails, layer=action, frame=1:Line 15: There is no property with the name 'onLoadComplete'.
thLoader.onLoadComplete = function(emptyThumb_mc:MovieClip){

It must be the way I have it arranged within the loop because the object is surely valid. Any clues how to straighten this out. I want to check the width of the MC as each loadClip() is added.

This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
October 11, 2007
you're welcome.
kglad
Community Expert
Community Expert
October 10, 2007
use the attach code option to display code in this forum.

and onLoadComplete is not property/method of the moviecliploader class. it's a method of the movieclipload listener. ie, create a listener or continue to use "this".
Known Participant
October 10, 2007
okay got it thanks.

I'll see if I can edit the post and attach the code to clean it up

thanks for pointing it out
mm66
kglad
Community Expert
Community Expert
October 10, 2007
well, that's more readable but i already pointed out the error and you didn't correct it.

try: