Skip to content

Commit

Permalink
Added compiled version, examples and make file
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldOfView committed Jun 2, 2011
1 parent ae7559a commit 94f469b
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 0 deletions.
Binary file added textfieldex.swf
Binary file not shown.
30 changes: 30 additions & 0 deletions textfieldex/examples/autosize.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<html>
<head>
<title>fieldofview krpano plugins - textfieldex plugin example</title>
<style>
body{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#FFFFFF; background-color:#000000; margin:0; padding:0; }
* html, * html body{ overflow: hidden; }
a{ color:#AAAAAA; text-decoration:underline; }
a:hover{ color:#FFFFFF; text-decoration:underline; }
</style>
</head>
<body>

<div id="krpanoDIV">
<noscript><table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Javascript not activated<br><br></center></td></tr></table></noscript>
</div>

<script type="text/javascript" src="../../../swfkrpano.js"></script>

<script type="text/javascript">
// <![CDATA[

var swf = createswf("../../../krpano.swf", "krpanoSWFObject", "100%", "100%");
swf.addVariable("xml", "autosize.xml");
swf.embed("krpanoDIV");

// ]]>
</script>

</body>
</html>
14 changes: 14 additions & 0 deletions textfieldex/examples/autosize.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<krpano version="1.0.8">
<events name="console" />

<preview type="grid(cube,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" details="16" />

<plugin name="test" url="../../textfieldex.swf"
align="center" autosize="left" autowidth="true"
html="Hello world"
css="p{color:#000000;font-family:Arial;font-size:14px}"
background="true" backgroundcolor="0xddddff" borderwidth="0"
shadow="5" shadowalpha="0.25" shadowblur="5"
multiline="false" editable="true"
/>
</krpano>
30 changes: 30 additions & 0 deletions textfieldex/examples/console.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<html>
<head>
<title>fieldofview krpano plugins - textfieldex plugin example</title>
<style>
body{ font-family:Arial, Helvetica, sans-serif; font-size:10px; color:#FFFFFF; background-color:#000000; margin:0; padding:0; }
* html, * html body{ overflow: hidden; }
a{ color:#AAAAAA; text-decoration:underline; }
a:hover{ color:#FFFFFF; text-decoration:underline; }
</style>
</head>
<body>

<div id="krpanoDIV">
<noscript><table width="100%" height="100%"><tr valign="middle"><td><center>ERROR:<br><br>Javascript not activated<br><br></center></td></tr></table></noscript>
</div>

<script type="text/javascript" src="../../../swfkrpano.js"></script>

<script type="text/javascript">
// <![CDATA[

var swf = createswf("../../../krpano.swf", "krpanoSWFObject", "100%", "100%");
swf.addVariable("xml", "console.xml");
swf.embed("krpanoDIV");

// ]]>
</script>

</body>
</html>
25 changes: 25 additions & 0 deletions textfieldex/examples/console.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<krpano version="1.0.8">
<events name="console" onxmlcomplete="showlog()" />
<action name="execute">
call(plugin[commandline].text);
set(plugin[commandline].html,);
</action>

<preview type="grid(cube,16,16,512,0xCCCCCC,0xFFFFFF,0x999999);" details="16" />

<plugin name="commandline" url="../../textfieldex.swf"
align="bottom" width="100%" height="20" x="0" y="150"
html="set(view.vlookat,-45)"
css="p{color:#ffffff;font-family:Courier;font-size:10px}"
background="true" backgroundcolor="0x000000" backgroundalpha="0.6" borderwidth="0"
multiline="false" editable="true"
onsubmit="execute();"
/>
<plugin name="call" url="../../textfieldex.swf" children="false"
align="bottomright" width="40" height="20" y="150"
html="CALL"
css="p{color:#ffffff;font-family:Courier;font-size:10px}"
background="false" borderwidth="0" zorder="1"
onclick="execute();"
/>
</krpano>
2 changes: 2 additions & 0 deletions textfieldex/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mxmlc -target-player=10.0.0 -use-network=false -static-link-runtime-shared-libraries=true -output=..\textfieldex.swf src\textfieldex.as
pause

0 comments on commit 94f469b

Please sign in to comment.