<html>

	<head>
		<meta http-equiv="content-type" content="text/html;charset=UTF-8">
		<meta name="generator" content="Adobe GoLive 6">
		<title>Binary API Sample Extension</title>
	</head>

	<body>
		<hr>
		<p>ADOBE SYSTEMS INCORPORATED</p>
		<p>Copyright 2004 Adobe Systems Incorporated<br>
			All Rights Reserved</p>
		<p>NOTICE: Adobe permits you to use, modify, and distribute this 
		file in accordance with the terms of the Adobe license agreement 
		accompanying it. If you have received this file from a source other 
		than Adobe, then your use, modification, or distribution of it requires 
		the prior written permission of Adobe.</p>
		<hr>
		<p><b>Extension Name:</b> BinaryAPISample</p>
		<p><b>Folder name: </b>BinaryAPISample</p>
		<hr>
		<p><b>Description:</b></p>
		<p>This sample demostrates how to draw an oval and return the power of arg1 to arg2 using the C Library funtions defined in the JSASample library using the Binary APIs.</p>
		<hr>
		<p><b>Module Definition:</b></p>
		<jsxmodule name="BinaryAPISample" debug info="This sample extension demonstrates draw diagram and count power of number using C library function." version="1.0">
		<p><b>Scripts:</b></p>
		<script><!--
//--------------------------------------------------------------------
// CALLBACK FUNCTIONS
//--------------------------------------------------------------------


//---------------------------------------------------------
// controlSignal -  called when the state of a control has changed
//
// Description:
// Return the power of arg1 to arg2.
//

function controlSignal(control) 
{
	Window.alert("Calling JSASample.power(2,4) = " + JSASample.power(2,4));
}


//---------------------------------------------------------
// drawControl - called when a custom control should be redrawn
//
// Description:
//   Use the draw object to create a custom visual representation
//   of the control.

function drawControl(control, draw) 
{
	if (control.name == "custom")
		JSASample.drawOval (draw.getDrawInfo());
}
//-->
</script>
		<hr>
		<p><b>User Interface Tags:</b></p>
		<p><b>JSXLocale</b> Specify localized versions of strings used in menu items, dialogs, alerts, etc.</p>
		<jsxlocale>
			<table border="1" cellpadding="0" cellspacing="2" width="180">
				<tr>
					<th>US</th>
					<th>DE</th>
					<th>FR</th>
				</tr>
				<tr>
					<td></td>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td></td>
					<td></td>
					<td></td>
				</tr>
			</table>
		</jsxlocale>
		<p><b>Palettes</b> Define Palettes here.</p>
		<jsxpalette name="BinaryAPISample" title="Binary API Sample" menu="0151" width="215" height="164" order="9102">
			<jsxcontrol type="custom" name="custom" posx="10" posy="10" width="112" height="32">
			<jsxcontrol name="static" type="static" value="Above diagram is created" posx="10" posy="60" width="150" height="20">
			<jsxcontrol name="static" type="static" value=" by C Library function JSASample.drawOval();" posx="10" posy="75" width="40" height="16">
		    <jsxcontrol type="Button" name="button" value="power (2,4) = ?" posx="10" posy="108" width="112" height="20">
		<p></p>
	</body>

</html>