Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ppc_michael

Guest
Original poster
Apr 26, 2005
1,498
2
Los Angeles, CA
I'm trying to make a Flash video player with custom controls. I have all of that figured out. The final feat is that I would like to use the same SWF to load different video files on different pages. I'm accomplishing this by passing an argument, and that's no problem.

My last little obstacle is that the videos are different widths and heights. I'd like my player controls to remain in their relative positions within the SWF, no matter how the SWF is sized in the HTML embedding code. I've turned off scaling with "noscale," but I cannot figure out how I can make my SWF aware of its own embedded size so that it can calculate where to place the controls on the stage with AS3.

I was wondering if anyone has any tips or pointers for this as I research and experiment?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.