Skip to main content
Inspiring
September 15, 2006
Question

loadMovie and then duplicatemovieclip wont work

  • September 15, 2006
  • 4 replies
  • 259 views


I just need to load the pic and then duplicate the movieclip...
Anyone knows why I can't???
Please help!


I have this code:
>
> button_btn.onPress = function(){
> ...
> center_32_MC.loadMovie("media/bg/"+x+".jpg");// loads the pic properly
> tile=
> _root['tile']._root.Ntiles+'_mc';
> tile.loadMovie("media/bg/"+x+".jpg");
> ...
> };
> and then
>
> center_32_BTN.onPress = function(){
> _root.Ntiles++;
> tile= 'tile'+_root.Ntiles+'_mc';
> _root.center_32_MC.duplicateMovieClip(tile,_root.getNextHighestDepth(),{_x:50,_y:250});}


if i press "center_32_BTN" first of all it will make the copy of the blankmc
(with the image not loaded yet)
if i press "button_btn" on second place it will load it on the first pic
butnot in the duplicated mc.


if i press "button_btn" on first it will load it on the first
pic,obviously...
but if i press now ."center_32_BTN" it wont make any copies..

CheerS!
>



This topic has been closed for replies.

4 replies

Inspiring
September 18, 2006
Ok it doesnt matter in this project, is a game stages editor using tiles...

Have you seen another one in flash? I need ideas :S


"Peter Blumenthal" <mmgroups@_spamkiller_PhageInteractive.com> wrote in
message news:eem3qg$s1j$1@forums.macromedia.com...
> You're welcome. The usual way is to just reload the image each time. Most
> people's browsers will cache after the 1st, so not too much of a bandwidth
> hit.
>
> --
> -------------------------------
> Remove '_spamkiller_' to mail
> -------------------------------
>
>


Inspiring
September 18, 2006
You're welcome. The usual way is to just reload the image each time. Most
people's browsers will cache after the 1st, so not too much of a bandwidth
hit.

--
-------------------------------
Remove '_spamkiller_' to mail
-------------------------------


Inspiring
September 18, 2006
Ok, thanks

I will think other way to do it :\

Cheers


"Peter Blumenthal" <mmgroups@_spamkiller_PhageInteractive.com> escribió en
el mensaje news:eee9q4$ofk$1@forums.macromedia.com...
> Just doesn't work that way I'm afraid. Dynamically loaded or created (i.e.
> drawing API) content can't be duplicated.
>
> --
> -------------------------------
> Remove '_spamkiller_' to mail
> -------------------------------
>
>


Inspiring
September 15, 2006
Just doesn't work that way I'm afraid. Dynamically loaded or created (i.e.
drawing API) content can't be duplicated.

--
-------------------------------
Remove '_spamkiller_' to mail
-------------------------------