{"id":22724260,"url":"https://github.com/niceue/embedswf","last_synced_at":"2025-10-11T17:44:27.868Z","repository":{"id":145772349,"uuid":"9732484","full_name":"niceue/embedSWF","owner":"niceue","description":"Simple, modern flash dynamic embedding scheme.","archived":false,"fork":false,"pushed_at":"2014-06-23T15:53:43.000Z","size":190,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T17:58:19.975Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/niceue.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-04-28T16:18:26.000Z","updated_at":"2019-07-11T08:34:59.000Z","dependencies_parsed_at":"2023-03-23T08:19:40.692Z","dependency_job_id":null,"html_url":"https://github.com/niceue/embedSWF","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/niceue/embedSWF","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niceue%2FembedSWF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niceue%2FembedSWF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niceue%2FembedSWF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niceue%2FembedSWF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niceue","download_url":"https://codeload.github.com/niceue/embedSWF/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niceue%2FembedSWF/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008134,"owners_count":26084397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-10T14:15:32.090Z","updated_at":"2025-10-11T17:44:27.834Z","avatar_url":"https://github.com/niceue.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## embedSWF\nSimple, modern flash dynamic embedding scheme.\n\n\n## Usage\n\n1. Put `embedSWF.js` \u0026 `expressInstall.swf` in the same folder.\n\n\n2. Include `embedSWF.js`:\n``` html\n    \u003cscript type=\"text/javascript\" src=\"path/to/embedSWF.js\"\u003e\u003c/script\u003e\n```\n\n\n3. Embed a flash:\n``` js\n    embedSWF('someId', {\n        src: 'path/to/flash.swf',\n        width: 640,\n        height: 320\n    });\n```\n\n\n4. Destroy a flash you have embeded:\n``` js\n    embedSWF.destroy('someId');\n```\n\n## Know Issue\nMost time, path of the \"expressInstall.swf\" can be automatically generated.\nBut if you merge `embedSWF.js` to other file, the path may be wrong.\nOtherwise, if you use the module loader \"[seajs](http:seajs.org)\" or \"[ozjs](http:ozjs.org)\", \nthey load the script and then remove it, so we could't get the path.\nIf the \"expressInstall.swf\" path is Incorrect, you can set the path in the end of the `embedSWF.js`:\n``` js\nembedSWF.base = \"path/to/expressInstall.swf\";\n```\nor set the path when you embed a flash:\n``` js\nembedSWF('someId', {\n    src: 'path/to/flash.swf',\n    base: \"path/to/expressInstall.swf\"\n});\n```\n\n\n## Browser Support\n\n  * IE6+\n  * Chrome\n  * Safari 4+\n  * Firefox 3.5+\n  * Opera\n\n## Bugs / Contributions\n- [Report a bug](https://github.com/niceue/embedSWF/issues)\n- To contribute or send an idea, github message me or fork the project\n\n## Build\nembedSWF use [UglifyJS2](https://github.com/mishoo/UglifyJS) \nyou should have installed [nodejs](nodejs.org) and run `npm install uglify-js -g`.\n\nOn Windows, you can run `build.bat` from root directory and it will package `embedSWF.debug.js` into `embedSWF.js`.\n\n  \n## License\n\nembedSWF is available under the terms of the [MIT License](https://github.com/niceue/embedSWF/blob/master/LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniceue%2Fembedswf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniceue%2Fembedswf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniceue%2Fembedswf/lists"}