angular-swfobject

WebJar for angular-swfobject

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-swfobject
Last Version

Last Version

1.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

angular-swfobject
WebJar for angular-swfobject
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jeef3/angular-swfobject

Download angular-swfobject

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-swfobject/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-swfobject</artifactId>
    <version>1.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-swfobject/
implementation 'org.webjars.bower:angular-swfobject:1.2.1'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-swfobject/
implementation ("org.webjars.bower:angular-swfobject:1.2.1")
'org.webjars.bower:angular-swfobject:jar:1.2.1'
<dependency org="org.webjars.bower" name="angular-swfobject" rev="1.2.1">
  <artifact name="angular-swfobject" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-swfobject', version='1.2.1')
)
libraryDependencies += "org.webjars.bower" % "angular-swfobject" % "1.2.1"
[org.webjars.bower/angular-swfobject "1.2.1"]

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bower » swfobject jar [0,)

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.2.1
1.2.0
1.1.0