[jQuery] JSON support in flash plugin?

[jQuery] JSON support in flash plugin?


Hi
I have a flash (swf) file that needs rather extensive input in form of
flash-vars. My flash colleague would like to recieve the flash-vars as
an object (JSON). Have any of you tried that - or maybe even extended
Luke's (great!) plugin? This is how you feed flash-vars to the movie
'out of the box':
$('#example').flash( {
src: 'example.swf',
width: 720,
height: 480,
flashvars: { foo: 'bar', baz: 'zoo' }
},
{ version: 8 }
);
This is what I need:
$('#example').flash( {
src: 'example.swf',
width: 720,
height: 480,
flashvars: {
'my-object': {
'foo': 'bar',
'baz': 'zoo'
}
},
{ version: 8 }
);