
Security News
Crates.io Implements Trusted Publishing Support
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
angular-swfobject
Advanced tools
Minimal usage:
<swf-object swf-url="my-swf.swf"></swf-object>
Width, height and version are required parameters for SWFObject. If these are not provided then angular-swfobject
defaults to: 800x600, version 10. You can override these.
<swf-object
swf-url="my-swf.swf"
swf-width="100%"
swf-height="100%"
swf-version="10.2"></swf-object>
You can also add additional parameters:
<swf-object
swf-url="my-swf.swf"
swf-params="{
wmode: 'opaque'
}"></swf-object>
Specify flash vars:
<swf-object
swf-url="my-swf.swf"
swf-vars="{
user: 'alice'
}"></swf-object>
Register a callback for swf load complete: check swfobject.embedSWF callback documentation
<swf-object
swf-url="my-swf.swf"
swf-load="onLoadHandler(evt)"
></swf-object>
Specify expressInstallSwfurl :
<swf-object
swf-url="my-swf.swf"
<!--- optional expressInstall.swf packaged with swfobject -->
xi-swf-url-str="expressInstall.swf"
></swf-object>
Also supports defining controller level callbacks if using ExternalInterface
for example:
View
<swf-object
swf-url="my-swf.swf"
swf-id="my-swf-id"
swf-callbacks="{'externalCallback': myCallback}"></swf-object>
Controller
angular.controller('MyCtrl', function ($scope) {
$scope.myCallback = function () {
console.log('Called from Flash');
}
});
ActionScript
ExternalInterface.call('externalCallback');
FAQs
SWFObject directive for AngularJS
The npm package angular-swfobject receives a total of 43 weekly downloads. As such, angular-swfobject popularity was classified as not popular.
We found that angular-swfobject demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.