Permalink
Browse files

Fixes fscommand checking in loadMovies

  • Loading branch information...
yurydelendik committed Mar 7, 2014
1 parent 2717b0c commit 1aa3d733de537db4827a6bcb64e5664dace7d1fa
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/avm1lib/AS2Globals.as
  2. BIN src/avm2/generated/avm1lib/avm1lib.abc
@@ -153,7 +153,7 @@ public dynamic class AS2Globals {
public function loadMovie(url: String, target: Object, method: String): void {
// some swfs are using loadMovie to call fscommmand
- if (url.indexOf('fscommand:') === 0) {
+ if (url && url.toLowerCase().indexOf('fscommand:') === 0) {
this.fscommand(url.substring('fscommand:'.length), target);
return;
}
@@ -178,7 +178,7 @@ public dynamic class AS2Globals {
public function loadMovieNum(url, level, method) {
// some swfs are using loadMovieNum to call fscommmand
- if (/^fscommand:/i.test(url)) {
+ if (url && url.toLowerCase().indexOf('fscommand:') === 0) {
return this.fscommand(url.substring('fscommand:'.length));
}
Binary file not shown.

0 comments on commit 1aa3d73

Please sign in to comment.