[Flash MX] loadMovie Bug?

Pagina: 1
Acties:

  • hobbit_be
  • Registratie: November 2002
  • Laatst online: 04-07-2025
(in't engels want heb deze al op een paar boards gezet hopelijk geen probleem?)

Ok this one has me dumbfounded :)

apparently when one does a

code:
1
foobar_mc.loadMovie("../foobarimage.jpg");


the foobar_mc get loaded correctly (bar of course some attributes like
_width / _height). Of course all attached 'behaviour' is also disposed of. Ok these things we know (the famous .onLoad problem).
swell no problem I knew that. What should remain however is an earlier

code:
1
MovieClip.prototype.fadeIn = function(){bla bla}.


And yes i can call this after foobar_mc is loaded (i use a very advanced preloader which calls code only after image is indeed loaded).

Now the fun starts. As you can see the above is a relative path to the image.

For another project i had to hardwire it...

code:
1
foobar_mc.loadMovie("http://mysite.com/myfoobarimage.jpg");


(which is exactly at the same place and indeed the flash as well - just to make sure I did do an System.security.allowDomain just to be nice.

And again it loads nicely enough. (ie I can indeed see them and use
_x, _y etc)

[bold]BUT[/bold]

no longer can i perform the prototype movieclip function fadein. This is essentially inconsistent behaviour and sorta incredibly stupid. I tried to find it on the web but no luck - perhaps you dude(esse)s have some more indepth idea... Does this mean with absolute links it destroys the prototype of the movieclip? or am I missing something bigger here? I'm no novice so you can get as technical as your heart desires...

Hope anybody can help...