Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > Adobe Web Programming > ActionScript
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 1st, 2009, 06:33 PM
Authorized User
 
Join Date: Aug 2008
Location: , , .
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.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
movie 1g0r Pro VB 6 1 October 13th, 2006 01:46 PM
Put a Video Clip on Web phungleon Flash (all versions) 3 September 6th, 2006 06: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



All times are GMT -4. The time now is 12:10 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.