Skip navigation
Currently Being Moderated

Question about states

Dec 12, 2012 2:26 PM

Hi All,

I have a flex app using two states:

<s:states>

        <s:State name="Dashboard"/>

        <s:State name="Login"/>

</s:states>

This app shows the login state in a corner of an ASP.net app with small width.

<s:BorderContainer includeIn="Login" cornerRadius="0" width="253" height="400" backgroundImage="{imgCls}" >

After the user pass login the app change to the Dashboard state but still show the app in the small corner of the ASP.net app.

<s:BorderContainer cornerRadius="0" width="100%" height="100%" includeIn="Dashboard">

How can I take over the whole screen of the browser after user pass the login?

Thanks in advance.

Best,

 
Replies
  • Currently Being Moderated
    Dec 15, 2012 12:33 PM   in reply to jfb00

    If I understand the question; you want the app one size upon load; but you want to make it bigger after they login.

     

    A Flash app is, basically, just a square set up in the browser.  Flex / Flash has no control over that square and cannot change it.

     

    You may be able to work something up using ExternalInterface to run a JavaScript method to change the dimensions of the Flex app.

     

    Yes, popping open a windw or opening a new URL will always reload a Flex page; and that usually means resetting the app to the default state; which in this case is not logged in.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points