Flasher Archive

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


Subject: FLASH: Somebody Help me To Figure this out!
From: Sergio Santos
Date: Wed, 4 Oct 2000 12:27:30 +0100

I'm getting really lost here, I have a window made of two columns, when clicked in one of the MC's in one of the columns, it goes to the other one, and disappears on the previous. After that the mc's are duplicated again onto the same depth, except the last one that must disappear from it's current position and go on to another(upper).
Ok, so I got the following code:
//------------------------------------------------------------------------------------------------------------
onClipEvent (data) {
removeMovieClip ("/testmv1/lastunused");
removeMovieClip ("/testmv1/lastused");
this._visible = "1";
_level0.planningmovie._alpha = "20";
//USED
if (u1 ne "") {
used1:txt = u1;
used1:mould_id = mould_id;
used1:tcod = tcod1;
i = 2;
while (eval("u" add i) ne "") {
duplicateMovieClip ("used1", "used" add i, 200+i);
setProperty ("used" add i, _y, getProperty("used" add (i-1), _y)+23);
set ("used" add i add ":txt", eval("u" add i));
set ("used" add i add ":tcod", eval("tcod" add i));
i++;
}
}
setProperty ("used" add (i-1), _name, "lastused");
// UNUSED
if (un1 ne "") {
unused1:txt = un1;
unused1:mould_id = mould_id;
unused1:tcod = uncod1;
i = 2;
while (eval("un" add i) ne "") {
duplicateMovieClip ("unused1", "unused" add i, 300+i);
setProperty ("unused" add i, _y, getProperty("unused" add (i-1), _y)+23);
set ("unused" add i add ":txt", eval("un" add i));
set ("unused" add i add ":tcod", eval("uncod" add i));
i++;
}
}


setProperty ("unused" add (i-1), _name, "lastunused");
updateAfterEvent();
}

-----------------------------------------------------------------------------------------------------------

What pisses me off, is that in the right column (unused as I call it) the last movie is removed when one is moved to the other column, but that doesn't happen in the left one!.
The code is exactly mirrored, buttons on the MC's on the right column have equal actions, since I use loadvariables to trigger the action (they are being loaded from mysql through php). Everything goes 100% for the right column, and when i click an mc on the left column, the mc goes on to the right, OK, but the last one on that column isn't removed! It stays there, and then appears duplicated because the remove didn't work on it's previous location.
HELP!

Sergio
P.S - Levels are high because this movie is "on top" of lots of small mc's (static).


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