Flasher Archive

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


Subject: Re: FLASH: simple duplicate MC script crashing F5
From: Matt Wobensmith
Date: Thu, 14 Sep 2000 01:51:13 +0100

Hi Matt -

>> At 10:29 AM 9/13/0, Matt Spiegler wrote:
>> >onClipEvent (enterFrame) {
>> > if (dupe = 1) {
>> > duplicateMovieClip (_root.bg1, "box2", 2);
>> > dupe = "2";


You realize that the "if" statement here is not set up right. You need to
use double equals (==) if you are comparing two values. This is new in Flash
5 ActionScript, and common with other scripting languages like JavaScript.

What's happening here is that by using a single equals, you're declaring
"dupe" to be equal to 1. This statement is always true, so this might
explain your infinite loop.

Matt


---------------
Matt Wobensmith
Macromedia
Flash Community Manager

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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


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