all groups > flash actionscript > april 2007 >
You're in the

flash actionscript

group:

Sizing dynamic movie clips


Sizing dynamic movie clips Germ77
4/30/2007 4:32:51 PM
flash actionscript:
I have a project I am working on that has a scroll window on the main page and
the movie clip displayed in it changes. All of the movie clips that get
displayed in the scroll window are all dynamically made through actionscript
loading all of the info from PERL scripts usingLoadVars().

For some reason I cannot figure out yet there is like a full page worth of
empty space at the bottom of each movie clip so as you scroll down once you hit
the end of the content it will still scroll down atleast another page worth.
Any ideas how I can stop that so the scrolling will stop when the content ends?
Re: Sizing dynamic movie clips MotionMaker
4/30/2007 6:47:10 PM
MovieClip _height and _width properties are never larger than the content
inside.

If you are moving the MovieClip using the _x or _ y property perhaps it is
possible the scroller is miscalculating.


Re: Sizing dynamic movie clips Germ77
4/30/2007 7:14:29 PM
Thats what I was thinking as well, Any ideas what I would look for to find what
is causing the problem? as far as I can tell everything is just blank, and if I
manually set the height value for the movie clip it does squish everything and
still include the blank space so it looks like flash thinks something is there.

Or is there a way I can set the height of the movie clip forcing it to cut off
anything below? adjusting the height value just forces the entire movie to
display into that size, cutting it off at that height value would resolve my
problem as well.
Re: Sizing dynamic movie clips MotionMaker
5/1/2007 1:24:00 AM
The blank space needs to be identified. Something in the clip is making it
larger than what you see. That item could have the visible property false or
alpha of 0. It could be a mask. It could something with the same color as the
background.
Again the _height and _width property are reporting the distance the contents
of the clip are creating and not one pixel more.

Re: Sizing dynamic movie clips Germ77
5/1/2007 3:06:32 PM
Found the problem and just figured I would post it, thanks for the help
MotionMaker.

It was a chart that I have a function for, it just draws a chart and reads in
a pile of values and percentages, I had all of the createTextField()'s Y values
set higher than they needed to be, it looks like it was adding all of the
whitespace.
Re: Sizing dynamic movie clips MotionMaker
5/1/2007 3:50:05 PM
AddThis Social Bookmark Button