Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User Ronaldo's Avatar
    Join Date
    Jul 2007
    Location
    Enschede, The Netherlands
    Posts
    285
    Vote Rating
    0
    Ronaldo is on a distinguished road

      0  

    Default [TENT][3.0.0] Fix: Ext.FlashComponent pass parameters to swfobject

    [TENT][3.0.0] Fix: Ext.FlashComponent pass parameters to swfobject


    Hi all,

    I love the Ext.FlashComponent already But I wanted to pass in extra parameters to the swf file, and since I discovered ext uses swfobject, I knew it was possible. So with the fix below in the Ext.FlashComponent's onRender method, I can use:

    Code:
    var movie = new Ext.FlashComponent({
                url      : '/movie.swf',
                flashVars: {
                    myParameter: 'a value',  
                    anotherOne: 2
                }
            });
    In Actionscript 3, now you can use:

    root.loaderInfo.parameters.myParameter (='a value') and root.loaderInfo.parameters.anotherOne (=2)

    Code:
       
        onRender : function(){
            Ext.FlashComponent.superclass.onRender.apply(this, arguments);
    
            var params = {
                allowScriptAccess: 'always',
                bgcolor: this.backgroundColor,
                wmode: this.wmode
            }, vars = Ext.apply(this.flashVars||{},{
                allowedDomain: document.location.hostname,
                elementID: this.getId(),
                eventHandler: 'Ext.FlashEventProxy.onEvent'
            });
    
            new swfobject.embedSWF(this.url, this.id, this.swfWidth, this.swfHeight, this.flashVersion,
                this.expressInstall ? Ext.FlashComponent.EXPRESS_INSTALL_URL : undefined, vars, params);
    
           ...
        },
    Best regards,
    Ronaldo
    Ronald van Raaphorst aka Ronaldo
    I'm a freelance software developer in Java, PHP, and ExtJs.


    Skyperonald_twensoc
    Mailinfo@twensoc.nl

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,102
    Vote Rating
    500
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    Fixed in SVN.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext User
    Join Date
    Jul 2007
    Location
    Florida
    Posts
    9,996
    Vote Rating
    5
    mjlecomte will become famous soon enough mjlecomte will become famous soon enough

      0  

    Default


    I'm swf ignorant. There's no need to also do similar with the params also?

  4. #4
    Sencha User Ronaldo's Avatar
    Join Date
    Jul 2007
    Location
    Enschede, The Netherlands
    Posts
    285
    Vote Rating
    0
    Ronaldo is on a distinguished road

      0  

    Default


    Hi,

    I'm not sure if being able to change the params variable is valuable too. Heck, it might be usefull to be able to override all parameters.

    Search for 'swfobject.embedSWF' in the swfobject API docs,
    in my standalone swfobject usage, I used the flashvars parameter to pass information to the flash file, and that works.

    Ronaldo
    Ronald van Raaphorst aka Ronaldo
    I'm a freelance software developer in Java, PHP, and ExtJs.


    Skyperonald_twensoc
    Mailinfo@twensoc.nl

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar