Welcome, Guest
  • Author Topic: I need same size as screen size .....  (Read 5652 times)

    aktell

    • Server what's that
    • *
    • Posts: 16
      • View Profile
      • Email
    I need same size as screen size .....
    « on: 08/22/08, 17:21 »
    Hi there,

    I need same size window to open in screen size through the html Text property in Flex 3.

    This works fine
    Code: [Select]
    target"_blank" but is there a way to also open the window in full screen size suited to the computer viewing the app.

    Code: [Select]
    <mx:Text
    <mx:htmlText>

    <![CDATA[<a href="http://www.My Name.com/" target='blank'>www.MyName.com<font><br/>]]>

    </mx:htmlText>

    Thanks in advance aktell

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: I need same size as screen size .....
    « Reply #1 on: 08/23/08, 09:46 »
    Look in the Homepage of this site, Library's tools, JSGenerator to get the code for open a window using JS.
    Then consider you're using AS3, so getURL doesn't work, you should use:

    navegateToUrl(new URLRequest("....js stuff....."))

    Another choice is to use ExternalInterface to call a JS script inside an HTML page

    Jorge


    aktell

    • Server what's that
    • *
    • Posts: 16
      • View Profile
      • Email
    Re: I need same size as screen size .....
    « Reply #2 on: 08/23/08, 22:08 »
    Hi there,

    I must admit I have never used JS in FLEX, never have taken the time to find out. The code below is from your JS Generator and it worked fine on your site. But when I insert the code I end up with ONE ERROR in the end.

    Code: [Select]
    <mx:LinkButton label="FOR ..."
    x="600" y="530"
    color="#5f89b9"
    click="{navigateToURL( new URLRequest("javascript:NewWindow=window.open('http://www.google.com','newWin','width=,height=,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=Yes'); NewWindow.focus(); void(0);"))}"/>

    Code: [Select]
    "mx:LinkButton" must be followed by either attribute specifications, ">" or "/>"

    Just can't find any faults ???

    Regards aktell

    Ronald Wernecke

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 6203
      • View Profile
      • Professional Support
      • Email
    Re: I need same size as screen size .....
    « Reply #3 on: 08/24/08, 02:01 »
    The Problem is the double quote at "javascrip -
    this closes the click command, which in return causes the error.
    Use single Quote, or escape the quote by /.
    happy flashing
    8)
    Ronald

    aktell

    • Server what's that
    • *
    • Posts: 16
      • View Profile
      • Email
    Re: I need same size as screen size .....
    « Reply #4 on: 08/26/08, 23:11 »
    Hi there,

    I have been trying the last couple of days and I do not get it to work. I had a go at the External JS as well, but NO go.

    Please could you tell me what you mean by escaping the quote /. How do I use this one in the code I got ??? as single quote does not work.

    Regards aktell