Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.54 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Resizing Flash in IE8 is buggy
  2. package {
  3.  import flash.external.*;
  4.  public class Player {
  5.   public function Player(container:Stage) {
  6.    this.container.addEventListener(Event.RESIZE, this.onResize);
  7.   }
  8.   public function expand():void {
  9.    ExternalInterface.call('expand');
  10.   }
  11.   public function onResize():void {
  12.    // float chrome buttons to the right
  13.    // float chrome to the bottom
  14.   }
  15.  }
  16. }
  17.        
  18. // Using Prototype framework
  19. function expand() {
  20.  $('flash').setStyle({
  21.    width: '500px',
  22.    height: '400px'
  23.  });
  24.  // do other stuff in JS too
  25. }