Trouble using exact_fit with Gaia and as3

I'm building a flash site (with Flash CS4 and AS3) inside of the Gaia framework.
I want to let my visitors toggle between Exact_Fit and No_scale, and I've attached the following code to be triggered by the toggle button.
function toggleExactFit(event:MouseEvent):void
            trace ("Here in toggleExactFit to change StageScaleMode");
            if (stage.scaleMode == StageScaleMode.NO_SCALE)
                   stage.scaleMode = StageScaleMode.EXACT_FIT;
                   this.stage.align=StageAlign.TOP_LEFT;
            else
                stage.scaleMode = StageScaleMode.NO_SCALE;
                       //  stage.align=StageAlign.TOP_RIGHT;
            trace ("Here in toggleExactFit - stage.scaleMode now = " + stage.scaleMode);
Here are my import statements:
    import flash.display.*;
    import flash.events.*;
    import com.greensock.TweenMax;
    // Imports used by Global Navigation
    import net.kaegi.navigation.NavigationManager2;
    import net.kaegi.navigation.NavigationButton2;
    import net.kaegi.events.NavigationEvent;
    import flash.text.StyleSheet;
    import flash.text.TextField;
    import com.greensock.easing.*;
    import gs.*;
    import flash.media.*;
    import flash.text.*;
    import flash.display.StageDisplayState;
    import flash.display.StageAlign;
    import flash.display.StageScaleMode;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    import flash.events.MouseEvent;
    import flash.ui.*;
    //import fl.video.MetadataEvent; - ONLY with flv playback component maybe
    import flash.media.SoundMixer;
This partially works.  When the toggle button is clicked, the site does stretch out to try  to fill the whole screen, but everything is shifted down by about a  hundred pixels and to the right by a couple hundred, so I can't see the  right side or lower part of my website.  I have my stage set to 960 x  620 pixels, and I checked through my different FLAs to make sure content  wasn't spilling past that boundary.
I was trying to get help on the Gaia forums, but one of theri moderators moved the post, saying this was an actionscript question, not a Gaia issue.
So, before going back to the Gaia forums, I want to make sure I have my as3 right and haven't overlloked anythying.
Any suggestions as to what I might have messed up or how to fix it?

Thanks.  I ran the very test you suggested last night in a standalone fla and the code worked fine, and I sent a note to the moderator this morning (who'd originally pulled my thread as 'non-Gaia related').  The moderator steered me in a new direction (away from exact_fit and toward an onResize function included in Gaia) so trying to get that worked out right now.
I left my post here because I often get a more nuanced understanding of things after asking questions in the Adobe forums and I don't have much experience with exact_fit, noscale and best practices for resizing and scaling content in accord with browser changes.
Thanks for your help.

Similar Messages

  • McAfee SiteAdvisor is no longer working with my Safari 8.0.  I never had trouble using it with Safari before this latest version.  Has anyone else had this problem?

    McAfee SiteAdvisor is no longer working with my Safari 8.0.  I never had trouble using it with Safari before this latest version.  Has anyone else had this problem?  I contacted McAfee support and they said nobody else is reporting this issue.

    Wow, life is certainly tough for you.
    S***t happens.  That's why there's a warranty.

  • Trouble using AirPlay between iMac and AppleTV

    I'm running OS X Lion 10.7.5 and I'm having trouble using AirPlay between iMac and AppleTV (2nd Gen).  It used to work fine, but for some reason it just stopped responding.  I can see my media on my iMac from AppleTV and I can see AppleTV from my iMac when attempting to use AirPlay.  However, when I try to pull or push media from my iMac to AppleTV it just stalls and never loads.  AirPlay works fine from my iPhone and iPad with AppleTV - it's limited to my iMac only. 
    I'm using a Netgear R7000 wireless router and a Netgear AC120 WiFi Extender and as such, I have 4 available wireless networks (2 from the router and 2 from the extender / 2 - 2.4 GHz and 2 - 5 GHz).  My internet access is great and my network performance is good across the board.  All of my software/firmware is up to date (iMac, AppleTV and router/extenders). I've tried all combinations (mixing/matching) all of my wireless networks between devices (iMac/AppleTV) - nothing makes a difference (again, AirPlay works fine between my mobile devises/AppleTV).  Netgear Genie has been making changes to my network settings as new firmware has been installed in both the router and extender.  I'm guessing there is something screwy going on with the network settings on the iMac, but I can't figure it out.
    Anyone have any suggestions?
    Thanks!

    I'm glad you got it all working. Out of interest, how do you (or your son) connect to the internet now? Is it just a dial-up connection? If it is, I am sure you know that, even if you get the Apple TV to share the connection, the speed will seriously limit the use of many of the Apple TV's features.
    The Airport Extreme is a great router but you will need a DSL or cable modem as well as it won't connect to the internet without one. There are many great (and cheaper!) combined modem/routers available if your son wants to get a high-speed network up and running at lower cost. Any other computers, phones, games consoles etc that you may have in the house can then all connect easily.
    I hope that I have helped a little and I will look out for future posts in case I can help again.

  • Any Problems using SSL with Safari and the move with Internet explorer to require only TLS encryption.

    Any Problems using SSL with Safari and the move with Internet explorer to require only TLS encryption.

    Hi .
    Apple no longer supports Safari for Windows if that's what you are asking >  Apple apparently kills Windows PC support in Safari 6.0
    Microsoft has not written IE for Safari for many years.

  • Using url with username and password in URL class

    Hi,
    I'm writting an applet in which I use getAppletContext().showDocument with an URL.
    The problem is that I'm using URLs with username and password (http://user:[email protected]/page) and it isn't working because the browser is getting the URL http://user/page.
    Is this a bug in the URL class? Or in the showDocument method?
    Is there any way to make this work?
    Thanks for any help,
    Pedro Prospero Luis ([email protected])

    I'm not sure whether this is supported behaviour. I've had this syntax fail to work in the Netscape address bar so I can't recommend it as an approach for authentication.
    If you want to authenticate the user before redirecting to the page, though, you could try creating a connection to another page on the same server and sending the authorization information then. Your browser may then be successfully authenticated.
    See http://www.javaworld.com/javatips/jw-javatip47.html for information on this.
    You might not need to read back the page from the server, just connect to it. Might work.

  • Hello, I'm using ubuntu with firefox5 and can not find the option to import my bookmarks file backup

    Hello, I'm using ubuntu with firefox5 and can not find the option to import my bookmarks file backup

    Is that Ubuntu 11.04?
    Ubuntu 11.04 displays window menus in the control bar at the top of the screen<br />
    Click on Bookmarks/Show All Bookmarks then move your mouse to the left upper corner toward Firefox Web Browser.<br />
    You'll get pop up menu (Organize, Views and Import and Backup).<br />

  • After itunes finishes restoring my ipod touch 8gb, itunes still says itunes has detected an ipod touch recovery mode. You must restore it before using it with itunes. and i dont knwo what to do

    after itunes finishes restoring my ipod touch 8gb, itunes still says itunes has detected an ipod touch recovery mode. You must restore it before using it with itunes. and i dont know what to do

    Are you sure it is 1043? I've never seen that error before. But you can try disabling your security software, connecting the phone to a USB port directly on the computer (not a hub), and trying to restore again.

  • WebService with remoting and AS3

    Hi at all,
    last day i have ask the solution in order to work with
    Webservice with AS3;
    I have try to use Remoting before download and install many
    3th party
    webservice class (like wellconsiderer.com component), but
    without
    success: i can't call ASMX file with remoting.
    <CODE>
    import flash.net.NetConnection;
    import flash.net.Responder;
    var myResult:Function = function(o:Object)
    trace("result="+o);
    var myStatus:Function = function (o:Object)
    trace("status="+o.code+"__"+o.description);
    var myResponder:Responder = new Responder(myResult,myStatus);
    NetConnection.defaultObjectEncoding = ObjectEncoding.AMF0;
    var a:NetConnection = new NetConnection();
    a.objectEncoding = ObjectEncoding.AMF0;
    a.connect("
    http://localhost/webservices/management/Manager.asmx?WSDL");
    a.call("loginAdministrator", myResponder,
    "username","password");
    </CODE>
    Why i receive "Error opening URL..." ?
    andrew

    While I can offer a couple ideas, you'll need to spend some time figuring out how to use Flash... maybe get some formal training with it.
    For the photographs, create each set of them as a movieclip, and give each movieclip an instance name so that you can control its visibility using code.  Initially you will want to set the visible property of them all to false, likely done in the first frame of the timeline (ex: imageGrp1.visible = false; ).  Then you will use your buttons to make them visible.
    To code one of the buttons, you need to assign it an instance name as well.  Then you need to assign an event listener for that button to detect when it gets clicked, and an event handler function to go with the event listener... the listener calls the function into action when the event occurs.
    ex:
    // the event listener for a button with an instance name of imgGrp1Button...
    imgGrp1Button.addEventListener(MouseEvent.CLICK, showGrp1);
    // and the event handler function for the CLICK listener
    function showGrp1(evt:MouseEvent):void {
          imageGrp1.visible = true;
    If you want to hide any visible set when you select a new one, then you can create a function that sets them all visible = false and call that function both at the start in frame 1 and in each button event handler function (before you set the selected set to be visible).

  • Hello. I am having trouble using Mobileme with microsoft oulook 2010. .The error Mobileme has stopped working . Can anybody help. ??Thanks

    Hello
    I am having trouble using Microsoft Outlook 2010. When starting Microsoft Outlook displays the error message Mobileme has stopped working. Can anybody help.
    Thanks

    Well yes, of course you are having trouble using MobileMe because MobileMe no longer exists and has not existed for the last 2 years at least.
    MobileMe has been replaced by iCloud, so you will never be able to use MobileMe because it does not exist.
    Also, I would suggest that you look more closely before you post, because you have posted this in an iPhone forum and this question has nothing to do with iPhones.  You would get more help if you posted in the correct forum.

  • I can't seem to see sync my mac and iphone using iCloud with numbers and pages how can i correct this?

    Hi
    I've used Numbers and Pages for IOS for sometime now and when i use safari to look at my icloud account i can see all my files. Recently i bought Numbers for Mac and now whenever i create a spreadsheet on my mac i can't see it on my iphone but i can if i login to icloud. In fact i can only see about 16 files on my iphone when there is over 40 files.
    Although i don't yet have pages for mac i now have a similar problem with Pages, whenever i edit a file or even create a file on IOS it doesn't appear in icloud.
    I did think it was something to do with me not selecting backup to icloud so i then spent £14 to upgrade my storage to 15GB and that hasn't helped.
    I've checked all the settings and can't see anythng that will cause the problem.
    My iphone is running IOS 6 and my Mac is running Mountain Lion 10.8.2
    Does anyone know how to correct this mess?
    Many thanks in advance.
    Mick.

    Problems with buttons and links at the top of the page not working can be caused by an extension like the Yahoo! Toolbar or a Babylon extension that extents too much downwards and covers the top part of the browser window and thus makes links and buttons in that part of the screen not clickable.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode

  • Using webaccess with ipad and android tabs

    Because of different browser agent, the gw 2012 webclient has not the
    same behavior as the standard webclient using firefox or chrome on pc.
    I want to access the documents folder. How to do it on this mobile devices?
    with regards and thx
    Go
    Gotthard Anger
    Anwenderbetreuung Netzwerkadministration
    Landeskirchenamt der EKM
    [email protected]
    Mails an diese Adresse werden nur nach vorheriger Ansage gelesen!
    Mails for this address will only be read if you trigger me before.

    Project status at this time:
    I edited webacc.cfg and commented out the lines for ipad and android
    tabs, e.g.
    #templates.useragent.1.id=*Linux*Android*GT-P*
    #templates.useragent.1.interface=mobile
    Now these devices bring up the whole web application.
    now I only have to fix this odd behaviour of the webaccess client
    loading documents
    Am 20.09.2012 09:50, schrieb Gotthard Anger:
    > Am 20.09.2012 09:47, schrieb Gotthard Anger:
    >> Because of different browser agent, the gw 2012 webclient has not the
    >> same behavior as the standard webclient using firefox or chrome on pc.
    >>
    >> I want to access the documents folder. How to do it on this mobile
    >> devices?
    > Edit:
    > no native access to groupwise server, datasync only via active sync
    >>
    >> with regards and thx
    >>
    >> Go
    >>
    >>
    >>
    >
    >
    Gotthard Anger
    Anwenderbetreuung Netzwerkadministration
    Landeskirchenamt der EKM
    [email protected]
    Mails an diese Adresse werden nur nach vorheriger Ansage gelesen!
    Mails for this address will only be read if you trigger me before.

  • Populating a Combobox using Remoting with AMF and PHP

    Hello all
    I am using Zend framework and Flex 3.4 to create a webapp. I am stuck at how to populate a combobox dynamically using the service I created in PHP.
    In some of examples I saw that result of database query was being converted into XML and then sent to Flex. This seems a little too time-consuming if I have to do it every time. I saw some examples in Adobe Docs about Remoting with AMF and PHP. That seems like a better approach although how it would be applicable here is beyond me right now.
    Can somebody guide me in correct direction?
    Thanks and Regards
    Shivik

    Try this: http://code.google.com/p/as3flexdb/ is very easy to use and it
    will help.
    All you need to populate a combo is:
    <mx:ComboBox dataProvider="{query.Records} /

  • Bettering your English, useful sites with tips and tricks

    Since a lot of us, including me, are non-native English speakers we do make mistakes. Sometimes they lead to funny threads and/or amusing discussions like this one: Re: how to post a questions to forum
    In this particular one I linked to the site:
    [DailyWritingTips|http://www.dailywritingtips.com/category/misused-words/]
    Another of my 'favorite' typo's has to do with the word definitely. To get that right surf to:
    [d-e-f-i-n-i-t-e-l-y|http://www.d-e-f-i-n-i-t-e-l-y.com/]
    Here's my question to you all:
    Please contribute by adding sites to this thread so we all learn if we should use [Then or Than?|http://www.dailywritingtips.com/then-or-than/] and understand more about common mistakes made here on the forums and in our other (business) communications. Of course you may accompany them by examples of texts horribly gone wrong by simple typo's but let's not compete with the funny threads thread.
    Thanks in advance!
    Jurjen

    >
    Jurjen Heeck wrote:
    > Since a lot of us, including me, are non-native English speakers we do make mistakes.
    > Another of my 'favorite' typo's has to do with the word definitely. To get that right surf to:
    > [d-e-f-i-n-i-t-e-l-y|http://www.d-e-f-i-n-i-t-e-l-y.com/]
    >
    I think native speakers get that one wrong just as frequently as non-native speakers, if not more often. I hate seeing "definately".
    But it's funny when people type "definatly" and MS Office automatically replaces this with "defiantly" ^^. I often get e-mails from colleagues saying things like "We should defiantly do this" ... yes, we should definitely put all our defiance into this .
    >
    Harish T K wrote:
    > Also using "could of" as in "You could of done this some other way." It probably means "You could have done it some other way.
    >
    > This is not necessarily always by non-native speakers.
    Actually this particular mistake is made almost exclusively by native speakers (or quasi-native speakers, like people from Hong Kong or India who start learning English at 3 or so). I wondered for a long time how they could possibly confuse "have" and "of", until someone explained that they are not replacing "would have", "could have" etc. with "would of", "could of", but "would've", "could've". Additionally native speakers pronounce "of" approximately as "ev" (the o in "of" is reduced to a schwa if the "of" is not in a position where it is emphasized) ... which is exactly the same or very similar to the way the 've part of "would've", "could've" is pronounced. So for a native speaker this is almost as innocent a mistake as writing "you're" for "your" or "there" for "their".
    I hate this error very much. For non-native speakers something like "would of" is extremely hard to parse, because when reading this and pronouncing the words in our heads we do not reduce the "of" to "ev", we read it kind of like "off", and cannot associate this with 've or have.
    >
    Matt wrote:
    > Never say "a lot", say "a great deal". Or "quite a few".
    There is nothing wrong with "a lot" (when properly separated by a space). This is perfectly correct English.
    >
    Matt wrote:
    > If a group or collection is countable then use "fewer" rather than "less". 
    This statement is not correct. One can use "less" for both countable and uncountable nouns. The usage with uncountable nouns even predates the one with countable nouns (9th vs. 14th century). But there are guides that recommend against using "less" with countable nouns and some even claim this to be incorrect.
    What I hate very much is when people use "less" when they should use "little". Only non-native speakers do this, of course. But quite often and even in official documents . I find this really cringeworthy. "There is too less time to do this or that" for example. The opposite of much is little, not less! Little cannot only mean small.
    A funny mistake, also in an official document: "The information in this document is objective to change." instead of "... subject to change". I think the author must be too object-oriented .

  • How to use JMS with tomcat and Axis

    Hello
    I'm new in ii, so i'm still a little bit lost. I have been implementing web services with tomcat and Axis. However, these services are synchronous and I would like that some services were asynchronous.
    I've been reading about the topic and I've found that JMS is a good solution for it. I have already downloaded JMS in my computer but now I don't know what else to do. I've been trying to run the SimpleQueueSender.java example but I get the error:
    JNDI API lookup failed: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    But I have attached all .jar from F:\Sun\MessageQueue\lib
    In addition to this, for my first webservices I used the Java2WSDL, WSDL2Java and AdminClient (axis tool) to create my web services bindings, stubs and skeletons and to deploy the web service on the server. Do I have to use them now with JMS? or now the deployment must be performed in a different way?
    Thank you in advanced,

    The error means that you have to specify the type and location of your jndi store. You could create a jndi.properties file and put two properties in it:
    java.naming.provider.url=file\\\:////var/jndi
    java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
    for a file based jndi store. Then you have to make sure your jndi.properties file is in your CLASSPATH. Then you have to use something like imqadmin to create your jndi store and store in it your administrative objects like Queues and QueueConnectionFactories.

  • Using databases with Flash and PHP

    Hi, everyone!
    I`m a PHP newbie. I just learned PHP so that I can use
    databases with Flash.
    I`ve got a .php script that contains html that loads up my
    .swf file. The .swf file is the core of my site. What I want to
    know is if I can call some PHP functions (that I have wrote in the
    .php script) from within the .swf file... This functions would
    perform the reading and updating of my database.
    The only way I know of to modify a database from Flash is
    using the POST and GET methods. But that opens up a new browser
    window in which the PHP script is called. And that only handles
    writing in the database. So, what if I just want to read from the
    database some values and insert them into a TextField in Flash? How
    do I do that?
    Thanks! Ardy

    1. Goggle "Flash and mySQL" and you'll get a listing of alot
    tutorials
    2. I'm also just learning. Here's a great URL to start:
    Building with Flash and MySQL
    That's right, a Flash-based blog — it sounds a little
    loony, but this blog pulls content from a MySQL database and feeds
    it into the dynamic Flash frontend ...
    www.webmonkey.com/programming/php/tutorials/tutorial2.html -
    20k - Cached -

Maybe you are looking for