Clear Up
SharpKit Reference

Ext.flash Namespace

Download SDK: SharpKit.ExtJs.zip

Classes

Name Description
Component

A simple Component for displaying an Adobe Flash SWF movie. The movie will be sized and can participate in layout like any other Component.

This component requires the third-party SWFObject library version 2.2 or above. It is not included within the ExtJS distribution, so you will have to include it into your page manually in order to use this component. The SWFObject library can be downloaded from the SWFObject project page and then simply import it into the head of your HTML document:

  
<script type="text/javascript" src="path/to/local/swfobject.js"></script>
            

Configuration

This component allows several options for configuring how the target Flash movie is embedded. The most important is the required url which points to the location of the Flash movie to load. Other configurations include:

  • backgroundColor
  • wmode
  • flashVars
  • flashParams
  • flashAttributes

Example usage:

  
var win = Ext.widget('window', {
            title: "It's a tiger!",
            layout: 'fit',
            width: 300,
            height: 300,
            x: 20,
            y: 20,
            resizable: true,
            items: {
            xtype: 'flash',
            url: 'tiger.swf'
            }
            });
            win.show();
            

Express Install

Adobe provides a tool called Express Install that offers users an easy way to upgrade their Flash player. If you wish to make use of this, you should set the static EXPRESS_INSTALL_URL property to the location of your Express Install SWF file:

  
    Ext.flash.Component.EXPRESS_INSTALL_URL = 'path/to/local/expressInstall.swf';
            
ComponentConfig
ComponentEvents
© Copyright 2005-2011 SharpKit. All rights reserved.