Name: Anonymous 2008-02-25 19:20
I want a page to display a Flash object. This object's parameters (height, width and filename) are initially unknown. The filename is fed via a variable elsewhere in the code. Depending on the parameters, a different Flash file may play.
Now, the tricky part is getting every Flash to display under the right size - or at least, under the right proportions. Is there some way I can retrieve the height and width from the file using HTML/PHP in a way that's universal to all the files that will play?
The crude way is to predefine a "frame" of sorts where the file plays, where it takes up all the space it needs while remaining in proportion. The problem here is that all the unused space still shows up. I hope there is a more elegant way to go about this...
Now, the tricky part is getting every Flash to display under the right size - or at least, under the right proportions. Is there some way I can retrieve the height and width from the file using HTML/PHP in a way that's universal to all the files that will play?
The crude way is to predefine a "frame" of sorts where the file plays, where it takes up all the space it needs while remaining in proportion. The problem here is that all the unused space still shows up. I hope there is a more elegant way to go about this...