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




About Event Handle Of Duplicate Movie Clip



at first, look the codes.


for (i = 0; i < 10; i++) {
menubtnname = _root.menubtn_mc._name + i;
yBase = 64;
space = 27.2;
menubtn_mc.duplicateMovieClip(menubtnname, i);
setProperty(menubtnname, _y, yBase + space * (i + 1));
//==========================================
_root.menubtnname.onRelease=function{
trace(some_array);
}
//===========================
}


then, the code


_root.menubtnname.onRelease=function{
trace(some_array);
}

can not run, I think that because the duplicate movie clip .

so, i want to know how to get duplicate movie clip event handle.


thank u very much!





--
David Zhang ,

msn messager ID: Digitalboy100@hotmail.com
Yahoo meassager IDigital_boy_zone@yahoo.com.cn

ÎÒÀ´×ÔÖйú£¡ I am from China!



FlashKit > Flash Help > Flash ActionScript
Posted on: 01-08-2003, 09:19 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Actionscript 2.0, Adding An Event Handle To A Button In A Movie Clip
Hey,

One of my biggest complaints has been Flash's Actionscripting IDE and since moving from 6.0 to 8.0 I started to look for an Actionscript IDE with intellisense; and found FlashDevelop. To be frank, I've been very impressed with it and have been looking for ways of removing most, if not all, AS scripting from Flash and putting that into FlashDevelop and simply import the appropriate classes / code.

So far so good - however, I've hit a bit of a brick wall with something. Basically, I've created a MovieClip in Flash, set the appropriate AS Class 2.0 identifier through the library properities and then created the class defintion in FlashDevelop - this is working fine and some trace statements in the initialiser prove its linking OK. Within the movie I've got a button at Frame 10 whose event I want to wire/capture in my class and then perform the appropriate actions, I've tried adding an event handler and it doesn't work and I feel my AS jargon hasn't been good enough to get/location a solution from Google.

So, within my AS 2.0 class that is linked to a movieclip I want to capture the 'click' event of a button through code and run some code. Can anyone point me in the right direction?

Cheers

M

I Just Can't Handle It... Movie Clip.
I have created a movie clip in fireworks and i want to use it as my intro page for my site.

Only problem is that it loops, and loops and loops more and i only want it to play only once.

I have read a couple of different tutorials and some say export as .swf and import in flash, then it is editable... another read save as a .png and open directly from flash... either way once i preview, my movie clip keeps playing even when i add a stop; to the timeline...

Can anyone enlighten me the step-by-step from taking loop out of my movie clip in fireworks to finally uploading to my web site?

This really would make my hair return to it's natural colour rather than a tinted-grey.... oh the annoyance.... PLEASE HELP i cry!

Robbie

Is It Possible To Handle A Timeline Of An Empy Movie Clip?
Hello friends, how are you all?

I'm posting this thread to find out if it's possible to handle with the timeline of a dynamically created movie clip. Things like insert keyframes on it, for example.

If this is possible, I would appreciate your help to find out how it works. Besides it, thanx for your attention!!!

And hohoho , merry christmas for you all!!!

How To Get Handle To Control De Dynamically Added Movie Clip
hi everybody,

I'm using Flash mx 2004. And i'm supposed to make a calendar which have some funcitonalaity like when i'm clicked one date its color field to be changed according to the conditions apply.
Now my query is i'm dynamically adding each date as a MC from Lib., for a month (its about 35 dy. MC i.e 7 x 5weeks)

Can i get handle or control the which movie clip was clicked to change the properties. like color and text alpha etc.

It could be a silly thing. But i'm a beginner pls help me. I'm stuck upon with these things.

Thanx in adv.

Duplicate Movie Being Called By Mouse Event
Hello All

I am trying to put together a slot machine game. I have created a movie clip with a scrolling movie("scroll")that I need to duplicate for each slot window. I want the visibility and duplication to happen on a mouse release("pullbar")as well as the sound clip to play(separate from the movie clip. I have tried everything I can thing of and I can not seem to get it to work. Please can any one help?!?

Cacki927

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

Handle DataGrid Event
Hi all,
i use DataGrid and i need event when data is loaded to select some rows where data from row.somecolumn is etc. value 1 note i need all columns from this row.

Event Handlers And Callbacks - How To Handle?
I'm writing an actionscript class. I'm wondering how to deal with call backs and event handlers within my class. In particular, I'm wondering how I might structure my class so that developers using it can choose which arguments get passed to the callback function as they code. I've been googling and haven't found any particularly useful information on this.

As far as I can tell, it would appear that the parameters passed to any callback function are determined at the time I write my class as this anonymous function example illustrates.

Code:
var myObj:Object = new MyClass('foo', 'bar');
myObj.onLoad = function(arg) {
// the args passed to this anonymous function are dictated by the actionscript defnining MyClass
};
I have also seen an approach using named functions and a class method for setting the event handler which allows a developer to pass some object to be used for scoping the named function but this also results in the parameters for the callback being predetermined by the actionscript that defines the class

Code:
function myLoad(arg) {
// the args passed to this function are also dictated by the actionscript defining MyClass
}
var myObj:Object = new MyClass('foo', 'bar');
myObj.setOnLoadHandler(this, 'myLoad');
As far as I can tell, neither approach would let a developer specify any parameters for the callback functions (onLoad() in the first example, myLoad() in the second example). Which of these approaches is considered 'best practice'? Also, what would I do if I wanted to specify that the callback should operate on a particular movieclip on my timeline? How can I pass that movieclip's parameter to the callback function?

How Do You Handle The MouseOver Event When You Have Children In Your MC ?
The mouse operator works only when it is not over a movieClip child.

Should I add an additional shape in front of my MovieClip for the mouse ?

thanks

Event Handlers And Callbacks: Best Way To Handle?
I'm writing an actionscript class. I'm wondering how to deal with call backs and event handlers within my class. In particular, I'm wondering how I might structure my class so that developers using it can choose which arguments get passed to the callback function as they code. I've been googling and haven't found any particularly useful information on this.

As far as I can tell, it would appear that the parameters passed to any callback function are determined at the time I write my class as this anonymous function example illustrates.
var myObj:Object = new MyClass('foo', 'bar');
myObj.onLoad = function(arg) {
// the args passed to this anonymous function are dictated by the actionscript defnining MyClass
};

I have also seen an approach using named functions and a class method for setting the event handler which allows a developer to pass some object to be used for scoping the named function but this also results in the parameters for the callback being predetermined by the actionscript that defines the class
function myLoad(arg) {
// the args passed to this function are also dictated by the actionscript defining MyClass
}
var myObj:Object = new MyClass('foo', 'bar');
myObj.setOnLoadHandler(this, 'myLoad');


As far as I can tell, neither approach would let a developer specify any parameters for the callback functions (onLoad() in the first example, myLoad() in the second example). Which of these approaches is considered 'best practice'? Also, what would I do if I wanted to specify that the callback should operate on a particular movieclip on my timeline? How can I pass that movieclip's parameter to the callback function?

Handle Stage RESIZE.Event
I've a flash site 100x100% in browser window.
When I open new tab in browser window Event.RESIZE doesn't dispatched.
Have any idea how to handle this event except EnterFrame or Timer listeners?

Using Movie Clip Event Handler Function, But Not For A Movie Clip
Let's say I have the following code:

----------------------------------------------
var initObj = new Object();
initObj.mood = "happy";
mc = attachMovie("mcBox","instBox",100,initObj);
mc.onPress = boxPress;

function boxPress() {
trace("Box mood: " + this.mood);
}
----------------------------------------------

Now, let's say there are times that I want to call boxPress() other than when the onPress event happens. Is there a way I can set up an object, give it a "mood" property, and then run boxPress() so that it uses my non-movieclip object instead of a movie clip?

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);
}

Event Handlers / Callbacks - How To Pass Args? Best Way To Handle?
I'm writing an actionscript class. I'm wondering how to deal with call backs and event handlers within my class. In particular, I'm wondering how I might structure my class so that developers using it can choose which arguments get passed to the callback function as they code. I've been googling and haven't found any particularly useful information on this.

As far as I can tell, it would appear that the parameters passed to any callback function are determined at the time I write my class as this anonymous function example illustrates.

Code:
var myObj:Object = new MyClass('foo', 'bar');
myObj.onLoad = function(arg) {
// the args passed to this anonymous function are dictated by the actionscript defnining MyClass
};
I have also seen an approach using named functions and a class method for setting the event handler which allows a developer to pass some object to be used for scoping the named function but this also results in the parameters for the callback being predetermined by the actionscript that defines the class

Code:
function myLoad(arg) {
// the args passed to this function are also dictated by the actionscript defining MyClass
}
var myObj:Object = new MyClass('foo', 'bar');
myObj.setOnLoadHandler(this, 'myLoad');
As far as I can tell, neither approach would let a developer specify any parameters for the callback functions (onLoad() in the first example, myLoad() in the second example). Which of these approaches is considered 'best practice'? Also, what would I do if I wanted to specify that the callback should operate on a particular movieclip on my timeline? How can I pass that movieclip's parameter to the callback function?

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.........

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]

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...

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

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

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?

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.

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);

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.

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

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!

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

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?

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");
}

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++;
}
}

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

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;
}

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

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...)

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

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!

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.-

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?

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 =-

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......

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

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.

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

Duplicate Movie Clip
how do you use this? I dont get it.

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)

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

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

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

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

Copyright © 2005-08 www.BigResource.com, All rights reserved