Simple example of watching AngularJS route changes and updating an embedded SWF via JavaScript.
JavaScript ActionScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
partials
Example.as
Example.fla
Example.swf
README.md
app.js
index.html
style.css

README.md

This is a simple example of how to watch AngularJS route changes and update an embedded SWF via JavaScript.

I'm sure there's a better way to do this. Please fork and share any improvements!

The source code for the SWF can be found in Example.as. The ActionScript exposes an external method named changeColor() that can be called from JavaScript.

Eventually this might turn into a proper AngularJS Directive for embedding SWFs?..