Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 23rd, 2003, 02:22 PM
Heretic Heretic is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Austria
Posts: 4 Heretic User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to Heretic
buggy duplicateMovieClip

I tried to duplicate a movie clip, but it doesn't work at all, the new movie Clip never appears at the right position, the new Clips don't stay long (until the next one appears), the new movie clips appear only every second mouse click...
it doesn't work properly at all.
My Code is out of the Flash help, I just removed this raandomized crap, the loop and the scale/alpha adjustments.

this is the code:

on (release)
{
duplicateMovieClip (_root.mc, "mc"+i, i);
setProperty ("mc"+i, _x, 50));
setProperty ("mc"+i, _y, 50));
i++;

}

what is wrong with this thing?

Reply With Quote
  #2  
Old July 24th, 2003, 02:14 AM
dkkz dkkz is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 50 dkkz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
without being able to see it, i can only guess.

you have an extra ")" on the setProperty lines.
it should be: setProperty ("mc"+i, _x, 50);

the question is: how do you want your new movie clips to appear on stage?

because with that script, the line i++; isn't exactly doing anything unless you put the whole thing inside a conditional statement.

Last edited by dkkz : July 24th, 2003 at 02:16 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > buggy duplicateMovieClip


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway