Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: simple duplicate MC script crashing F5
From: John Dowdell
Date: Wed, 13 Sep 2000 19:46:15 +0100

At 10:29 AM 9/13/0, Matt Spiegler wrote:
>onClipEvent (enterFrame) {
> if (dupe = 1) {
> duplicateMovieClip (_root.bg1, "box2", 2);
> dupe = "2";
>
>If I remove the script everything plays fine. I'm assuming I'm somehow
>causing an infinite loop, but can't see where it's occurring. I tried to
>write the script so that it would only dupe the MC once, then quit.

I'm not practiced yet at debugging scripts via email, but are you
duplicating this same clip, or is this instruction duplicating some other
clip? What I'm wondering is whether it's getting instructions to duplicate
itself, so you get a chain of things which each duplicate themselves
once...?

I may very well be offbase, but could something like this be the case there?

(If so, then perhaps looking at issuing the "duplicate" command outside of
the duplicated clip itself, or else just putting two clips there to start,
or something like that...?)

jd





John Dowdell, Macromedia Tech Support, San Francisco CA US
Search technotes: http://www.macromedia.com/support/search/
Offlist email risks capture by the spam filters. I may not see your
email if it's not on the list. Private one-on-one email options are
available via Priority Access: http://www.macromedia.com/support/



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: simple duplicate MC script cr, Matt Spiegler

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]