<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/01/27/displaying-a-label-controls-text-as-a-password/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
		xmlns:local="*"
		layout="vertical"
		verticalAlign="middle"
		backgroundColor="white" viewSourceURL="srcview/index.html">

	<mx:HBox>
		<mx:Label text="Password:" />
		<local:MyLabel id="lbl"
				text="The quick brown fox jumped over the lazy dog."
				truncateToFit="true"
				width="100"
				creationComplete="lbl.tf.displayAsPassword = true;" />
	</mx:HBox>

</mx:Application>

