Anyone know Flash?

l6873

Senior member
Sep 9, 2005
255
0
0
I'm trying to embed test.swf, which consists of a black box with the following properties:
width:100, height:100; x:100, y:100

I also have this actionscript linked to it:

w = Stage.width;
h = Stage.height;

theBox._width = w;
theBox._height = h;

theBox._x = 0;
theBox._y = 0;

If I specify 400 and 300 as the width and height when embedding, the width is shown correctly but for some reason the height becomes 291. How would I go about correcting this?
 

shortylickens

No Lifer
Jul 15, 2003
80,287
17,081
136
:music:Flash - a-ah - saviour of the universe
Flash - a-ah - he'll save everyone of us
Ha ha ha ha ha ha ha ha ha
Flash - a-ah - he's a miracle
Flash - a-ah - king of the impossible

He's for everyone of us
Stand for everyone of us
He'll save with a mighty hand
Every man every woman
Every child - with a mighty flash

Flash - a-ah
Flash - a-ah - he'll save everyone of us

Just a man
With a man's courage
He knows nothing but a man
But he can never fail
No one but the pure in heart
May find the golden grail
Oh oh - oh oh
Flash
:music:
 

l6873

Senior member
Sep 9, 2005
255
0
0
Originally posted by: troytime
can you show the example?

how are you determining the 291px height?

Taking a screenshot and measuring. The flash object is in fact 300px in height, but there are two white bars at the top and the bottom which occupy the remaining 9 pixels. I thought setting the X and Y coordinates to 0 would solve this.

As for the example, like I said, it's basically just a black box that's 291px X 400px with white space at the top and bottom.
 

l6873

Senior member
Sep 9, 2005
255
0
0
While we're at it, how would you even get an sfw to have certain dimensions? If I have the above box with no action script, it becomes much smaller than 100X100 once embedded. I've played around with the Publish Settings but that hasn't helped a whole lot either.