Hi, tader! Welcome to TSDN!
If the falsh movie is yours, or if you have access to manipulate the code you will need to use the
ExternalInterface to add callbacks so you can call movie function from javascript, you can make a function in flash to return the dimensions of the movie and from javascript call that function and embed the flash movie with the returned values.
I also reccomend you not to use the pure html object/embed way, use the
SWFObject script, is much more secure, customizable and easy.
If the movie isn't yours, or you do not have access to modify the code, one alternative is making a movie large enough to fit -almost- any movie, the load the movie from within your flash movie into another movieclip with the loadMovie method.
I can only think of that, becasue there's no way I know to get the dimensions of a flash movie you don't have access to.
Kind regards,
The_Nephilim
hello everyone!
so i got this question can anyone help me with this
so i got this flash file test.swf it's width is 350 and height 200
and teen you need to put that flash into the web you need to write like this
<object width="350" height="200">
<param name="movie" value="test.swf">
<embed src="test.swf" width="350" height="200">
</embed>
</object>
buy what if i don't know the width ant height i just got the flash url
can anyone tell me how to get flash width and height when you got only the flash url?