Skip to content

Commit

Permalink
Added supported FP attribute "browserZoom"
Browse files Browse the repository at this point in the history
  • Loading branch information
syranide committed Dec 29, 2015
1 parent f57f5da commit 6e83d54
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 13 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class MyExternalInterfaceExample extends React.Component {
}

render() {
// Globally unique ID is required for IE<11 for ExternalInterface callbacks.
// Globally unique ID is required for ExternalInterface callbacks in IE<11.
return (
<ReactSWF
...
Expand Down Expand Up @@ -103,6 +103,7 @@ allowScriptAccess {enum} - always, sameDomain*, never
align {enum} - l, t, r
base {string}
bgcolor {string} - #RRGGBB
browserZoom - scale*, noscale
fullScreenAspectRatio {enum} - portrait, landscape
loop {boolean} - true*, false
menu {boolean} - true*, false
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-swf",
"version": "0.13.0",
"version": "0.13.1",
"license": "MIT",
"description": "Shockwave Flash Player component for React",
"authors": ["Andreas Svensson <[email protected]>"],
Expand Down
9 changes: 5 additions & 4 deletions npm-react-swf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ Use [SWFPlayerVersion](https://github.com/syranide/swf-player-version) to determ
/>
```
```jsx
var SWF_ID_PREFIX = '__MyExternalInterfaceExample_SWFID_';
var SWF_CALL_NAME_PREFIX = '__MyExternalInterfaceExample_SWFCall_';
const SWF_ID_PREFIX = '__MyExternalInterfaceExample_SWFID_';
const SWF_CALL_NAME_PREFIX = '__MyExternalInterfaceExample_SWFCall_';

var nextUID = 0;
let nextUID = 0;

class MyExternalInterfaceExample extends React.Component {
constructor(props) {
Expand Down Expand Up @@ -52,7 +52,7 @@ class MyExternalInterfaceExample extends React.Component {
}

render() {
// Globally unique ID is required for IE<11 for ExternalInterface callbacks.
// Globally unique ID is required for ExternalInterface callbacks in IE<11.
return (
<ReactSWF
...
Expand Down Expand Up @@ -103,6 +103,7 @@ allowScriptAccess {enum} - always, sameDomain*, never
align {enum} - l, t, r
base {string}
bgcolor {string} - #RRGGBB
browserZoom - scale*, noscale
fullScreenAspectRatio {enum} - portrait, landscape
loop {boolean} - true*, false
menu {boolean} - true*, false
Expand Down
2 changes: 1 addition & 1 deletion npm-react-swf/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-swf",
"version": "0.13.0",
"version": "0.13.1",
"license": "MIT",
"description": "Shockwave Flash Player component for React",
"author": "Andreas Svensson <[email protected]>",
Expand Down
6 changes: 4 additions & 2 deletions npm-react-swf/react-swf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! react-swf v0.13.0 | @syranide | MIT license */
/*! react-swf v0.13.1 | @syranide | MIT license */

'use strict';

Expand All @@ -15,6 +15,7 @@ var PropTypes = React.PropTypes;
align = l, t, r
base = url
bgcolor = #RRGGBB
browserZoom = scale*, noscale
fullScreenAspectRatio = portrait, landscape
loop = true*, false
menu = true*, false
Expand All @@ -36,6 +37,7 @@ var supportedFPParamNames = {
align: 'align',
base: 'base',
bgcolor: 'bgcolor',
browserZoom: 'browserzoom',
fullScreenAspectRatio: 'fullscreenaspectratio',
loop: 'loop',
menu: 'menu',
Expand Down Expand Up @@ -157,6 +159,7 @@ ReactSWF.propTypes = {
align: PropTypes.oneOf(['l', 't', 'r']),
base: PropTypes.string,
bgcolor: PropTypes.string,
browserZoom: PropTypes.oneOf(['scale', 'noscale']),
fullScreenAspectRatio: PropTypes.oneOf(['portrait', 'landscape']),
loop: PropTypes.bool,
menu: PropTypes.bool,
Expand Down Expand Up @@ -211,7 +214,6 @@ ReactSWF.prototype.componentWillUnmount = function() {
};

ReactSWF.prototype.render = function() {
var that = this;
var props = this.props;
var state = this.state;

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-swf",
"version": "0.13.0",
"version": "0.13.1",
"license": "MIT",
"description": "Shockwave Flash Player component for React",
"author": "Andreas Svensson <[email protected]>",
Expand Down
5 changes: 4 additions & 1 deletion react-swf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! react-swf v0.13.0 | @syranide | MIT license */
/*! react-swf v0.13.1 | @syranide | MIT license */

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
Expand All @@ -23,6 +23,7 @@
align = l, t, r
base = url
bgcolor = #RRGGBB
browserZoom = scale*, noscale
fullScreenAspectRatio = portrait, landscape
loop = true*, false
menu = true*, false
Expand All @@ -44,6 +45,7 @@
align: 'align',
base: 'base',
bgcolor: 'bgcolor',
browserZoom: 'browserzoom',
fullScreenAspectRatio: 'fullscreenaspectratio',
loop: 'loop',
menu: 'menu',
Expand Down Expand Up @@ -165,6 +167,7 @@
align: PropTypes.oneOf(['l', 't', 'r']),
base: PropTypes.string,
bgcolor: PropTypes.string,
browserZoom: PropTypes.oneOf(['scale', 'noscale']),
fullScreenAspectRatio: PropTypes.oneOf(['portrait', 'landscape']),
loop: PropTypes.bool,
menu: PropTypes.bool,
Expand Down
4 changes: 2 additions & 2 deletions react-swf.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e83d54

Please sign in to comment.