View Full Version : help needed for a useless newbie

05-11-2004, 08:57 AM
I was wondering if you could help me as my brain hurts from thinking this over too much and scouring books and sites :rolleyes:

is there anything i could add to this code to make movieclip2 start directly above movieclip1 (and them movie clip3 above movieclip2 etc.) no matter what value is put into the input text fields (movieData1 etc.)

_root.movieclip1._yscale = 0;
_root.movieclip2._yscale = 0;
_root.movieclip3._yscale = 0;
_root.movieclip4._yscale = 0;
_root.makeChart.onPress = function() {
_root.movieclip1._yscale = _root.movie1Data.text;
_root.movieclip2._yscale = _root.movie2Data.text;
_root.movieclip3._yscale = _root.movie3Data.text;
_root.movieclip4._yscale = _root.movie4Data.text;

05-11-2004, 09:38 AM
Have look at the Macromedia site or your Flash Dictionary for

05-11-2004, 09:40 AM
thankies :)

05-11-2004, 09:57 AM
I don't think that does what i mean in my question...but hey what do i know hehe

Does the term "depth" apply to the positon on the stage or more along the layers route. :o

05-11-2004, 10:15 AM
Every MC placed on the stage has a depth. A MC2 with depth "6" will be above an MC2 with depth "5". It's not really like a layer although it looks the same. It's more like "Send to Back"... Is this what you are looking for?

05-11-2004, 10:42 AM
Oh i see what you mean now! *feels stupid*

However that's not really what i was planning to do.

I wanted movieclip2 to be placed above movieclip1 not depth-wise but more like say, the text above is on-top of/above this text.

Sorry I'm not the greatest at explaining things but your help is more than appreciated!

05-11-2004, 01:46 PM
Mmm this seems to be more of a semantic discussion. :)

So I guess you mean "above" like: mc_1._y = 0 is above mc_2._y = 20;

If you know how long (high) your text is you can do something like:
mc_1._y = 0;
mc_2._y = 20;

mc_1._y = 0;
mc_2._y = mc_1._heigth + 20;

Hope I got it right this time :)

05-11-2004, 02:46 PM
That seems to be similar to what i'm looking for! :D

I'll have to try it tomorrow though, as I've been brutally dragged away from my beloved computer that has Flash on! :rolleyes: