From 11c62d100fe303d645ceb237d2eb51f9a07f0194 Mon Sep 17 00:00:00 2001 From: Gary Lake Date: Thu, 15 Dec 2011 11:17:54 -0500 Subject: [PATCH] Fixed issue #193: FlxPreloader can now handle URLs with http or https --- org/flixel/system/FlxPreloader.as | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/org/flixel/system/FlxPreloader.as b/org/flixel/system/FlxPreloader.as index 1ccde431..f0489fc6 100755 --- a/org/flixel/system/FlxPreloader.as +++ b/org/flixel/system/FlxPreloader.as @@ -133,7 +133,8 @@ package org.flixel.system private function goToMyURL(event:MouseEvent=null):void { - navigateToURL(new URLRequest("http://"+myURL)); + var prefix:String = myURL.match(/^https?:/) ? "" : "http://"; + navigateToURL(new URLRequest(prefix+myURL)); } private function onEnterFrame(event:Event):void