so im switching back and forth between a flex app for making menus and a game using a plugin called panda3d. I biased the switching off a page on this site on switching content here. When i had both the plugin and the flex in as content in that example i was able to switch between them and the content would remain loaded. Yet for some reason when i wrote my own script for it(included below) when i switch back to the plugin it reloads... just trying to figure out how i keep it loaded so that somebody can pause the game and go back to the flex menu.
HTML Code:<htm<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script language="JavaScript" type="text/javascript"> function switchToGame() { document.getElementById("flexHolder").style.display="none"; document.getElementById("P3DHolder").style.display="inline"; } function switchToFlex() { document.getElementById("P3DHolder").style.display="none"; document.getElementById("flexHolder").style.display="inline"; } </script> <script src="RunPanda3D.js" language="javascript"></script> </head> <body> <div id="P3DHolder" class="omega13switch"> <script language="JavaScript" type="text/javascript"> function loadP3D(source) { P3D_RunContent('data', source, 'id', 'P3DFile', 'width', 680, 'height', 480, 'auto_start', '1'); } </script> </div> <div id="flexHolder" class="omega13switch"> <iframe id="flexFrame" frameborder="0" vspace="0" hspace="0" marginwidth="0" marginheight="0" width="680" scrolling="no" height="480" src="Omega13Packager.html"> </iframe> </div> </body> </html>







Bookmarks