Skip to main content
Inspiring
June 29, 2006
Question

override loadMovie on MovieClip instance in AS 2

  • June 29, 2006
  • 3 replies
  • 303 views
Hi all,

is there a way to override the loadMovie function of the MovieClip object via AS2 but only for one sepcific movieclip instance?
I know there is a way using prototype to override the funciton globaly, but I only need to modify the behaviour of loadMovie on a specifc movieclip.

in flash 8 uisng
myinstance_mc.loadMovie = function (url){

}
This topic has been closed for replies.

3 replies

Inspiring
June 30, 2006
it seems nobody knows the answer to this question, well maybe another way could work:
is there a way to add a listener on a movieclip object that informs another object/class once the loadMovie function of this movieclip is called?
I tried overriding the onLoad onData events of the movieclip, but those get deleted once loadMovie is called on the movielcip
Inspiring
June 29, 2006
unfortunately this is not an answer to my question, thank you for your time anyway!
Anybody else an idea?
June 29, 2006
try something like this...

function loadTheMovie(target_mc, url){
if(target_mc != noGoodMc){
target_mc.loadMovie(url);
}
}