HELP MY SORRY A**!
- Started
- Last post
- 19 Responses
- versa
In MX, if you create empty movie
clips with a set depth (even of 0 - or something negative), say to build just some block of color for a backdrop, how do you get the rest of the embedded content of that scene and movie sit on top of them?It seems like this should be cake , but I can never get it working, and temporarily have had to resort to loading on many levels just to complete the effect. Would rather have stuff more tight and in the root.
thanks
- ********0
uhmm layering?
- dsmith70
I take it you are creating a movie clip from actionscript?
if so, I believe 0 is the bottom and any number above that is created above that. I can't remember if I am correct or not because I always forget which way the numbers go and have to figure it out by trial and error.
- versa0
JazX -
Can you explain. I am placing my scripts all on the first base layer, and I'm creating the mcs on the fly from that base layer - and all the other elements are on layers above that layer - Am I just not seeing some simple piece here.......I don't get it...........
- versa0
anyone????????
- unformatted0
move scripts layer above all the other layers so it's your first layer.
- majman0
are you attaching MC's or swf's?
- versa0
to clarify for those trying to help -
I am just creating and animating empty mcs with script to act a backgrounds.
I will NOT be attaching mcs to them. I am trying to create them on the first layer , with all other elements residing on layers above it. How does layering affect this if I am creating mcs that require a depth assignment in the first place? I just want them to sit in the background. Seems like it shouldn't be this hard.thanks
- versa0
ahh come on ......... we were making progress (sort of)
=D
- versa0
i am talking to myself i guess
- neeko0
so youre loading external .swf's, and you want them all to be set at the same depth, but essentially in different layers? is that the idea here?
- versa0
no no............. i am creating with actionscript empty mcs that I then fill with a certain color and animate. i want to just use them as background shapes. i then the rest of the elements in the scene to sit on top of those shapes. here is some code:
this.createEmptyMovieClip ("bgdframeMC", 10);
bgdframeMC._x = 550;
bgdframeMC._y = 85;
bgdframeMC.moveTo (0, 0);
bgdframeMC.beginFill (0x202000);
bgdframeMC.lineTo (300, 0);
bgdframeMC.lineTo (300, 2);
bgdframeMC.lineTo (0, 2);
bgdframeMC.lineTo (0, 0);
bgdframeMC.endFill ();// will complete drawing of bgdframe
bgdframe_grow = function () {
stageWidth = Stage.width;
stageHeight = Stage.height;
endHeight = 400;
if (bgdframeMC._height = 400) {
bgdframeMC._height = 400;
endbgdframe_grow ();
}
}
updateAfterEvent ();
};
// called when bgdframe_grow complete
endbgdframe_grow = function () { clearInterval (bgdframeSI);gotoAndPlay (_currentframe + 1);};
//assesses bgdframe_grow speed in MilliSeconds by calling function at a set interval
bgdframeSI = setInterval (bgdframe_grow, 30);
// --------------------------------...
stop();thanks
- majman0
well, i believe the depth level is specific to each layer. so if you have an object on a depth level of 1 that resides on a layer above a second object at a higher depth level of 5, i think whichever MC is on the top most layer would still appear above. So are you creating MC's dynamically on the root level of your movie. Or are you creating them w/in other MC's?
you may want to create the MC within another MC that resides on one of the bottom layers.
don't know if any of that will help. if you posted some code it might clear some stuff up.
- majman0
so you're saying that the code is putting this object above everything else, right?
and you would prefer that it were behind everything?
i think maybe if you created it inside a movieclip that were already behind everything, you would be cool.
- versa0
majman understands!!!!!!!!
yahthanks and yes to what you said
- versa0
and yes, I am creating the empty mcs from the base layer in an actions frame, NOT from within other mcs
- majman0
so that worked then?
- versa0
working on it right now......
- versa0
majman - thanks alot
putting the code in an mc that I then arrange behind everything else works well enough .....i guess I am still confused how the depth level of dynamically created mcs relates to layering, and other externally loaded .swfs....... if i assign an mc the level of 1 on the first base layer, and then load another .swf in, say on level 10, then obviously that movie will be on top, but why does every dynamically create mc in the original .swf sit on top elements above it in the layering.......
know what I mean.............
anyways, thanks and nice personal site by the way
- majman0
no problem, glad i could help.