<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ImageLoader</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<link rel="stylesheet" type="text/css" href="css/VisDoc.css"/>
<script src="js/doc.js" type="text/javascript">//</script>
</head>
<body pageId="Pagecom_jeroenwijering_utils_ImageLoader">
<div class="VisDoc"><span id="PageTop"><!----></span>
<div class="content"><span class="accessKeysInfo"><span class="label"><a href="#" class="accessKeyInfoToggle" onclick="toggleAccessKeyInfo(); return true;">Access keys</a></span><span class="accessKeyLinks" style="display:none;"><a href="#PageTop" accesskey="t">T</a>op, <a href="#Summary" accesskey="s">S</a>ummary, <a href="#Constructor" accesskey="c">C</a>onstructors,
Instance <a href="#Instanceproperties" accesskey="p">p</a>roperties,
Instance <a href="#Instancemethods" accesskey="m">m</a>ethods, <a href="#Eventhandlers" accesskey="e">E</a>vent handlers</span></span><h1>ImageLoader</h1>
<div class="classProperties">
<table cellspacing="0">
<tr>
<th>Kind of class:</th>
<td>class</td>
</tr>
<tr>
<th>Inherits from:</th>
<td>none</td>
</tr>
<tr>
<th class="classDetails">Version:</th>
<td class="classDetails">1.03</td>
</tr>
<tr>
<th class="classDetails">Author:</th>
<td class="classDetails">Jeroen Wijering</td>
</tr>
<tr>
<th class="classDetails">Classpath:</th>
<td class="classDetails">com.jeroenwijering.utils.ImageLoader</td>
</tr>
<tr>
<th class="classDetails">File last modified:</th>
<td class="classDetails">Thursday, 02 November 2006, 21:33:44</td>
</tr>
</table>
</div>
<div class="classDescription">
<div class="descriptionSummary">Class for loading, scaling and smoothing images to a given MovieClip</div><div class="classFields">
<div class="boxWithBorder">
<div class="boxedElem">
<div class="contentHolder"><span class="title">Example:</span><div class="item">import com.jeroenwijering.utils.ImageLoader;<br /> var myLoader = new ImageLoader(this);<br /> myLoader.loadImage("somephoto.jpg");</div>
</div>
</div>
</div>
</div>
</div>
<div class="summary hasBottomDivider">
<h2 class="hasBottomDivider"><span id="Summary">Summary</span></h2>
<div class="methodList">
<div class="methodSummaryPart"><span class="title">Constructor</span><ul>
<li>
<a href="#ImageLoader">ImageLoader</a>
</li>
</ul>
</div>
<div class="methodSummaryPart"><span class="title">Instance methods</span><ul>
<li>
<a href="#loadImage">loadImage</a>
</li>
<li>
<a href="#checkSmoothing">checkSmoothing</a>
</li>
</ul>
</div>
<div class="methodSummaryPart"><span class="title">Event handlers</span><ul>
<li>
<a href="#onLoadFinished">onLoadFinished</a>
</li>
</ul>
</div>
</div>
</div>
<div class="methodSection">
<h2 class="hasBottomDivider"><span id="Constructor">Constructor</span></h2>
<div class="method hasBottomDivider">
<h3 id="ImageLoader">ImageLoader</h3>
<div class="fullMemberString">
<div class="clearfix floatholder">
<div class="floatbox code">function <b>ImageLoader</b> (
</div>
<div><span class="code">tgt:MovieClip,
ost:Boolean,
wid:Number,
hei:Number,
msk:Boolean)</span></div>
</div>
</div>
<div class="description">Constructor for the ImageLoader</div>
<div class="boxWithBorder">
<div class="boxedElem">
<div class="contentHolder"><span class="title">Parameters:</span><div class="item">
<div class="floatbox code colorizedCode">tgt<span class="itemSeparator">:</span></div>
<div>MovieClip to load the image into</div>
</div>
<div class="item">
<div class="floatbox code colorizedCode">ost<span class="itemSeparator">:</span></div>
<div>Overstretch the image to fill the entire target, default false</div>
</div>
<div class="item">
<div class="floatbox code colorizedCode">wid<span class="itemSeparator">:</span></div>
<div>Width of the image target, defaults to target movieclip width</div>
</div>
<div class="item">
<div class="floatbox code colorizedCode">hei<span class="itemSeparator">:</span></div>
<div>Height if the image target, defaults to target movieclip height</div>
</div>
<div class="item">
<div class="floatbox code colorizedCode">msk<span class="itemSeparator">:</span></div>
<div>Use a mask to hide overstretched parts of the image</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="methodSection">
<h2 class="hasBottomDivider"><span id="Instancemethods">Instance methods</span></h2>
<div class="method hasBottomDivider">
<h3 id="checkSmoothing">checkSmoothing</h3>
<div class="fullMemberString">
<div class="clearfix floatholder">
<div class="floatbox code">function <b>checkSmoothing</b> (
</div>
<div><span class="code">img:String) : Void</span></div>
</div>
</div>
<div class="description">Check whether smoothing can be enabled</div>
</div>
<div class="method hasBottomDivider">
<h3 id="loadImage">loadImage</h3>
<div class="fullMemberString">
<div class="clearfix floatholder">
<div class="floatbox code">function <b>loadImage</b> (
</div>
<div><span class="code">img:String) : Void</span></div>
</div>
</div>
<div class="description">Start loading an image</div>
<div class="boxWithBorder">
<div class="boxedElem">
<div class="contentHolder"><span class="title">Parameters:</span><div class="item">
<div class="floatbox code colorizedCode">img<span class="itemSeparator">:</span></div>
<div>URL of the image to load</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="methodSection">
<h2 class="hasBottomDivider"><span id="Eventhandlers">Event handlers</span></h2>
<div class="method hasBottomDivider">
<h3 id="onLoadFinished">onLoadFinished</h3>
<div class="fullMemberString">
<div class="clearfix floatholder">
<div class="floatbox code">function <b>onLoadFinished</b> (
</div>
<div><span class="code">)</span></div>
</div>
</div>
<div class="description">event handler for finished loading</div>
</div>
</div>
<div class="footer"><span class="docFooter"><span class="createdWith">Created with <a href="http://visiblearea.com/visdoc/">VisDoc</a></span><span class="separator">|</span><span class="creationDate">Tuesday, 07 November 2006, 14:45:41</span><span class="separator">|</span><a href="#" onclick="showTOC(); return false;" class="showToc">show TOC</a><a href="#" onclick="hideTOC(); return false;" class="hideToc">hide TOC</a></span><span class="tocFooter"><a href="#" onclick="hideTOC(); return false;" class="hideToc">hide TOC</a></span>
</div>
</div>
</div>
</body>
</html>