Ask a Question related to Macromedia Flash Flashcom, Design and Development.
-
nmx_shadow #1
CANT DUPLICATE AN EXTERNAL LOADED MOVIECLIP (swf)
//i have two movieclips //recipient.swf //txt.swf //there is the movieclip
that i want to load and then duplicate URL = ('txt.swf'); //here is the normal
process to load a movieclip in actionscript using loadClip function var NWOBJ =
new MovieClipLoader(); OBJ = new Object(); OBJ.onLoadStart =
function(target_mc) { }; OBJ.onLoadProgress = function(target_mc, loadedBytes,
totalBytes) { }; OBJ.onLoadComplete = function(target_mc) { }; OBJ.onLoadInit =
function(target_mc) { //when the object is loaded, it is supouse that i can
duplicate it. //duplicate(target_mc); //option1. See NOTE duplicate2();
//option2. See NOTE }; OBJ.onLoadError = function(target_mc, errorCode) { };
NWOBJ.addListener(OBJ); //here is where i load the movieclip
NWOBJ.loadClip(URL, top_mc.sub_mc); //NOTE: I ALSO TRY TWO WAYS TO DUPLICATE
THE OBJECT, USING THE target_mc, RETURNED FROM THE loadClip FUNCTION, //and the
second was using the instanceName of the movie where i loaded my external
movieclip. //this is the function to duplicate the movieclip, called when the
object is loaded. duplicate2 = function () { //everything is working at now,
the original movieclip was loaded and it,s visible. for (i=0; i<=6; i++) {
top_mc.sub_mc.duplicateMovieClip(('duplicated_obje ct'+i), i); trace(i) //
0,1,2,3,4,5,6 // set the _y position for my duplicated moviclips.
top_mc['duplicated_object'+i]._y = loaded_obj._height*i; // set a value for
the textfield 'txt' into my loaded movieclip
top_mc['duplicated_object'+i].txt.text = 'DUPLICATED OBJ / NUMER: ' + i; }
//well, here is where is my probelm, nothing happened, i couldn,t duplicate
the movieclips. why??? // i'll appreciate any help. regards. }; duplicate =
function (loaded_obj) { //everything is working at now, the original movieclip
was loaded and it,s visible. for (i=0; i<=6; i++) {
loaded_obj.duplicateMovieClip(('duplicated_object' +i), i); trace(i) //
0,1,2,3,4,5,6 // set the _y position for my duplicated moviclips.
this['duplicated_object'+i]._y = loaded_obj._height*i; // set a value for
the textfield 'txt' into my loaded movieclip
this['duplicated_object'+i].txt.text = 'DUPLICATED OBJ / NUMER: ' + i; }
//well, here is where is my probelm, nothing happened, i couldn,t duplicate
the movieclips. why??? // i'll appreciate any help. regards. };
nmx_shadow Guest
-
Loaded external SWF gets blurry fonts/bitmaps
Hi all When i load an external swf file it looses quality and renders blurry. But the swf itself (the external one) looks perfectly fine... -
DuplicateMovieclip in a loaded MovieClip
Hello, i don't understand why duplicateMovieClip doesn't work when we load a movieclip that contains a DuplicateMovieClip function in another... -
_totalframes of external loaded file
I have loaded and external swf file some_mc.loadMovie("xyz.swf"); how can i check the current frame being played at external file? Please... -
loading and scaling an external SWF into a movieclip?
Hi. I'm sure there's a way to do this easily with AS, but I don't know how. I'm trying to load an SWF into an empty movieclip instance. I've got... -
targeting a movie loaded into a movieclip?
So, I have a file, how.swf loaded into a movieclip like this: loadMovie("how.swf","landingpad"); now I want to control the timeline of a...



Reply With Quote

