Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Trouble With Duplicate Movie Clip


Can I duplicate movie on to second level movie
like this:

I have movie "two" in movie "one"

duplicateMovieClip
(_root.one.two, "_root.one.two2" , (i+111));
setProperty("_root.one.two2", _x, 40);
setProperty("_root.one.two2", _y, 80);

this doesn't work to me

any sugestion please

Tnx
Cash




FlashKit > Flash Help > Flash ActionScript
Posted on: 02-27-2002, 12:00 PM


View Complete Forum Thread with Replies

Sponsored Links:

Having Trouble With Duplicate Movie Clip
for some reason when I am doing this mouse trailer there is one straggler that jus gets left behind and sits in one place.(flash5)Here is my code
frame1

Code:
startDrag (_root.drg, true);
frame2

Code:
CopyCount = CopyCount+1;
duplicateMovieClip (_root.drg, drg+CopyCount, CopyCount);
frame3

Code:
if (CopyCount > 60) {
CopyCount = 1;
}
gotoAndPlay (2);
a sample is here http://www.angelfire.com/fl3/binarys...straggler.html

the source fla is here
http://www.angelfire.com/fl3/binarys...s/greendrg.flajust right click and save as for the fla file

View Replies !    View Related
OPPS Having Trouble Getting Movie With In A Movie To Duplicate...
I created a different thread here, because i have attached the "correct" file this time, its not 0kb...lol

the problem that im having is that i need a movie clip to dupliacte a movie clip with in the first clip. confused yet? lets say numbers is the first movie clip in a movie. number contains a movie clip called line. I need line to duplicate within the numbers movie clip. I have tested it and all i can get is the first line to create...the rest seem to create but are not shown. I say seem to because the debug option shows all the lines getting created...but not visible...

HELP!!!

I do appreachite all the help...

De-Zypher

View Replies !    View Related
Duplicate Movie Clip / Remove Movie Clip Woes
I have built a an MC that will Duplicate an MC it does this a specified 114 times.

Once all of the MCs are in the Movie I want to pick a movie clip and remove it randomly. I am doing this now but It takes to long because it is looking for numbers that are no longer existant instead of just going for the ones that are already there.

I was talking to one of the programmers at my work and he was telling me to build an array that adds in a each duplicate mc name

for instance
amount = 1
I have 114 boxes each box as it is duplicated gets renamed box + amount
amount + 1
until it gets to 114
then it looks for each box1 - box 114 and gets rid of each box 1 - 114

But how could I get it so I remove lets say box 84 it wont look for 84 for any more

I was thinking

I dynamically rename every mc > 85 to name amount - 1

and have it randomly look for 113 the next time around and so on til it finally gets to zero...

Any one have any suggestions for me?

Or if you can point me in a direction that would be good as well

Thanks a bunch

View Replies !    View Related
Assigning Functions For Movie Clips Generated Through Duplicate Movie Clip Loop
I want to write different RollOver events for movie clips. These movie clips are generated by a for loop(duplicateMovieClip). My idea is to have a code like

clip_mc+i.onRollOver = function()
{
clip_mc+i.gotoAndPlay(2);
}

View Replies !    View Related
Flash 5 - Load Movie, And Duplicate Movie Clip? URGENT
I have a database of swfs. I'm loading a swf into a movieclip. When I duplicate that movie clip, it duplicates but the loaded swf does not duplicate with it. I've tried using attachMovieclip and I get the same result. Any ideas for a work around?
Duplicate and attach only seem to work when the asset already resides inside the movie clip....is this right? PLEASE HELP!!!!!
Thanx guys.........

View Replies !    View Related
Duplicate Movie Clip
can some 1 teach me how to duplicate movie clip


i wann to duplicate a movie clip that contains a input textbox accounding to the user inpit.

lets say i let the user enter how many times he want to duplicate
then the inputtext box will be duplicate n times according to the user requirements
can this be done???
please tell me wat the action script should be

thanks a million guys


[Edited by Scorpian on 07-04-2001 at 05:01 AM]

View Replies !    View Related
Duplicate Movie Clip
I want to get a grasp on the duplicateMovieClip function... and have the following code:

pic1.duplicateMovieClip(pic2, 100);
setProperty (pic2, _x, getProperty (pic, _x) + 20));

"pic1" is a movie clip with a graphic in it, and I thought this code would copy the contents of the "pic1" MC to a new movie called "pic2," place it on the stage with _x property twenty to the right of pic1... but the clip does not appear on the stage.

Does anyone know how to properly use this function? I can;t see a tutorial anywhere around here...

View Replies !    View Related
Duplicate Movie Clip..
I've been trying to do this on my own for about 2 hours, and no matter what I do it just doesn't want to work for me. What I need to do is place a bullet hole on the wall every time the user clicks the mouse. The problem is, once I leave a bullet hole and click the mouse again, that bullet hole disappears and/or just moves over to where the user clicked the second time. I want the bullet holes to stay put on the wall. Here's the code I'm using right now:


Code:
on (press) {
setProperty ("/curX", _visible, true);
tellTarget ("/snd") {
gotoAndPlay ("GunShot");
}
setProperty ("/curX", _x, getProperty("/cur", _x));
setProperty ("/curX", _y, getProperty("/cur", _y));
n = n + 1;
duplicateMovieClip("/frag",n, 10);
setProperty (n, _x, getProperty("/cur", _x));
setProperty (n, _y, getProperty("/cur", _y));
}
cur is the gun cursor.
curX is the spark graphic from the gunshot.
frag is the bullet hole.

Does anyone see anything wrong with this code which would prevent it from working correctly? I'm almost sure it's the n = n + 1; line but I could be wrong. Any help at all would be appreciated

View Replies !    View Related
Duplicate Movie Clip
i have a movie clip with a dynamic text field in it. it gets populated through a load variables call to a php script (which is reading from a database). if i duplicate the movie clip is there a way that i can change the variable name of the text field each time the clip is duplicated so that i may populate each movie clip with different rows from the database?

-andy

View Replies !    View Related
Duplicate Movie Clip
Is there any way to specify a location of a duplicate movie clip when duplicating it.

I have a box I want to duplicate directly below when I hit a button. can I do this?

View Replies !    View Related
Duplicate Movie Clip
How do I make a button to run a Movie Clip and when clicked, the button will duplicate the Movie Clip while still running the previous movie clip(s)? Also how would I remove each clip?

Any suggestions?

Thanks.

View Replies !    View Related
Duplicate Movie Clip
is it possible to duplicate a movie clip that is not in the same timeline as the action.
for example, is this legal:::
duplicateMovieClip("/myClip", "newClip", 1);

View Replies !    View Related
Duplicate Movie Clip
I want to duplicate a movie clip like:

In the 1st Frame:
_root.px.duplicateMovieClip("px" +n,n);
_root["px"+n]._x = random(377);
_root["px"+n]._y = random(60);



In the Last Frame:
removeMovieClip("px" + (n - 1));
n++;
gotoAndPlay(1);

How I Can Duplicate more Movie Clips? And how can i set a time limit in it for every clip.

View Replies !    View Related
Duplicate Movie Clip Help
Hi-

when duplicating a movie clip how can u determine how many times to duplicate and also can u change the duplicates _x and _y values so u could make a shape?


cheers


Niall

View Replies !    View Related
Duplicate A Movie Clip
I have created a movie clip, actually it is a button but you know what i mean. Im tying to duplicate the clip b/c im trying to make 6 buttons for my web page. 0 through 5. The problem im haveing is that when you select the clip you want to duplicate. When I try to edit the duplicated clip it changes the main clip or button. Please help me Im new to the flash scene. Thanks!

View Replies !    View Related
Duplicate Movie Clip
hay .. guys .. flash pro right here ...
i read this somewhere in this site ..
it was a really cool effect ...
but i have a problem .. i just want this to be continues ..
i tried many things but still i couldnt figure it out ...
it is a double movie clip action ... built on idea to copy and paste in other places as the real author said .. infact this MC ... contain text .. this text is bieng copied and pasted in number of places .. the whole text scroll down ... and it changes _alpha ..
now the problem is that it takes som seconds then it gets over ..
my code is this way ..
the frame code is :


total = 300;
// change total number of texts
i = 20;
while (i<total) {
duplicateMovieClip ("text", "text" add i, i);
setProperty ("text" add i, _x, random(300));
setProperty ("text" add i, _y, 0-random(2000));
setProperty ("text" add i, _xscale, random(70));
setProperty ("text" add i, _yscale, random(70));
i += 1;
}




and the movie clip self code is :


onClipEvent (load) {
x = this._x;
y = this._y;
i = 0;
getnewalpha = true;
}
onClipEvent (enterFrame) {
this._y = y+i;
i +=1;
if (getnewalpha == true) {
targetalpha = random(50);
getnewalpha = false;
}
alphaspeed = 0.4;
alpha_increase = (targetalpha-this._alpha)*alphaspeed;
this._alpha += alpha_increase;
if (this._alpha<targetalpha) {
getnewalpha = true;
}
}



well ... try to figure out how to make it continues .. you can find an example in here :

http://www.alertsites.be/example/example.html

http://www.alertsites.be/example/example.fla


please reply me
thanx

View Replies !    View Related
Duplicate Movie Clip
hi,

On the scene I want 2 insects.I scripted one insect movie,when you click it,it gets crushed.Then ý duplicate it but when ý click on the second movie clip ,still first one crushs.Can you tell me what to do to crush the second one?

View Replies !    View Related
Duplicate Movie Clip?
I have a movie clip which is an short animation of smoke rising. I have a button that when clicked plays the animation from a frame label. What I want to happen is the movie clip to keep being duplicated over the previous one every time the button is pressed and play through the animation. I tried this but it only plays the one frame in the mc with the frame label nosesmoke, it doesnt play through the mc. Tried just a frame number but same thing. Any ideas?
on (press) {
duplicateMovieClip("rightnose", "dup", 1);
dup.gotoAndPlay("nosesmoke");
}

View Replies !    View Related
Duplicate Movie Clip
I want a bullet to fly up the screen when the user presses space. What is wrong with this code? The following code is the only code for the bullet mc




onClipEvent (load) {
counter = 1;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE)) {
duplicateMovieClip (this, "a"+counter, 10+counter);
setProperty (this, _y, this._y-=10);
counter++;
}
}

View Replies !    View Related
Duplicate Movie Clip?
This is kind of a beginner question, but I haven't ever really worked with this and I just wondered how it works. (I already searched tutorials and other board posts with no avail)

So what exactly does duplicatemovieclip do and how do you use it?

Thanks!

Katie

View Replies !    View Related
Duplicate Movie Clip
Hi I am having a hard time with this. I am doing an effect kind of like the yugop navigation that moves back and forth dependent on the _xmouse position. That part works like a dream, but what I can't get to work correctly is the duplication of my one movie clip (contains a jpg) so that it appears to loop continuously.

It actually does duplicate about 2 or three times and then stops and runs off the screen.
Below is the code that I am using on my movie clip called 'image' which is in another *blank* movie clip called 'foto'

Any ideas what might be wrong??

Thank you in advance...

m = 0;
tmi = 2;
while (m<(tmi*2)-2) {
m++;
dup = 'image' add m;
_root.foto.image.duplicateMovieClip(dup, m+1);
_root.foto.image1._y = _root.foto.image._y+_root.foto.image._height;
_root.foto.image2._y = _root.foto.image._y-_root.foto.image._height;
}

View Replies !    View Related
Duplicate Movie Clip
is there an easy way to duplicate a movie clip on a parent level? I have a scrolling image library by using a formula to set a movie clip's x position according to where the mouse is...creating a scroll effect. anyway, when i dup a movie clip it is duplicated in the same clip which is scrolling, so it also scrolls. I want to be able to dup the clip (which is an image) so that it stays stationary while the user can still scroll using the mouse.

helf

View Replies !    View Related
Duplicate Movie Clip
i'm creating a screensaver using flash which keeps on
duplicating movieclips.
i wonder, is there a limit to how many movieclips you can duplicate? (i've got up to 5000 now, seems to be ok...)

View Replies !    View Related
Duplicate Movie Clip
Hello

I just want to duplicate a movie clip by dlicking and dragging the same movie clip on the scene. Is it possible? If yes, please help me.

Regards
Jayakumar

View Replies !    View Related
Duplicate Movie Clip?
OKay, i've got a situation:
I want to make a little something...you have this button, and you can drage it, but as soon as you start dragging it, a new one comes back at the same place, and you can take new buttons for infinity. But i want it that once you dragged a button, u can still drag it afterwards! how do i do that? I don't know that much about actionscript, at least i never used the DuplicateMovieClip functiun, i'm pretty good with hitTest and stuff, but not this, PLEASE HELP ME THIS IS A CRY FOR HELP!

View Replies !    View Related
Duplicate Movie Clip
Hi there!

Any body can tell me how to solve my problem?

I have a problem: I am duplicating a movie clip using the for condition and a counter variable. My _mc contains a button that loads a .jpg instead other holder _mc with the onRelease event. I duplicate the _mc 5 times and I want each button loads 5 diferent .jpgs.

My problem is that I duplicate the _mc well but their buttons ever load the same .jpg

Help please!

cheers.

Les.-

View Replies !    View Related
Need SOS Help With Duplicate Movie Clip
i did this simple code
_root.duplicateMovieClip ("bbb","zzz",15);
_root["zzz"]._x=800;
where bbb is a movie clip instance name
when i run this i dont see the duplicated movie clip why?

View Replies !    View Related
Duplicate Movie Clip
OK I am going Nucking Futs trying to find a tut or something that will show me the correct way to use duplicate movie clip. Here is what I'm running and how I'm using it. I have created a 3d walkthrough of a house using swift 3D. I have taken the swf file that I exported and started entering actionscript and set up buttons so that when you click a certain direction you will look in that direction. I want to separate all of the directions into separate swf files (Which I have done). This is a perfect place for me to use duplicate movie clips. I have one empty clip in the main movie now and I call it "dummy01". I want to click on a certain direction ie left and run the "left" movie inside a duplicate version of the blank clip, and make it one layer above the one I'm in now. Then, I want to uload the movie when I don't need it anymore. How do I do this? I've been everywhere and looked at too many tutorials that speak a different language (And I am pretty damn good at using flash.....somewhat of an expert actually). I've tried doing this so many ways and it's hopeless!!! What the hell can I do?

-= greendog =-

View Replies !    View Related
Duplicate Movie Clip Help
i ahve a movie clip on root, i want to create many duplicate movie clips of that. the number of movieclip should be as in an external file. the movie clip has a dynamic text field. another text file has the values like: a1="abc" & a2="xyz" & ---- so on. i want that if two duplicate movieclips created, then first should contain the value of a1 in its dynamic text field and the second should contain the value of a2 in its text field. please help......

View Replies !    View Related
Duplicate Movie Clip
I am wanting to duplicate a movie clip, and have it loaded into a certain area where I can mask it. Although, when I duplicate the movie clip, it seems as if it just loads on top of itself. Is it possible to duplicate a movie clip, and have it placed into a loadMovie("anyclip")?

Thanks

View Replies !    View Related
Duplicate A Movie Clip?
Hi guysI started with a certain design for a drop down menu. I'll have 5 different places where I want to use the same menu. The design of it will be the same but the buttons for each of the 5 instances will be different ofcourse. I'm not sure if I should have only one movie and then duplicate it on the page and change it, or if I should have five different versions of that menu. If I have one movie clip for it, do I duplicate it in the library and then change the names of the buttons? I have no idea how that should be done.

View Replies !    View Related
Duplicate Movie Clip Help
hey all, am trying to dynamically produce 50 movie clips not going outside my stage, all with random x and y locations, speed and rotation, ive got this code on the movie clip i want to reproduce: (have only got as far as the position of the movies, dont know how to do rotation and easing/speed)




Code:
onClipEvent (load) {
amount = 50;
while(amount>0) {
this.duplicateMovieClip("newleaf",+i, i);
scale = (random(100) + 50)
this._x = random(500);
this._y = random(600);
this._xscale = scale;
this._yscale = scale;
}
}
{
im sure this is going down the right path but flash player freezes when i try and launch, where am i going wrong,

by the way im sorry if this has been asked before but the search function in the forums never seems to work.

thnx

9114

View Replies !    View Related
Duplicate Movie Clip
how do you use this? I dont get it.

View Replies !    View Related
Duplicate Movie Clip
i've got my mouse listener set up so the dart will follow the mouse and throw...

on the second frame of the tween i removed the listener so the toss is at a set location and doesn't follow the mouse. then at the last frame of the tween adding the listener back, and creating a duplicate movie clip so it will reload the dart at the beginning position.

here is the code for the last frame of the dart tween.

stop();
_root.dartNum += 1;
_root.checkHit();
throwAgain = "dart" + dartNum;
_root.Mouse.addListener(dartListener);
duplicateMovieClip(this,throwAgain,_root.dartNum);

and here is the code for my mouseListener

dartListener = new Object();
dartListener.onMouseMove = function()
{
dartThrow._x = _xmouse;
dartThrow._y = _ymouse;
dx = dartThrow._x;
dy = dartThrow._y;
throwAgain._x = _xmouse;
throwAgain._y = _ymouse;
}
Mouse.addListener(dartListener);


the problem, the dart won't follow the mouse (the listener doesn't recognize i guess)

View Replies !    View Related
Can I Duplicate A Movie Clip?
I downloaded this fla file from Flashkit, as I was trying to learn some new stuff and I hit an area I was unsure of.

Here is the fla:

http://www.flashkit.com/movies/Inter...9595/index.php

See those windows that pop up on the main page ("about me", "clock", etc)
Can you just duplicate those, meaning, can you make more windows like that just by duplicating the movie clips???? How the heck would you do that?

Any help would be greatly appreciated.I know I'll be up all night trying to figure it out otherwise lol

View Replies !    View Related
How To Duplicate A Movie Clip
Hello everybody. I need help with a duplicate movie.

Well, I have an MC with button properties that I need to duplicate only once when I click on it, then I want that duplicate to do the same.
The duplicates will change only its _X position.

Exemple:
When I click on object 1 it will duplicate, let's call this duplicate object 2, then when I click on object 2 it will duplicate, let's call this duplicate object 3, then
when I click on object 3 it will duplicate, let's call this duplicate object 4, and so on.

Does anybody knows how to do that?

Thanks
Halanis

View Replies !    View Related
F8 Duplicate Movie Clip
Hello,

i want to try to duplicate a movie clip, but in this movieclip, there are some other timelines, motion tweens, movieclips... Th clip i use, has a text "home". I want to duplicate it, and change the text to "about". Normally i do this with copy /paste and duplicate symbol. Give it another name, change the text inside, and that works fine.
With this movie clip, i doesnt work. When i change the text, the text of my "home" movie clip is also changed.

How do I have to do this.

I hope you understand me, English is not my great language

Tx

Ronny

The FLA is on this link

Get it here

View Replies !    View Related
Duplicate Movie Clip
hey, i made a small game and for some reason my shots share the same name as my enemies... like if i shoot long enough they start disapearing by themselves

what could posibly be the reason? the code that i have for the creation of each is:

onClipEvent (load) {
laserCounter = 0;
skeetcounter = 0;
skeettimer = 0;
}
onClipEvent (enterFrame) {
skeettimer = skeettimer+1;
if (skeettimer == 50) {
skeetcounter = skeetcounter+1;
_root.skeet.duplicateMovieClip("skeet"+skeetcounte r,skeetcounter);
_root["skeet"+skeetcounter]._x = 600;
_root["skeet"+skeetcounter]._y = Math.round(Math.random()*375)+10;
skeettimer = 0;
_root["skeet"+skeetcounter]._exist = 1;
if (skeetcounter>9) {
skeetcounter = 0;
}
}
}
onClipEvent (mouseDown) {
laserCounter = laserCounter+1;
_root.Laser.duplicateMovieClip("Laser"+laserCounte r,laserCounter);
_root["laser"+laserCounter]._exist = 1;
if (laserCounter>9) {
laserCounter = 0;
}
}

thanx for any help

View Replies !    View Related
Duplicate Movie Clip
Hi,

I thought this would be something simple. I have a movie clip that loads another movie clip within in it. (menu buttons) I need that same movie clip of menu buttons available in the main.swf at a certain point in the timeline. I thought I could just drag and drop the menu button movie clip from the library onto the main timeline and have the same functionality as I do when the menu button mc is loaded into that other mc but it doesn't work

I've tried making a duplicate in the library and renaming it but my actionscript code doesn't work when I do that.

Any ideas as to why the menu button mc functions when loaded into a different mc but doesn't work if I duplicate it in the main timeline?

thanks.

View Replies !    View Related
Duplicate Movie Clip
Hi, i'm trying to get an array which is currently traced out to be replaced with images, the code which i've attempted can be seen below,


Code:
for (i=0; i<test; i++) {
duplicateMovieClip("square"+i,i,{_x:Math.random()*(500-50)+50, _y:Math.random()*(200-50)+50});
}


If any one could point me in the right direction it would be appreciated, thanks

View Replies !    View Related
[F8] Duplicate Movie Clip
Hi i'm trying to stop my script from tracing the array out into the input window, and instead displaying it within flash.

I'm trying to get it to duplicate a movie clip for the array, using a 25x25px movie clip for each of the 100 squares which make up the array. I have attempted this and myy efforts can be seen below. But it's just not going well.

Any help welcome thanks.


Code:
boardsize = 10;
shipslength = new Array(4, 3, 2, 2, 2);
grid = new Array(boardsize);
for (i=0; i<boardsize; i++) {
grid[i] = new Array(boardsize);
for (ii=0; ii<boardsize; ii++) {
grid[i][ii] = 0;


}
}
//place ships
for (ship=0; ship<shipslength.length; ship++) {
len = shipslength[ship];
//orientation
if (Math.random()<0.5) {
w = len;
h = 1;
xstep = 1;
ystep = 0;
} else {
w = 1;
h = len;
xstep = 0;
ystep = 1;
}
//position
placed = false;
while (!placed) {
xp = random(1+boardsize-w);
yp = random(1+boardsize-h);
checkpos = 0;
for (i=0; i<len; i++) {
checkpos += grid[xp+i*xstep][yp+i*ystep];
}
if (checkpos == 0) {
for (i=0; i<len; i++) {
grid[xp+i*xstep][yp+i*ystep] = len;
}
placed = true;
}
}
}
for (i=0; i<boardsize; i++) {
trace(grid[i]);
grid[i][ii] = attachMovie("square","square"+i+"_"+ii, i*100+ii);
}

View Replies !    View Related
Duplicate Movie Clip
How to use DuplicateMovieClip function? Please provide me with an example.
Thanks.

View Replies !    View Related
Duplicate Movie Clip...
Alright, i wont pretend to be an actionScript expert, cause thats what i feel like. I used to be REALLy good a few years ago but...oh wait...i'm asking a question. sorry. lol.

When you duplicate a movie clip, eg.

for (i=10; i<20; i++){
mymovieclip.duplicatemovieclip("newmovieclip"+i, i);
}

So far great, i remember this much. But then...

what if i want to control one of the "newmovieclip"s?

Sure, i can use the setproperty method, but that isnt very powerful. eg, what if i want newmovieclip number 15 to begin expanding slowly?

I thought, is it possible to control the movie clip on depth 15 (newmovieclip number 15). But i couldnt find a way for that.

Then i remembered once using something similer to this:

"newmovieclip"[15]._xscale++;

??

That doesnt work. How do you do it? I want to be able to control newmovieclip number 15, like i would any other movie clip.

(assuming you can understand what i said (sorry!))Thanks

View Replies !    View Related
XML + Duplicate Movie Clip
Further to my previous post about arrays in text files, I thought about using XML to hold my data.

I have the following code (a modified tutorial from a book) which accesses XML data and outputs the data to text boxes.

I'd like to duplicate a movie clip that contains time, name and location fields, to create a kind of table effect.

My question is, where in this code would I put my duplicateMovieClip() code, and how would I dynamically rename it with each loop
(fyi, the movie clip I want to duplicate is called 'tableRow')

I've been trying to work this out for hours, and I'm still no closer to cracking it



contactXML = new XML();
contactXML.onLoad = transXML;

display = "Getting XML.";
contactXML.load("contacts.xml");

function transXML() {
if (this.loaded) {
display = "XML data is up.";
}

keyTag = new XML();
nodeID = new XML();
nameList = new Array();
contactList = new Array();

allEvents = this.lastChild;

eventList = allEvents.childNodes;
display = "";
for (i=0; i<=eventList.length; i++) {

if (eventList[i].nodeName.toLowerCase() == "event") {
nameList = eventList[i].childNodes;

for (nl=0; nl<=nameList.length; nl++) {
nodeID = nameList[nl];

elementID =nodeID.nodeName.toLowerCase();

rowName="tableRow"+nl;
_root.tableRow.duplicateMovieClip(rowName,nl);
rowName._y = 15;


if (elementID == "name") {
name = nodeID.firstChild.nodeValue;
trace(name);
}
if (elementID == "time") {
time = nodeID.firstChild.nodeValue;
}

if (elementID == "location") {
location = nodeID.firstChild.nodeValue;
}
}


eventTime += time+newline;
eventName += name+newline;
eventLocation += location+newline;
}
}
}



many thanks

View Replies !    View Related
Duplicate Movie Clip BEHIND
wow, I havent been here for a while... musnt have cleared out my cookies since last time though because I am still logged in

Anyway, I have been working on a banner for a new website... and I would really like to be able to have a movie clip (instance name "flash) to be duplicated behind all other layers... I have tried using a depth of -1 - but it still comes up on the top...

if its possible to have some action script like "send this MC to the back" or something, that would be sweet too

thanks XD

View Replies !    View Related
Duplicate Movie Clip
Hello.

I am making a game. In this game there is a movie clip.
Inside the movie clip there are two frames.
In the first frame, there is a button.
When you click on the button inside the movie clip,
you go to the second frame, which has another movie clip animation inside.
When you click on the button inside the movie clip,
you also get one extra point. I want to make the movie clip to duplicate itself at once time after time, and to show up in a different spot everytime.
What is the action script that I need to write?

Thanks, Neo.

View Replies !    View Related
Duplicate Movie Clip
Code:
duplicateMovieClip(car_bad, car_bad, ???)
what do you put in the depth section?

is this what tells it where to put the duplicate?

if not, how do you tell it where to put the duplicate?

View Replies !    View Related
Duplicate Movie Clip
here is a piece of code that i am having problems with

ActionScript Code:
var mcHolder:MovieClip = this.createEmptyMovieClip("holder", this.getNextHighestDepth());
var oListener:Object = new Object();
oListener.onLoadInit = function(mcTarget:MovieClip){
    resizePic(mcTarget);
};
var mclLoader:MovieClipLoader = new MovieClipLoader();
mclLoader.loadClip("wwad.jpg", "mcHolder");
mclLoader.addListener(oListener);

function resizePic(mcTarget:MovieClip){
    mcTarget._xscale = 25;
    mcTarget._yscale = 25;
}

function dup(mcTarget:MovieClip){
    mcTarget.duplicateMovieClip("mcDup", _root.getNextHighestDepth(), {_x:200, _y:200});
}
The problem in short is that i load an external pic and drop it inside of a holder. I then try to duplicate that movie clip using a function but it does not seem to work.

If anyone had any ideas please tell me. I have been stuck on this problem for a while now.

Matthew Encinas

View Replies !    View Related
Help With Duplicate Movie Clip
Hi Im new to this forum and have just a 'few' (yah right ) questions that im haveing trouble with at the moment. Any and all help will be much apprecated.
My problem is this, I am trying to load dynamic text into a dynamic text box that is inside a moviclip that was created with the duplicatemovieclip function. however when i try to do this it duplicates the movieclip just fine but the text does not go in. How do i do this?

Here is some example code that im using just to test this.


Code:
on (release) {
m=100;
amount = 10;
i=15;
while (amount>0) {
var k;
k="mc"+i;
duplicateMovieClip (_root.baseLink, k, i);
setProperty (k, _y, m);
//k is the instance of the movie clip
k.text_box.text=k;
m += 30;
i++;
amount--;
}
currently this is all happening on the main stage but eventualy i want to put it all inside a movieclip of its own.

If you need the test file that i have been using then I will be more than glad to post it.

View Replies !    View Related
Duplicate Movie Clip
I have read in my Actionscript Bible that ". . .nested instances that were created programically are not duplicated either". Can anyone confirm this?

I have a nested mc named _level0.mcWing1.dmcPiece2 that is passed into a function (passedMC) that was created programatically. I have tried to duplicate two different ways with no success.

this is the results of the trace:
mcFloorPiece> undefined this> _level0 passed> _level0.mcWing1.dmcPiece2


If duplicate won't work in this situation, what is another way to copy a movie clip other than reloading the content into a new clip?







Attach Code

function fMoveThumbToFloor(passedMC:MovieClip) {
nDepth = this.getNextHighestDepth();
// copy from
passedMC.duplicateMovieClip("mcFloorPiece", nDepth);
//duplicateMovieClip(passedMC, "mcFloorPiece", nDepth);
this.mcFloorPiece._x = 30;
this.mcFloorPiece._y = 300;
trace(" mcFloorPiece> " + mcFloorPiece + " this> " + this + " passed> " + passedMC);
}

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved