flex - Adobe air: Navigate between .html pages? -


i thought of myself being quite @ learning basic things of google , cup of coffee, when trying head around basic adobe air development, have totally failed.

apparently there's plenty of tutorials loading data local storage remote places (ajax), have yet not seen clear instruction on how navigate between .html pages in applications directory.

obviously <a href="" /> isn't going cut it, guess need dom javascript magic it, yet not have seen.

how can navigate between .html pages in applications directory properly?

thanks

ok, understand doing. hand't realized air app can embedded html document javascript hooks air framework. pretty cool! more information can found here: http://help.adobe.com/en_us/air/1.5/devappshtml/ws5b3ccc516d4fbf351e63e3d118666ade46-7ecc.html

anyways, since html, of html rules apply. have little "hello world" app uses both anchor navigation javascript navigation:

<html>  <head>      <title>hello world</title>      <script type="text/javascript" src="airaliases.js"></script>      <script type="text/javascript">          function appload(){              air.trace("hello world");          }       </script>  </head>  <body onload="appload()">      <h1>hello world</h1>      <a href="airhtml2.html">go next</a>     <button onclick="location.href = './airhtml2.html'">go next</button> </body>  </html> 

in either case (clicking link or clicking button calls location.href, navigate 1 page next.

it didn't work me @ first, because wasn't packaging second page application. in case, had add airhtml2.html page adt packager, don't know how building app... environment using?

anyways, seems pretty straight forward, actually. :) first page second page


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -