Okay, I've fixed the issue using the code I've posted. Now I"m getting this error. Any idea what it is?
SecurityError: Error #2148: SWF file file:///Users/BrandonStoudt/stencylworks/games-generated/Dungeon Delvin/Export/flash/bin/Dungeon Delvin.swf cannot access local resource . Only local-with-filesystem and trusted local SWF files may access local resources.
at global/flash.net::navigateToURL()
at flash::Lib$/getURL()[/Applications/Stencyl/plaf/haxe/std/flash/Lib.hx:57]
at openfl::Lib$/getURL()[/Applications/Stencyl/plaf/haxe/lib/openfl/openfl/openfl/Lib.hx:101]
at com.stencyl.behavior::Script$/openURLInBrowser()[/Applications/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/behavior/Script.hx:3668]
at MethodInfo-7807()[Source/scripts/ActorEvents_112.hx:93]
at com.stencyl.models::Actor/innerUpdate()[/Applications/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/models/Actor.hx:1496]
at com.stencyl::Engine/update()[/Applications/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2492]
at com.stencyl::Engine/postUpdate()[/Applications/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2618]
at com.stencyl::Engine/onUpdate()[/Applications/Stencyl/plaf/haxe/lib/stencyl/1,00/com/stencyl/Engine.hx:2611]