Skip to content

Commit dde536b

Browse files
committed
Merge pull request AdamAtomic#71 from IQAndreas/fix_issue_193
Fix issue #38, AdamAtomic#193 - FlxPreloader.myURL should take a proper URL
2 parents 2886406 + 11c62d1 commit dde536b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

org/flixel/system/FlxPreloader.as

+2-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ package org.flixel.system
133133

134134
private function goToMyURL(event:MouseEvent=null):void
135135
{
136-
navigateToURL(new URLRequest("http://"+myURL));
136+
var prefix:String = myURL.match(/^https?:/) ? "" : "http://";
137+
navigateToURL(new URLRequest(prefix+myURL));
137138
}
138139

139140
private function onEnterFrame(event:Event):void

0 commit comments

Comments
 (0)