Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-swfobject

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-swfobject

SWFObject directive for AngularJS

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
69
decreased by-11.54%
Maintainers
1
Weekly downloads
 
Created
Source

Angular SWFObject

Usage

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>
http://learnswfobject.com/the-basics/adobes-express-install/

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');

Keywords

FAQs

Package last updated on 01 Nov 2015

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc