GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - niceue/embedSWF: Simple, modern flash dynamic embedding scheme.

BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
demo
demo
 
 
.gitignore
.gitignore
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
build.bat
build.bat
 
 
embedSWF.debug.js
embedSWF.debug.js
 
 
embedSWF.js
embedSWF.js
 
 
expressInstall.swf
expressInstall.swf
 
 

Repository files navigation

embedSWF

Simple, modern flash dynamic embedding scheme.

Usage

  1. Put embedSWF.js & expressInstall.swf in the same folder.

  2. Include embedSWF.js:

    <script type="text/javascript" src="path/to/embedSWF.js"></script>
  1. Embed a flash:
    embedSWF('someId', {
        src: 'path/to/flash.swf',
        width: 640,
        height: 320
    });
  1. Destroy a flash you have embeded:
    embedSWF.destroy('someId');

Know Issue

Most time, path of the "expressInstall.swf" can be automatically generated. But if you merge embedSWF.js to other file, the path may be wrong. Otherwise, if you use the module loader "seajs" or "ozjs", they load the script and then remove it, so we could't get the path. If the "expressInstall.swf" path is Incorrect, you can set the path in the end of the embedSWF.js:

embedSWF.base = "path/to/expressInstall.swf";

or set the path when you embed a flash:

embedSWF('someId', {
    src: 'path/to/flash.swf',
    base: "path/to/expressInstall.swf"
});

Browser Support

  • IE6+
  • Chrome
  • Safari 4+
  • Firefox 3.5+
  • Opera

Bugs / Contributions

  • Report a bug
  • To contribute or send an idea, github message me or fork the project

Build

embedSWF use UglifyJS2 you should have installed nodejs and run npm install uglify-js -g.

On Windows, you can run build.bat from root directory and it will package embedSWF.debug.js into embedSWF.js.

License

embedSWF is available under the terms of the MIT License.

About

Simple, modern flash dynamic embedding scheme.

Resources

Readme
MIT license
Activity

Stars

9 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.