PDA

View Full Version : I cant attach runtime shared MC into the loaded MC.. WHY!!



Deril
October 12th, 2003, 06:08 PM
Hello,

I am creating flash game, and I have a litle problem,


1:I create Empty MC;
2:load MC in it
3:wait this MC to load
4:create enother Empty MC inside
5:then I am attaching inported for runtime sharing MC

I checked all steps .. everythinf is ok, exept 5'th step... :(





/// this works fine
_root.createEmptyMovieClip("test1", 1);
_root.test1.attachMovie('s1', 't1', 0);


////
_root.createEmptyMovieClip("test2", 2);
_root.test2.loadMovie('load.swf');
//
int_load = setInterval(function () {
if (_root.test2.getBytesLoaded() == _root.test2.getBytesTotal()) {
_root.test2.createEmptyMovieClip("test3", 0);

//THIS LINE IS NOT WORKING..
_root.test2.test3.attachMovie('s1', 't1', 0);

clearInterval(int_load);
}
}, 100);
//



I attached my test files,
(flashmx2004)

if someone could explain is it a bug.. or what...

thanks for your time.

best regards;
Deril