var popup = window.createPopup( ); var bod = popup.document.body; bod.style.border = "3px solid #ff8800"; bod.style.padding = "2px"; bod.style.backgroundColor = "lightyellow"; bod.innerHTML = <p style='font-family:Arial, sans-serif; font-size:10px'>Some popup text.</p>"; popup.show(100, 100, 100, 26, document.body);"
Hi Atif thanks for the reply!
public function loadSwfInNewWindow():void
Sorry for being a noob =)
in Flex you may write something similar
test.html will contain your game.swf with its html wrapper.
Instead, you should really stick to the PopUpManager.
With best regards,
Loggin in is a classic example of when to use states.
The base state will be your app, and the "login" state will be your login state. Set the application currentState to 'login' in the creationComplete event.
<mx:Button label="Login" click="this.currentState=''"/>
<mx:VBox id="vb" width="100%" height="100%">
<mx:Label text="Login Done - Now in Main App"/>
navigateToURL() has its uses but please be careful not to create an html applicatuion using Flex. That's like hitching a Ferrari to a team of mules.
Thanks for everyone's reply.