Socket
Socket
Sign inDemoInstall

angular-swfobject

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-swfobject

SWFObject directive for AngularJS


Version published
Maintainers
1
Install size
179 kB
Created

Readme

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

Last updated on 01 Nov 2015

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc