getTimer() and duplicateMovieClip()

This is a discussion on "getTimer() and duplicateMovieClip()" within the Flash & Multimedia Forum section. This forum, and the thread "getTimer() and duplicateMovieClip() are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Sep 23rd, 2007, 18:56
Reputable Member
Join Date: Jan 2004
Location: California
Age: 19
Posts: 209
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to tox0tes
getTimer() and duplicateMovieClip()

I am trying to duplicate a movieclip 2 seconds after the movie started playing, but with the following code, it keeps duplicating infinitely. I only want one duplicate to be created. How would I do this?

Code: Select all
  
timeElapsed=getTimer();

if (timeElapsed == 2000)
{      
enemyCounter++;
_root.enemy.duplicateMovieClip( "enemy"+enemyCounter, enemyCounter );
}
Reply With Quote

Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using getTimer() tox0tes Flash & Multimedia Forum 3 Sep 26th, 2007 06:54
Flash duplicateMovieClip over time buzcajun Flash & Multimedia Forum 8 Jan 11th, 2007 08:54


All times are GMT. The time now is 12:08.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43