PDA

View Full Version : (EXPERT NEEDED)attaching from "in target" loaded mc?



mediaholic
July 13th, 2003, 05:33 AM
(zip-file attached!)
i have main.swf with FPushButtonSymbol-linkageID in libary
on main timeline a have this:

this.createEmptyMovieClip("holder",10);
this["holder"]._x=100;
this["holder"]._y=100;
this["holder"].createEmptyMovieClip("holder_lev1",11);
this["holder"]["holder_lev1"]._x=100;
this["holder"]["holder_lev1"]._y=100;
this["holder"]["holder_lev1"].loadMovie("extern.swf");

and my extern.swf have this on his timeline:

init_obj_b={_x:0, _y:0, label:"hallo"};
this.attachMovie("FPushButtonSymbol", "b",50,init_obj_b);

THE PROBLEM: the button is not attached!
ok i know that this don't work by default, and i could use loadMovieNum but i realy do need this TARGETS-mc.

DOES ANYBODY KNOW SOME SUITABLE WORKAROUND FOR THAT?
i found this answer from gparis on this thred http://www.flashkit.com/board/showt...threadid=462496

BUT I DON'T ANDERSTAND IT!




I would say: load into a _level, not into a target. That's the usual "getaround" with attached symbols that preload before anything else. If they really need to be in targets, once they are loaded into _level1 for instance, and cached, load them again into your holders.
gparis


PLEAS CAN ANYBODY HELP?

claudio
July 13th, 2003, 07:15 AM
Is this what you were looking for? :-\

mediaholic
July 13th, 2003, 07:26 AM
tnx Claudio,

i won't the UiComps
to be in main.swf so i don't have to preload the again and again
for each extern-swf i load subsequently.

see this tread(i already had long discusion:BUT STILL NO ANSWER) i u thing u can help, it is very konzeptualy-general question.

http://www.actionscript.org/forums/showthread.php3?threadid=31001