# LoadVar()

**URL:** <https://forum.kirupa.com/t/loadvar/73335>\
**Category:** flash\
**Created:** [December 15, 2004, 12:07pm UTC](https://forum.kirupa.com/t/loadvar/73335 "2004-12-15T12:07:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cazzopupazzo](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@cazzopupazzo](https://forum.kirupa.com/u/cazzopupazzo)\
**Post date:** [December 15, 2004, 12:07pm UTC](https://forum.kirupa.com/t/loadvar/73335/1 "2004-12-15T12:07:56Z")

</div>

this script allows a button to load text in different textfield and a jpg.

it also allows the hiperlink in a text referring to an URL.

* * *

var contactInfo:LoadVars = new LoadVars(); // create LoadVars instance

contactInfo.load(“contact.txt”); // load external data

contactInfo.onLoad = function (success:Boolean) { // monitor data download  
if (success) { // system passes status  
name\_txt.text = this.firstName + " " + this.lastName;  
phone\_txt.text = this.workPhone;  
email\_txt.html = true; // turn on HTML text  
email\_txt.htmlText = “\<a href='mailto:” + this.email + “’\>”  
+ this.email + “\</a\>”; // single statement on 1 line  
site\_txt.html = true;  
site\_txt.htmlText = “\<u\>” + “\<a href=’” + this.websiteURL + “’\>”  
+ this.websiteURL + “\</a\>” + “\</u\>”;  
empty\_mc.loadMovie(this.imageURL); // load JPEG  
} else {  
trace(“Failure”);  
}  
}

* * *

my question is: how should I change it to call the url in a \_blank window?

thank U by now!
