Alien-Web-ExtJS-V3

 view release on metacpan or  search on metacpan

share/docs/source/FlashComponent.html  view on Meta::CPAN

  <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
  <style type="text/css">
    .highlight { display: block; background-color: #ddd; }
  </style>
  <script type="text/javascript">
    function highlight() {
      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
    }
  </script>
</head>
<body onload="prettyPrint(); highlight();">
  <pre class="prettyprint lang-js"><span id='Ext-FlashComponent-method-constructor'><span id='Ext-FlashComponent'>/**
</span></span> * @class Ext.FlashComponent
 * @extends Ext.BoxComponent
 * @constructor
 * @xtype flash
 */
Ext.FlashComponent = Ext.extend(Ext.BoxComponent, {
<span id='Ext-FlashComponent-cfg-flashVersion'>    /**
</span>     * @cfg {String} flashVersion
     * Indicates the version the flash content was published for. Defaults to &lt;tt&gt;'9.0.115'&lt;/tt&gt;.
     */
    flashVersion : '9.0.115',

<span id='Ext-FlashComponent-cfg-backgroundColor'>    /**
</span>     * @cfg {String} backgroundColor
     * The background color of the chart. Defaults to &lt;tt&gt;'#ffffff'&lt;/tt&gt;.
     */
    backgroundColor: '#ffffff',

<span id='Ext-FlashComponent-cfg-wmode'>    /**
</span>     * @cfg {String} wmode
     * The wmode of the flash object. This can be used to control layering. Defaults to &lt;tt&gt;'opaque'&lt;/tt&gt;.
     */
    wmode: 'opaque',

<span id='Ext-FlashComponent-cfg-flashVars'>    /**
</span>     * @cfg {Object} flashVars
     * A set of key value pairs to be passed to the flash object as flash variables. Defaults to &lt;tt&gt;undefined&lt;/tt&gt;.
     */
    flashVars: undefined,

<span id='Ext-FlashComponent-cfg-flashParams'>    /**
</span>     * @cfg {Object} flashParams
     * A set of key value pairs to be passed to the flash object as parameters. Possible parameters can be found here:
     * http://kb2.adobe.com/cps/127/tn_12701.html Defaults to &lt;tt&gt;undefined&lt;/tt&gt;.
     */
    flashParams: undefined,

<span id='Ext-FlashComponent-cfg-url'>    /**
</span>     * @cfg {String} url
     * The URL of the chart to include. Defaults to &lt;tt&gt;undefined&lt;/tt&gt;.
     */
    url: undefined,
<span id='Ext-FlashComponent-property-swfId'>    swfId : undefined,
</span><span id='Ext-FlashComponent-property-swfWidth'>    swfWidth: '100%',
</span><span id='Ext-FlashComponent-property-swfHeight'>    swfHeight: '100%',
</span>
<span id='Ext-FlashComponent-cfg-expressInstall'>    /**
</span>     * @cfg {Boolean} expressInstall
     * True to prompt the user to install flash if not installed. Note that this uses
     * Ext.FlashComponent.EXPRESS_INSTALL_URL, which should be set to the local resource. Defaults to &lt;tt&gt;false&lt;/tt&gt;.
     */
    expressInstall: false,

<span id='Ext-FlashComponent-method-initComponent'>    initComponent : function(){
</span>        Ext.FlashComponent.superclass.initComponent.call(this);

        this.addEvents(
<span id='Ext-FlashComponent-event-initialize'>            /**
</span>             * @event initialize
             *
             * @param {Chart} this
             */
            'initialize'
        );
    },

<span id='Ext-FlashComponent-method-onRender'>    onRender : function(){
</span>        Ext.FlashComponent.superclass.onRender.apply(this, arguments);

        var params = Ext.apply({
            allowScriptAccess: 'always',
            bgcolor: this.backgroundColor,
            wmode: this.wmode
        }, this.flashParams), vars = Ext.apply({
            allowedDomain: document.location.hostname,
            YUISwfId: this.getId(),
            YUIBridgeCallback: 'Ext.FlashEventProxy.onEvent'
        }, this.flashVars);

        new swfobject.embedSWF(this.url, this.id, this.swfWidth, this.swfHeight, this.flashVersion,
            this.expressInstall ? Ext.FlashComponent.EXPRESS_INSTALL_URL : undefined, vars, params);

        this.swf = Ext.getDom(this.id);
        this.el = Ext.get(this.swf);
    },

<span id='Ext-FlashComponent-method-getSwfId'>    getSwfId : function(){
</span>        return this.swfId || (this.swfId = &quot;extswf&quot; + (++Ext.Component.AUTO_ID));
    },

<span id='Ext-FlashComponent-method-getId'>    getId : function(){
</span>        return this.id || (this.id = &quot;extflashcmp&quot; + (++Ext.Component.AUTO_ID));
    },

<span id='Ext-FlashComponent-method-onFlashEvent'>    onFlashEvent : function(e){
</span>        switch(e.type){
            case &quot;swfReady&quot;:
                this.initSwf();
                return;
            case &quot;log&quot;:
                return;
        }
        e.component = this;
        this.fireEvent(e.type.toLowerCase().replace(/event$/, ''), e);
    },

<span id='Ext-FlashComponent-method-initSwf'>    initSwf : function(){
</span>        this.onSwfReady(!!this.isInitialized);
        this.isInitialized = true;



( run in 0.967 second using v1.01-cache-2.11-cpan-0b5f733616e )