Skip to content
This repository has been archived by the owner on May 21, 2021. It is now read-only.

Commit

Permalink
fix(test): use AngularJSAdapter#expose instead of ExternalInterface.a…
Browse files Browse the repository at this point in the history
…ddCallback in test.mxml
  • Loading branch information
Philipp Burgmer committed Jul 15, 2014
1 parent 3c0f6c5 commit a1c49cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Binary file modified bin-release/test.swf
Binary file not shown.
7 changes: 3 additions & 4 deletions test/flash/test.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.core.FlexGlobals;
import mx.events.FlexEvent;
import w11k.flash.AngularJSAdapter;
Expand All @@ -19,9 +18,9 @@
angularjs = AngularJSAdapter.getInstance();
this.currentState = defaultState.name;
ExternalInterface.addCallback("talkToMe", talkToMe);
ExternalInterface.addCallback("navigateTo", setState);
angularjs.expose("talkToMe", talkToMe);
angularjs.expose("navigateTo", setState);
angularjs.fireFlashReady();
}
Expand Down

0 comments on commit a1c49cd

Please sign in to comment.