<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
	<mx:Script>
		<![CDATA[
	private var file:FileReference = new FileReference();
	private var path:URLRequest =new URLRequest("C:\Documents and Settings\vijay\My Documents\Flex Builder 3\Holiday_Trip\src\Classes\one.txt");
	public function upload():void
	{
		 file.browse().toString();
	SelectedFile.text=file.name.toString();	
	}			
		]]>
	</mx:Script>
	<mx:Button x="421" y="162" label="Button" click="{}"/>
	<mx:Label x="239" y="164" text="Label" id="SelectedFile"/>
	
	
</mx:Application>
