{"id":20078724,"url":"https://github.com/wpdas/swfcacheios","last_synced_at":"2026-03-07T10:31:00.203Z","repository":{"id":77498465,"uuid":"71806454","full_name":"wpdas/SWFCacheIOS","owner":"wpdas","description":"Makes it possible to recharge a single SWF file when an application is compiled for iOS (AIR).","archived":false,"fork":false,"pushed_at":"2017-02-15T19:18:30.000Z","size":45,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-02T13:14:41.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ActionScript","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/wpdas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-24T16:03:51.000Z","updated_at":"2020-02-19T20:08:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"4797b163-e46d-49c7-9a18-9724924c8efc","html_url":"https://github.com/wpdas/SWFCacheIOS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wpdas/SWFCacheIOS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2FSWFCacheIOS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2FSWFCacheIOS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2FSWFCacheIOS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2FSWFCacheIOS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpdas","download_url":"https://codeload.github.com/wpdas/SWFCacheIOS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpdas%2FSWFCacheIOS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30212042,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T09:02:10.694Z","status":"ssl_error","status_checked_at":"2026-03-07T09:02:08.429Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-11-13T15:16:21.822Z","updated_at":"2026-03-07T10:31:00.185Z","avatar_url":"https://github.com/wpdas.png","language":"ActionScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SWFCacheIOS v1.0.0\n\u003eAuthor: Wenderson Pires - wpdas@yahoo.com.br\n\nUsing SWFCacheIOS you can load more than once a single SWF file. It is known that this is not possible in the iOS operating system. Here is the solution to applications iOS AIR!\n\n## Apps/Games using this source\nGames of the enterprise 360e1 Entretenimento: [App Store](https://itunes.apple.com/mx/developer/360e1-entretenimento/id1170254384).\n\n## How to use\nExample: [MainExample.as](https://github.com/Wpdas/Physic_AS3/tree/master/example).\n\t\n```actionscript\npackage \n{\n\timport com.wpdas.cache.SWFCacheIOS;\n\timport flash.display.Sprite;\n\timport flash.events.Event;\n\timport flash.events.MouseEvent;\n\timport flash.net.URLRequest;\n\t\n\t/**\n\t * Use example\n\t * @author Wenderson Pires da Silva\n\t */\n\tpublic class MainExample extends Sprite\n\t{\n\t\t\n\t\tpublic function MainExample() \n\t\t{\n\t\t\t/**\n\t\t\t * Load/Reload SWF File\n\t\t\t * Shoot the type COMPLETE event every time the file is loaded or reloaded.\n\t\t\t */\n\t\t\tSWFCacheIOS.instance.addEventListener(Event.COMPLETE, onLoadSWFComplete);\n\t\t\t\n\t\t\tloadButton.addEventListener(MouseEvent.CLICK, onTapLoadButton);\n\t\t\tunloadButton.addEventListener(MouseEvent.CLICK, onTapUnloadButton);\n\t\t}\n\t\t\n\t\tprivate function onTapLoadButton(e:MouseEvent):void \n\t\t{\n\t\t\t//First remove the last SWF loaded\n\t\t\tonTapUnloadButton(null);\n\t\t\t\n\t\t\t//Load new SWF file\n\t\t\tSWFCacheIOS.instance.load(new URLRequest(\"UIContent.swf\"));\n\t\t}\n\t\t\n\t\tprivate function onTapUnloadButton(e:MouseEvent):void \n\t\t{\n\t\t\t//If added on stage, remove it\n\t\t\tif (SWFCacheIOS.instance.getLoadedSWF != null \u0026\u0026 SWFCacheIOS.instance.getLoadedSWF.content.stage) {\n\t\t\t\t\n\t\t\t\tremoveChild(SWFCacheIOS.instance.getLoadedSWF.content);\n\t\t\t\t\n\t\t\t\t//Clear memory (IMPORTANT)\n\t\t\t\tSWFCacheIOS.instance.getLoadedSWF.content.loaderInfo.loader.stopAllMovieClips();\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tSWFCacheIOS.instance.getLoadedSWF.close();\n\t\t\t\t} catch ( e : * ) {};\n\t\t\t}\n\t\t}\n\t\t\n\t\t/**\n\t\t * When SWF file loaded/reloaded\n\t\t * @param\te\n\t\t */\n\t\tprivate function onLoadSWFComplete(e:Event):void \n\t\t{\n\t\t\t/**\n\t\t\t * Add the element\n\t\t\t * \n\t\t\t * Possibilities:\n\t\t\t * addChild(SWFCacheIOS.instance.getLoadedSWF); Loader\n\t\t\t * addChild(SWFCacheIOS.instance.getLoadedSWF.content); DisplayObject context (First level to access and manipulate the source class)\n\t\t\t */\n\t\t\taddChild(SWFCacheIOS.instance.getLoadedSWF.content);\n\t\t}\n\t}\n\n}\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpdas%2Fswfcacheios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpdas%2Fswfcacheios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpdas%2Fswfcacheios/lists"}