onLoad for dynamically created mc's?

I am guessing the onLoad event handler doesn’t work for dynamically created movie clips (with attachMovie) because it never gets loaded…
Is there any other way i can do something when it first gets created?