Flasher Archive

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


Subject: FLASH: duplicateMC and Setproperty behavior
From: Sergio Santos
Date: Wed, 27 Sep 2000 11:56:02 +0100

I got button on a movieclip that loads data from php into another MC. The MC that "gets" the data has the following code (for size sake I quote just one).
<code>
onClipEvent (data) {
[...]

// Mould weeks
while (n<=semanas) {
_level0.planningmovie.attachMovie("mwbox", "mouldw" add i, 60+i);
i++;
_level0.planningmovie.attachMovie("yearw", "mw" add i, 60+i);
setProperty ("../mw" add i, _x, xsemana+(step/2));
setProperty ("../mw" add i, _y, "150");
set ("_level0.planningmovie.mw" add i add ":txt", n);
_level0.colortext("mw"add i, 0xCC0000);
xsemana += step;
n++;
i++;
}
}
</code>

Ok, this works fine 90% of the time, sometimes properties aren't set in what looks to be "in time", so the clip won't appear in the right place. Pressing refresh on the browser solves it, but I want to avoid that. It seems that the set variable works ok, this is only happening in position changes.

Anyone knows of a safe way to make this never happening? I got frame rate at 12. But every attached/duped mc is a single frame movie.

Sergio


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