flash selected resizing

  • mrvix
  • Newbie
  • Newbie
  • mrvix
  • Posts: 7
  • Loc: Hong Kong

Post 3+ Months Ago

I have a swf embeded in an index. It is all vector based except for one gallery of which are pics. I want to enable the automatic shrinking of the entire swf when browswer resizing (to allow entire viewing on smaller screens) but want to restrict and further enlargement once the true (actual) size of the embeded swf has be reached. Is this possible and how do I do it?
  • 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

use javascript to get the resize event of the window. If window is bigger than the actual size of the swf make it the swf size or disable further scale (don't know if the second part is possible).
When resize happens, send to your swf the current size of the window, and in flash resize your controls.
For this you need to know about window events in javascript and about communication between javascript and swf. Check these links to see how it's done:
flash from js
flasj js command

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 22 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
 
cron
 

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