03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

trace("\t name: "+target_mc._name);<br />

trace("\t url: "+target_mc._url);<br />

image_mcl.unloadClip(target_mc);<br />

};<br />

};<br />

var image_mcl:MovieClipLoader = new MovieClipLoader();<br />

image_mcl.addListener(mclListener);<br />

image_mcl.loadClip("http://www.helpexamples.com/flash/images/image1.jpg",<br />

image_mc);<br />

See also<br />

loadClip (MovieClipLoader.loadClip method), onLoadError<br />

(MovieClipLoader.onLoadError event listener)<br />

NetConnection<br />

Creates a NetConnection object that you can use with a NetStream object to invoke<br />

comm<strong>and</strong>s on a remote application server or to play back streaming video (FLV) files either<br />

locally or from a server.<br />

Method Description<br />

connect(); connect(comm<strong>and</strong>:String, ... arguments):void<br />

Opens a connection to a server.<br />

close(); close():void<br />

Closes the connection that was opened locally or with the server <strong>and</strong><br />

dispatches the netStatus event with a code property of<br />

NetConnection.Connect.Closed.<br />

connect (NetConnection.connect) method<br />

Opens a connection to a server. Through this connection, you can play back audio or video<br />

(FLV) files from the local file system, or you can invoke comm<strong>and</strong>s on a remote server.<br />

When using this method, consider the Flash Player security model <strong>and</strong> the following security<br />

considerations:<br />

■ By default, the website denies access between s<strong>and</strong>boxes. The website can enable access to<br />

a resource by using a cross-domain policy file.<br />

■ A website can deny access to a resource by adding server-side ActionScript application<br />

logic in Flash Media Server.<br />

■ You cannot use the NetConnection.connect() method if the calling SWF file is in the<br />

local-with-file-system s<strong>and</strong>box.<br />

496 ActionScript classes

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!