createEmptyMovieClip always below other layers?
by Carl Fink » Wed, 28 Jan 2004 03:48:06 GMT
I'm using createEmptyMovieClip() to make, well, an empty MovieClip, in which I then draw a TextField using createTextField().
The trouble is, even though I tell the routine to put the empty MovieClip on layer 9999, the TextField appears *behind* items on layer 10. Is this expected behavior? Any workarounds?
I did do some web searching and found no other mention of this problem.
Here's the code in question:
if (this.tipText.length > 0) {
this.createEmptyMovieClip("the_tip_MC", 9999);
with (this.the_tip_MC) {
var clipBounds = getBounds(_root.invisoBackground);
createTextField("tipText", 9999, 10, 20, 100, 20);
tipText.border = true;
tipText.autosize = "left";
tipText.backgroundColor = 0xFFFFCC;
tipText.background = true;
tipText.text = this.tipText;
myFormat = new TextFormat();
myFormat.font="_sans";
tipText.setTextFormat(myFormat);
}
}
--
Carl Fink
Please respond to the newsgroup only.
Re: createEmptyMovieClip always below other layers?
by PierreAlain » Wed, 28 Jan 2004 04:05:20 GMT
as far as I experienced, the created movie clip is ABOVE all clips --in the
level it is created--. If you want it easy, create a swf witch will be
loaded level 9999 where you put your code to create the EmptyMovieClip
--
Pierre Alain
XXXX@XXXXX.COM
Similar Threads:
1.Displaying an swf below an html div layer
I'm trying to get an swf to display underneath an html div, but the browser
seems to always put the swf on the top-most layer. I read a while back when I
tried this before that it wasn't possible as the browser would always load
plug-in content top most, but I notice on thsi site (adobe.com) the menu's are
html based and display over the promo swf element within the home page. Adobe
use some fairly heavy javascript to display all the elements to their page so
trying to work it out from that is a bit hectic - if anyone can tell me the
principles to getting html divs above swfs that would be much appreciated
Thanks
Robin
2.Keeping flash below menu layers
3.createEmptyMovieClip and layer order problem
I have to use createEmptyMovieClip to create a dynamically changing movie
clip, this probem is that, it's always on the top of other movie clips on
the stage.
What can I do to prevent the movie clips not being masked by script-based
movie clip??
Thank you!
4.Looping individual layers independently of others?
so i've created a wide banner with a dozen snowflakes gently falling from top
to bottom. i copied each layer (each layer is one snowflake animation that
follows a motion guide), and then staggered it so a second flake would follow
the motion guide as the first flake was almost at the bottom. i could keep
doing this so that the snowfall looks continuous, but i was wondering if anyone
knew a way to tell each INDIVIDUAL snowflake layer to loop immediately after
paying, independent of how far along the other snowflakes were on their own
paths. when i try looping just one layer using simple action scripting (i'm a
TOTAL newb), the flake doesn't fall again until the last of the dozen has
finished its animation...so it looks the same as when the entire scene loops.
i'm a bit of a flash retard, so include even the really obvious stuff if you
have any suggestions :) :) :P
5.controling the layer level of createEmptyMovieClip
I can't get a mc from the main movie to be on top of a mc that is created dynamically
carry
6. createEmptyMovieClip on bottom layer?
7. loadMovie/createEmptyMovieClip depth layer
8. createEmptyMovieClip and layers