Hello

i just want to say ,the property 'image' doesn't work.

see below code:
---------------------
        var flashvars = parseFlashvars(_old_fv_str,folderID);
        //console.log(flashvars);

        var params = {
                allowfullscreen:"true",
                allowfullscreen:_old_allowfullscreen,
                wmode:_old_wmode,
                menu:_old_menu,
                quality:_old_quality,
                'src':_old_src,
                'type':_old_type,
                'image':getCoverImage(folderID)
        }
/*
'src':_old_src,
                'type':_old_type
*/


        var attributes = {
                id:thePlayerId,
                name:thePlayerId,
                width:_old_width,
                height:_old_height
        }

        swfobject.embedSWF(_old_src, "pnlhoder", _old_width, _old_height,
"10.0.32", false, flashvars, params, attributes);
-------------------

function 'parseFlashvars':
---------------
function parseFlashvars(old_fv_str,folderID){


        try{
        //console.log(old_fv_str);
        var strs = old_fv_str.split('&');

        //var _obj = $("#ufp585");
        //var _old_flashvars_str = _obj.attr("flashvars");
        //var strs = _old_flashvars_str.split('&');
        //console.log(strs);
        var files = strs[0].split('=');
        //console.log(files );

        //585 is  moduleid.
        if(folderID > 0 ){
                files[2] = "585,"+folderID;
        }
        //strs[0]=files.join('=');
        //console.log(strs);

        //autostart="true"
        var autostart = 'true';
        if($.cookie('uft_folderid_'+folderID) == folderID){
                autostart = 'false';
        }else{
                $.cookie('uft_folderid_'+folderID,folderID);
        }

        var _valflashvars = "{";
        _valflashvars += '"'+files[0]+'":"'+files[1]+'='+files[2]+'",';
        for(var i=1;i<strs.length;i++){
         var _dd = strs[i].split('=');
         if(_dd[0] == 'autostart') _dd[1] = autostart;
         _valflashvars += '"'+_dd[0]+'":"'+_dd[1]+'",';
        }

        //_valflashvars = _valflashvars.substring(0,_valflashvars.length-1);

        //cover image doesn't work.
        _valflashvars += '"image":"'+getCoverImage(folderID)+'"';

        _valflashvars+="}";
        //console.log(_valflashvars);
        eval('var _flashvars =  '+_valflashvars+';');
        //console.log(_flashvars.tabid);

        }catch(e){
                alert(e);
                eval('var _flashvars =  {};');
        }

        return _flashvars;
}
-----------------------


On 4月3日, 上午12时15分, Philip Hutchison <[email protected]> wrote:
> What you pasted looks fine, but without seeing all of your swfobject code,
> we can't really know what's happening on your page.
>
> - philip
>
> On Fri, Apr 2, 2010 at 5:16 AM, Daniel <[email protected]> wrote:
> > Hello
>
> > i just download the current version of swfobject. the version should
> > be 2.2
> > i have set the image in the flashvar ,but it doesn't work.
>
> > such like:
> > var flashvar = {'image':'/a/b/c.jpg'};
>
> > any ideas will be appreciated.
> > Daniel
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "SWFObject" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<swfobject%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/swfobject?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to