/docs/asdoc/en/aw/external/jsinterface/JSSimple.html
HTML | 264 lines | 225 code | 30 blank | 9 comment | 0 complexity | 866b2c466c6d37104b960102bafe1f3c MD5 | raw file
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
- <link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
- <meta content="JSSimple,aw.external.jsinterface.JSSimple,addSimpleType,getSimpleData,isSimpleType,removeSimpleType" name="keywords">
- <title>aw.external.jsinterface.JSSimple</title>
- </head>
- <body>
- <script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
- <!--
- asdocTitle = 'JSSimple - API Documentation';
- var baseRef = '../../../';
- window.onload = configPage;
- --></script>
- <table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
- <tr>
- <td align="left" class="titleTableTitle">API Documentation</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All Packages</a> | <a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All Classes</a> | <a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a> | <a href="../../../index.html?aw/external/jsinterface/JSSimple.html&aw/external/jsinterface/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
- </tr>
- <tr class="titleTableRow2">
- <td align="left" id="subTitle" class="titleTableSubTitle">Class JSSimple</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#methodSummary">Methods</a></td>
- </tr>
- <tr class="titleTableRow3">
- <td colspan="2"> </td>
- </tr>
- </table>
- <script type="text/javascript" language="javascript">
- <!--
- if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class JSSimple"); titleBar_setSubNav(false,false,false,false,false,false,true,false,false,false,false,false,false,false);}
- --></script>
- <div class="MainContent">
- <table cellspacing="0" cellpadding="0" class="classHeaderTable">
- <tr>
- <td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">aw.external.jsinterface</a></td>
- </tr>
- <tr>
- <td class="classHeaderTableLabel">Class</td><td class="classSignature">public class JSSimple</td>
- </tr>
- <tr>
- <td class="classHeaderTableLabel">Implements</td><td><a href="IJSSimple.html">IJSSimple</a></td>
- </tr>
- </table>
- <p></p>
- Its a ready wrapper object for objects, transferred to JavaScript directly.
- It allows transferring objects as is, without links or saving in the stack.
- If you need to transfer an object from Flash Player environment directly to
- JavaScript without any transformations then you should wrap it in this object.
-
- <p></p>
- <br>
- <span class="label">Example</span>
- <br><div class='listing'><pre>
- package {
- import aw.external.JSInterface;
- import aw.external.jsinterface.JSSimple;
-
- import flash.display.Sprite;
-
- public class Test extends Sprite{
- public var initData:Object = {color:0xff00ff, size:[100, 300], thickness:2};
- public function Test():void{
- super();
- JSInterface.initialize(this, true);
- JSInterface.window.definedJavaScriptDrawFunction(this.graphics, new JSSimple(this.initData));
- }
- }
- }
- </pre></div>
-
- <p></p>
- <p>
- <span class="classHeaderTableLabel">See also</span>
- </p>
- <div class="seeAlso">
- <a href="../jsinterface/IJSSimple.html" target="">aw.external.jsinterface.IJSSimple</a>
- </div>
- <br>
- <hr>
- </div>
- <a name="methodSummary"></a>
- <div class="summarySection">
- <div class="summaryTableTitle">Public Methods</div>
- <table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
- <tr>
- <th> </th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined by</th>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#JSSimple()">JSSimple</a>(d:Object)</div>
- <div class="summaryTableDescription">
-
-
-
- </div>
- </td><td class="summaryTableOwnerCol">JSSimple</td>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#addSimpleType()">addSimpleType</a>(obj:Object):void</div>
- <div class="summaryTableDescription">[static]
-
-
-
- </div>
- </td><td class="summaryTableOwnerCol">JSSimple</td>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#getSimpleData()">getSimpleData</a>():*</div>
- <div class="summaryTableDescription">
- Its a method that retrieves an object transferred to the constructor as a set of simple data.</div>
- </td><td class="summaryTableOwnerCol">JSSimple</td>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#isSimpleType()">isSimpleType</a>(obj:Object):Boolean</div>
- <div class="summaryTableDescription">[static]
-
-
-
- </div>
- </td><td class="summaryTableOwnerCol">JSSimple</td>
- </tr>
- <tr class="">
- <td class="summaryTablePaddingCol"> </td><td class="summaryTableInheritanceCol"> </td><td class="summaryTableSignatureCol">
- <div class="summarySignature">
- <a class="signatureLink" href="#removeSimpleType()">removeSimpleType</a>(obj:Object):void</div>
- <div class="summaryTableDescription">[static]
-
-
-
- </div>
- </td><td class="summaryTableOwnerCol">JSSimple</td>
- </tr>
- </table>
- </div>
- <script type="text/javascript" language="javascript">
- <!--
- showHideInherited();
- --></script>
- <div class="MainContent">
- <a name="constructorDetail"></a>
- <div class="detailSectionHeader">Constructor detail</div>
- <a name="JSSimple()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">JSSimple</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">constructor</td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public function JSSimple(d:Object)</code><p>
-
-
-
- </p><span class="label">Parameters</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20px"></td><td><code><span class="label">d</span>:Object</code></td>
- </tr>
- </table>
- </div>
- <a name="methodDetail"></a>
- <div class="detailSectionHeader">Method detail</div>
- <a name="addSimpleType()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">addSimpleType</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public static function addSimpleType(obj:Object):void</code><p>
-
-
-
- </p><span class="label">Parameters</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20px"></td><td><code><span class="label">obj</span>:Object</code></td>
- </tr>
- </table>
- </div>
- <a name="getSimpleData()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">getSimpleData</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public function getSimpleData():*</code><p>
- Its a method that retrieves an object transferred to the constructor as a set of simple data.
- It is used when forming a request to JavaScript environment and service information is generated
- for all complex objects. This information will be transferred. This object used as wrapper
- guarantees transfer of the original object to JavaScript environment directly, without writing
- it to stack and transferring additional information.
-
-
- </p><p></p>
- <span class="label">Returns</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20"></td><td><code>*</code></td>
- </tr>
- </table>
- </div>
- <a name="isSimpleType()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">isSimpleType</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public static function isSimpleType(obj:Object):Boolean</code><p>
-
-
-
- </p><span class="label">Parameters</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20px"></td><td><code><span class="label">obj</span>:Object</code></td>
- </tr>
- </table>
- <p></p>
- <span class="label">Returns</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20"></td><td><code>Boolean</code> — Boolean
- </td>
- </tr>
- </table>
- </div>
- <a name="removeSimpleType()"></a>
- <table cellspacing="0" cellpadding="0" class="detailHeader">
- <tr>
- <td class="detailHeaderName">removeSimpleType</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule"> </td>
- </tr>
- </table>
- <div class="detailBody">
- <code>public static function removeSimpleType(obj:Object):void</code><p>
-
-
-
- </p><span class="label">Parameters</span>
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="20px"></td><td><code><span class="label">obj</span>:Object</code></td>
- </tr>
- </table>
- </div>
- <br>
- <br>
- <hr>
- <br>
- <p></p>
- <center class="copyright">
- </center>
- </div>
- </body>
- </html>
- <!-- -->