resize flash movie

  • dirksmith
  • Student
  • Student
  • dirksmith
  • Posts: 78

Post 3+ Months Ago

Hi

I'd like to automatically resize a Flash 5 movie so it opens at 600*800px - you can see an example of this here:

http://www.flashkit.com/movies/Games/Fu ... /index.php


The Flash movie size is 340*185px - but the site offers the option to open the game at different screen sizes - with the game automatically resizing to fit the screen size chosen.

Any ideas on the best way to do this?


Thanx


Dirk
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

dynamically, using javascript.
create flash object from javascript
so you'll have a javscript function like:
Code: [ Select ]
function OpenFlash(cWidth, cHeight, url)
{
  // create a new popup window in here and use the code from the link i gave you to create an object and use the parameters from the function for width and height.
}
  1. function OpenFlash(cWidth, cHeight, url)
  2. {
  3.   // create a new popup window in here and use the code from the link i gave you to create an object and use the parameters from the function for width and height.
  4. }

next, in your "<a href " tag either point to the javascript function or use onClick = "OpenFlash(parameters here)"

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 25 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.