HomefieldOfView | SPi-V dev

Navigation

user

getting a linked SPi-V player in Director to expand & contract with browser window

I'm trying to get a pano displayed through a linked SPi-V player in Director to expand and contract along with the browser window, as it normally would when played as a single dcr file and not as a linked cast member.

But the stage and width parameters set in the HTML page do not seem to effect the linked SPi-V content. Any content in the main parent movie, however, does stretch and contract as expected.

Is there any special procedure for preparing SPi-V so its content also stretchs to fit the browser window?

An example of what I'm trying to accomplish can be seen in the amazing animated geyser pano on Denis Glikssman's site:

http://www.la-grange-numerique.com/demo2006/geyser_spiV/dswmedia/show_geyser.html

Thanks in advance for any help.

stage size/sprite size

There are two settings to check in the publishing options:

  • In the 'Shockwave' tab, make sure the 'allow movie scaling' option is checked
  • In the 'HTML' tab, set the 'strecth style' to 'expand stage size'

Next, you have to make sure the sprite is resized when the stage is resized. I use a frame behavior for that, but you could just as well use a moviescript, or a sprite behavior.

property pStageRect

on exitframe
  go to the frame
 
  if (the stage).rect <> pStageRect then
    pStageRect = (the stage).rect
    sprite(1).rect = rect(0,0, (the stage).rect.width, (the stage).rect.height)
  end if
end exitframe