View Full Version : duplicate movie clip problem
mohittaunk
03-02-2009, 09:11 AM
Hi friends,
I have some problem in duplicate movie clip event. when i click the button first time. One more movie clip is create. But again clicking the button movie clip is not create. Only previous movie clip is display.
I want to create more movie clip after clicking the button.
Plz help to solve this problem.
Here is the url.
http://www.mgsnagpur.org/practice/sendData/practice.htm
Thanks in Advance
Mohit
kkbbcute
03-02-2009, 12:36 PM
Are you sure you didn't overwrite the old MC by replacing it with another MC with the same depth?
cjx3711
03-03-2009, 02:11 AM
you need to get the next highest depth in the depth parameter.
mohittaunk
03-03-2009, 04:30 AM
I am using following script for duplicate movie on button event.
on (press) {
i = i + 1;
duplicateMovieClip (_root.circle, "circle" + i, i);
circle._x = random(250);
circle._y = random(150);
circle._alpha = 100;
}
But its not work.
What's the problem in this script. This script is run in flash 5, mx, and mx 2004. But it is not working in flash 8.
Plz Tell me why?
ruchi18
03-03-2009, 06:37 AM
did you set the linkage id of of movieclip if not then go to library n on right clicking the movie clip click on linkage a dialog box appears click the check box of "Export for actionscript" then it will defenitly works bcs your code is correct may be you did not set the linkage property.............
mohittaunk
03-03-2009, 06:41 AM
Thanks a lot buddy.
It is really working. I change this code: duplicateMovieClip (_root.circle, "circle" + i, i);
"To" duplicateMovieClip (_root.circle, "circle" + i, getNextHighestDepth());
I update this at http://www.mgsnagpur.org/practice/sendData/practice.htm
---------------------------------------
At present after submit button only one data(Instance Name, X possion and Y possion) is sent. I collect the data in different variable and send it to PHP. In PHP i save the value in text file.
But i want to more than 1 data of value after send. Can i save the value in three different array. How can i do?
Plz guide me.
Thanks
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.