GithubHelp home page GithubHelp logo

aadsm / customexternalinterface Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 104 KB

Custom implementation of Flash's ExternalInterface that works on the Wii

Home Page: http://www.aadsm.net/libraries/customexternalinterface

Shell 0.31% ActionScript 99.69%

customexternalinterface's Introduction

Custom ExternalInterface
========================

This library is a proof of concept of the solution proposed by the ["Alternative Method for Message Passing Between JavaScript and Flash"](http://www.aadsm.net/papers/messagePassingJavaScriptFlash.pdf) paper.

It is currently being used on the Opera Unite "Media Player" Application to make it work on the Wii. This web-application relies on the SoundManager 2 library that was recompiled into a wii capable version using a previous version of this library.

How To Use It
-------------

In order to make it work with your own Flash-powered web-application you need to follow these, hopefully, simple steps:

1. Comment the "`import flash.external.ExternalInterface;`" line from your *.as and compile it using the `src/ExternalInterface.as` instead.
2. Copy `swf/MessageProxy.swf` to some folder on your web-application.
3. Add this bit of configuration to your web-application:    
`cEIConfig = {
        proxyUrl: "path/to/MessageProxy.swf",
        flashId: "flashDomObjectId"
};`

Technical Information
---------------------

There are issues with too many messages being passed in a short period of time, the Wii has limited memory that is easy to fill up resulting in an OOM error message.

The Flash object needs to be visible all the time, the Wii has an optimization that stops all Flash objects not visible to the user.

Only one flash object per page is permitted to have this hack.

customexternalinterface's People

Contributors

aadsm avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

customexternalinterface's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.