flash selected resizing

  • mrvix
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Jun 15, 2006
  • Posts: 7
  • Loc: Hong Kong
  • Status: Offline

Post March 14th, 2007, 5:15 am

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
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post March 14th, 2007, 5:15 am

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post March 14th, 2007, 6:10 am

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
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”

Post Information

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

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.