
Untitled
By: a guest on
Jul 4th, 2012 | syntax:
None | size: 0.54 KB | hits: 8 | expires: Never
Resizing Flash in IE8 is buggy
package {
import flash.external.*;
public class Player {
public function Player(container:Stage) {
this.container.addEventListener(Event.RESIZE, this.onResize);
}
public function expand():void {
ExternalInterface.call('expand');
}
public function onResize():void {
// float chrome buttons to the right
// float chrome to the bottom
}
}
}
// Using Prototype framework
function expand() {
$('flash').setStyle({
width: '500px',
height: '400px'
});
// do other stuff in JS too
}