Skip to content

Instantly share code, notes, and snippets.

@overbyte
Last active August 29, 2015 13:57
Show Gist options
  • Save overbyte/9545438 to your computer and use it in GitHub Desktop.
Save overbyte/9545438 to your computer and use it in GitHub Desktop.
<snippet>
<content><![CDATA[
var flashvars = {};
var params = {};
var attributes = {};
params.menu = false;
params.scale = 'noscale';
params.wmode = 'transparent';
params.allowScriptAccess = 'always';
params.allowFullscreen = 'true';
attributes.id = '${1:item name}';
attributes.name = '${1:item name}';
swfobject.embedSWF('${2:swf name}-${3:width}x${4:height}.swf',
'b${3:width}x${4:height}',
'${3:width}', '${4:height}',
'8.0.0', null,
flashvars, params, attributes);
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>swfobj</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment