Hey, all!
I thought i’d start this thread to uncover peoples habits and practices when it comes to the simple operation of adding and removing elements on stage. I ask because there are so many alternatives, and I keep wondering what might be the best/most eficcient way of doing it. Let me explain by giving an example:
Your user has chosen to click that flashing button that says “Sign up for our mailing list” and you need to prompt the user for a valid e-mail address by presenting him/her with an alert box on top of everything else. Do you…
a) gotoAndStop(“alertbox”);
b) alertBox_mc.gotoAndStop(“show”);
c) this.attachMovie(“alertBox_mc”, “alertBox_mc”, 99);
d) alertBox_mc._x = 200;
alertBox_mc._y = 200;
(assuming mc was first placed off stage)
e) alertBox_mc._visible = true;
f) alertBox_mc._alpha = 100;
or
g) this.createEmptyMovieClip(“alertBox_mc”, 99);
alertBox_mc.createTextField(“header”, …
…and so on (create everything is from AS)
…or anything else you might prefer. Of course, different situations call for different solutions, but which one do you find yourself using the most?
Option a and c are my personal weapons of choice, but they come with a few drawbacks. I.e. option a would require you to work with a potentially large number of mc’s on stage that in idle state only display as tiny, white dots (while authoring), and when there are 10 of them on stage they become hard to tell apart. Often times I find myself clicking 4 or 5 of them before finding the right one.
Please contribute!
Øyvind, Oslo, Norway.