Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > ActionScript
ActionScript Discuss the Adobe Actionscript language
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ActionScript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 1st, 2009, 06:33 PM
Authorized User
Join Date: Aug 2008
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default problems with duplicate movie clip

I am writing a function that is duplicating a movie clip and put it on the stage.
My problem is that when I test my function the duplicate movies are put in left corner of the stage at (0,0), and I what the to be on the center of the stage.
Here is my function:

function createBord() {
for(count = 0; count < 12; count++) {
_root.attachMovie("border_mc", "border_mc", _root.getNextHighestDepth());
_root.border_mc.duplicateMovieClip("bord"+count, _root.getNextHighestDepth());
eval("bord"+count)._x = (count%4)*180;
eval("bord"+count)._y = Math.floor(count/4)*180;

Thank you.

Similar Threads
Thread Thread Starter Forum Replies Last Post
movie 1g0r Pro VB 6 1 October 13th, 2006 12:46 PM
Put a Video Clip on Web phungleon Flash (all versions) 3 September 6th, 2006 05:33 AM
Duplicate problems lizhaskin Access VBA 1 January 17th, 2006 03:51 PM
Movie Clip won't tween after colour changed jaucourt Flash (all versions) 2 December 22nd, 2004 06:56 AM
form must be maximaized . dont have clip control haahoou Beginning VB 6 6 January 21st, 2004 05:42 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.