Liquid layouts not quite working... help!

Hi Guys,
I am hoping one of you will be able to help.
I have finished reading some books on AS3 and started working
on a liquid transition animation using actionscript 3.0 (see
attached .fla). Basically, I am setting the stage scaling to
NO_SCALE and playing with a 4:3 aspect photograph as a background.
I have setup an event listener to detect stage resizing so that the
background image is tweened to the correct aspect ratio. There are
two dynamic text fields keeping track of the stage dimensions for
debugging purposes.
The if statements in the listener function basically detects
if the width of the stage is larger than the height. Based on that
calculation the dimensions of the background image are in turn
recalculated. So if the stage width is larger than the stage
height, then the image will be tweened to have its height .75 of
the stage width amount; in the case of a stage height being larger
than the stage width, then the bg image width will be 1.33 times
the stage height.
Technically, the code works, but when you start playing
around with resizing, the stage dimensions registered on the text
fields don't really match what you see on the screen and I am
unsure if it's a bug or if the stage is trully that size. Sometimes
when I resize the screen I am positive the height of the stage is
larger than the width but the text fields state otherwise and the
code is behaving based on what the text fields register, which is
what is supposed to be doing, but the image doesn't crop correctly.
I need one of you actionscript gurus to look at the code and
tell me what you think mught be happening. I really appreciate
it.

first breez1 – in AS2 you are correct, that is how to
get properties of the Stage object. In AS3, it has changed.
Next for RGracia, here is a neat trick that will make your
code a bit easier to read and follow – at least it made
things easier for me. It is called the ternary operator and it
allows you to do a conditional and then assignments all in one
step. So you can do something like:
bg.width = (sw > sh) ? sw : sh * 1.33
That basically reads as, if sw is larger than sh assign the
value sw to bg.width otherwise assign sh times 1.33 to bg.width.
Basically if the part in parens is true then the value before the
colon is assigned and if the part in parens is not true then the
part after parens. Neat, huh?
Over all the basic set up here seems more or less correct.
I'm wondering if the problem comes from the tweens? I don't see
anyplace where you are stopping and deleting the old tweens.
Remember the RESIZE event happens a bunch of times when you resize
the window. Not just at the end of the movement – at least I
think that is what happens. So you might be assigning crazy
multiple tweens? Just a thought, you might just want to try it
without the tweens first to get it jumping to size, then try and
make the tweening work.
I don't think screen resolution is playing any part in the
the way the player detects the stage size. The stage size is the
size it is. I do remember when I was doing something like this
using AS2 and there was a bug with the way Firefox (or was it
Safari) sent the resizing events when I would change just the
height of the browser window. If I was just adjusting the height of
the window, no event was fired. As soon as a I adjusted the width,
BANG, they would both jump to the correct values. Perhaps that is
what you are experiencing?
Can you provide a link to the page?

Similar Messages

  • Muse CC 2014 does not open site's pages! and does not quit urgent help!

    I have Installed Muse cc 2014, and any site that I open (created in previus versions) after one first page does not open any other pages! also the application will not quit, any one else with this problem  (I have Win 8.1)

    Maybe it's best to ask this question in the Muse forum (Adobe muse experts will check this forum) Help with using Adobe Muse CC
    Did you try some basic troubleshoot steps yet? http://helpx.adobe.com/x-productkb/global/troubleshoot-system-errors-freezes-windows.html can you share the performed tests / checks?
    Good luck

  • My keyboard shortcuts have quit working - HELP!

    All,
    Can anyone tell me WHY my keyboard shortcuts—new window, close window—have quit working.
    It's a pain in the tuckus to have to open a window with a menu.
    It happened suddenly and would appreciate a fix if anyone has the same problem.
    Thanks!

    I change my Spotlight shortcut to Ctrl + Space and have no problems. I've never had a problem with use the Space Bar to get the Hand tool.
    Try restoring your preferences first before you take the trouble to reinstall. Here's how:
    http://pfl.com/trb

  • MySQL 4 Connection not quite working

    I am attempting a db connection to MySQL vsn. 4.0.12 from JDeveloper. It works in that the connection wizard test says 'success' and I can open the connection. However when open I can not see any tables in the JDeveloper tree. It does seem to indicate there is a table, but can not seem to get any details of it - e.g. name or structure.
    I have used :
    Connection Type = Third Party JDBC Driver
    Driver Name = com.mysql.jdbc.Driver
    URL = jdbc:mysql://localhost:3306/test (test is db name)
    I have also added this line to jdev.conf:
    AddJavaLibFile ../../jdbc/lib/mysql-connector-java-3.0.6-stable-bin.jar
    And I have placed the jar file indicated above in the directory as above.
    Any help appreciated.

    Under Tools > Preferences > Connections, make sure that "Show all Schemas" is selected.
    Hope this helps,
    Rob

  • Worker thread not quite working

    I had the standard 'waiting for a database' gray box problem. So I put my db calls into a worker thread. It was impractical to use the WorkerThread class that Sun distributes, so I wrote my own (see below). This solved the problem in most but not all cases.
    In some situations, the user is looking at one window that overlaps another. When a button on the top window is pushed, the top window is dispose()'d of, and the worker thread is started. In this situation, the gray box problems rears its ugly head, despite the use of the worker thread.
    Could that dispose() be causing the problem? Do I need to repaint the remaing window before calling the worker? If so, what command should I use? repaint()? setVisible(true)?
    Any thoughts or suggestions would be appreciated.
    Barnet Wagman
    My worker thread code:
    public class BossClass {  // The worker thread is an inner class of this one
            // The following fields get used by the worker thread;
            // could this be a problem? I don't think so.
        private transient byte outcome;
        private transient Object resultObject;
        private transient URL url;
        private transient Thread mainThread;
        private transient boolean allDone;
            // Sends a command to a server and gets a returned object
        public synchronized void send(URL url) throws IOException {
            // ^ I've tried this with and without the synchronized - no difference
         this.url = url;
         mainThread = Thread.currentThread();
         allDone = false;
         new SendThread();
         while( !allDone ) {
             try { Thread.sleep(mnemonaface.Constants.SEND_OP_SLEEP_TIME); }
                        // I've tried the sleep time = 100, 500, 1000 milliseconds
             catch( InterruptedException ix ) {}
        class SendThread implements Runnable, Serializable {
         SendThread() {
             (new Thread(SendThread.this)).start();
         public void run() {
                URLConnection uc = url.openConnection();   
                // Various things get done with the url connection
                allDone = true;
    }

    Instead of your method and inner class try this :
    public void sendURL(URL url) {
         this.url = url;
         Runnable sender = new Runnable() {
              public void run() {
                   URLConnection uc = url.openConnection();
         SwingUtilities.invokeLater(sender);
    }I hope this helps,
    Denis

  • Nearly there but not quite - Please help with display issue

    Hi,
    I had an issue with my mac starting which I resolved by replacing the graphics card. The mac now starts without issue BUT!
    In display preferences there is only one display resolution, no detect display button and if I try to calibrate the sliders have no effect
    I have tried resetting PRAM and SMC with no effect and also tried a different monitor
    Hardware Overview:
      Model Name:          Mac Pro
      Model Identifier:          MacPro3,1
      Processor Name:          Quad-Core Intel Xeon
      Processor Speed:          3 GHz
      Number Of Processors:          2
      Total Number Of Cores:          8
      L2 Cache (per processor):          12 MB
      Memory:          8 GB
      Bus Speed:          1.6 GHz
      Boot ROM Version:          MP31.006C.B05
      SMC Version (system):          1.25f4
      Serial Number (system):          CK******XYL
      Hardware UUID: *****
    ATI Radeon HD 5770: (Previously ATI Radeon HD 2600 XT)
      Chipset Model:          ATI Radeon HD 5770
      Type:          Display
      Bus:          PCIe
      Slot:          Slot-1
      PCIe Lane Width:          x16
      VRAM (Total):          1024 MB
      Vendor:          ATI (0x1002)
      Device ID:          0x68b8
      Revision ID:          0x0000
      ROM Revision:          113-C0160C-155
      EFI Driver Version:          01.00.436
      Displays:
    Display:
      Resolution:          1920 x 1200
      Depth:          32-Bit Color
      Core Image:          Software
      Main Display:          Yes
      Mirror:          Off
      Online:          Yes
      Quartz Extreme:          Not Supported
    Display Connector:
    Display Connector:
    <Edited By Host>

    Not everyone updates their hardware porfile but it should have been spotted that yours lists 10.5.8 which was a big clue and reason to ask and check what you are runnning.
    Apple sells 10.6.3. Unlike the prior two which did come out with 10.X.6 which would work and allow boot from DVD you may need the 10.6.8 on flash memory that comes with Lion except that is $69.
    We usually do but get tired now that we've been saying "ATI 5x70 needs 10.6.5 or later" when people upgraded their graphic card like you did.
    I wish that wasn't so. I don't know how ATI does it for Windows but they do have to retool their drivers when a new OS comes out but end up with a package that supports more than one OS version.

  • ITunes 11 home sharing with iPhone not quite working

    This morning I updated iTunes 11 to the newly released iTunes 11.1. I never could get home sharing to work with my iPhone 3GS (iOS 6.0.1). It would start to download the library information and then just stop. I used home sharing all the time so I was eagerly waiting for the fix many people seemed to need.
    So...Now getting the library information seems to take a long time--5 minutes or so, but it does run to completion. But, my lists of Artists and Albums are incomplete. I haven't done a lot of testing but it seems that all of my tracks are listed under Songs, and all of the references in my Playlists open the correct tracks. For example, Charlie Musselwhite is not listed under Artists. His album One Night in America is not listed under Albums, but the song Blues Overtook Me is listed under songs and appears in the Playlists where it belongs and clicking it there plays the correct song with the correct album artwork. Once I'm playing the song, I can switch from the artwork to the album list and all the album's songs are there and are playable.
    I haven't tested every song, but I've done enough to believe that all my tracks are accessible, even though only about 10% of the albums and artists are listed properly.
    BTW: I believe that the Album and Artist lists are the ones I would get if I changed iTunes to share only selected playlists, but I haven't bothered to prove this.
    What was a prohibitive problem has been made into a minor annoyance, but in case anyone form Apple reads this, let me say this. I have been an Apple user and fan from long before Apple made the first iPod or iMac, but I am incrasingly disappointed with the dumb things Apple now releases. In the past I never thought twice about updating the the latest version of anything, because whatever Apple released worked, and if there were a few minor bugs, new software never, never, never went backwards.
    Booooo, Apple.
    From now on I will be letting others do your beta testing for you while I continue to use maps that get me where I want to go and applications that work as advertised without drawing me into spending hours getting back to where I was before an upgrade. The fact that it is no longer possible to revert to a previous, properly working version of iTunes has cemented my feeling that I will remain safely behind the leading edge.

    just found it out after playing around to get itunes 11 to look like the older version go to view ( TOP LEFT )
    and click on show sidebar and then click ON SHOW STATUS BAR ... Then go to file and sign out of home share and then sign in again ... thats it and your import and sttings and other boxs will reapear ...REMEMBER TO REPEAT THIS ON ALL COMPUTERS THAT ARE RUNNING ITUNES .........HOPE YA WIFE IS HAPPY ..MINE WAS ....

  • Hyperlinks in Edge not quite working

    Hi there
    We've built an animation in Edge and placed into a Muse site ...
    LGA - Archway
    ... the idea is to click on the blue buildings, to take you to the project pages.
    But rather than opening a new page, the hyperlinks open up the page within the Edge frame?
    Could somebody let me know how to correct this please?
    Thanks
    Simon

    Thanks very much.
    That worked. However, when I place the new Edge file into Muse, it 'remembers' the old version and on publish has the same problem.
    LGA - ArchwayNew
    Any ideas? I've tried deleting the file, changing file names, but it doesn't seem to help!
    It's like the code has somehow got stuck ... ?
    Simon

  • Album cover flow quit working help!!!!!

    it says "iTunes is unable to browse album covers on this computer"
    It never used to do that!!!

    I have't tried this before, but here is a Microsoft article about "Direct draw is not available":
    http://support.microsoft.com/kb/191660
    I would be intersted to know if it helps.

  • Web form not quite working correctly

    I have created a simple web site with iweb and have entered a simple web form on my contact me page. I created the "form" in dreamweaver (an extremely simple form) and copied the html code into iWeb via the html snippet and online instructions. When viewing the page when posted, it appears fine, but whenever a user inputs data into the form and clicks submit, it navigates to a page of just my form HTML code, ie. a white page with just my form fields on it. Also, I downloaded some simple free code for a "date picker" for a date field on my form, and whenever this button is clicked, it opens that same window described before. Any suggestions on what can be wrong?
    Extra detail:
    I am hosting the site myself through apache.
    The forms action attribute is set to results.php
    The location of results.php is correct
    results.php is suppose to send an email to myself notifying me of the data just inputted.
    results.php was created outside of iWeb (since iWeb does not create PHP pages)

    Thanks for your suggestions. I got it working somewhat, but now having a slightly different problem. I have the form displayed correctly and when filled out and submit is clicked, the results.php is opened correctly (just a simple page stating "Thank you, we will contact you soon", etc.) I dont remember exactly how I got it working, but I remember it was something with the location of the results.php file itself (althought I still cant get the date picker javascript + swv working correctly, but I'm just going to remove that).
    My new problem is that in the results.php file I am using the mail() function to send the data in the form to my email address. Like I stated before, the results.php file displays correctly after hitting submit, with no php errors, but it just wont send me that mail. This problem is not related to iWeb and maybe I should just post it in another section, but does anybody know what could be wrong, or is there some type of setting that needs to be turned on for it to work? Thanks!

  • Multicam not quite working right

    When using Multicam editing in FCP 6 sometimes the viewer reverts back to a single angle when the canvas is playing. It goes back to my original 4 angle view when stopped. This problem is sporadic, and I can't identify what makes this work or not.
    Has anyone else seen this behavior? Any fixes/ ideas??
    Thanks.

    Not a bug, just an FCP feature you have to get used to.
    When you have 'auto-render' activated, FCP will render whichever open sequences you've set the preference for.
    Since multiclip is essentially an 'effect', FCP sees it as something that needs to be rendered.
    Once you've collapsed the multiclip, it should not require rendering...unless of course you're working with media that doesn't match the sequence settings.
    Glad it worked for you. Thanks for the star.
    K

  • One thing fixed with iOS 4 and one thing not quite working yet.

    Well, I was just outside after updating my 3GS to iOS4 and I noticed that my GPS lock-on was FIXED. It now locks on in mere seconds and shows a VERY accurate fix. Whether I have the Wi-Fi turned on or not, it just works now. I had all sorts of issues with this in 3.1.x but now it just works.
    Now to the thing that is not working. My bookmarks from MobileMe are not being downloaded and applied to Safari in iOS4.
    If anyone else has had this issue and knows of a fix, I would be most appreciative.

    This issue is now resolved for me. I stopped the sync for all the different MobileMe services and then re-enabled them. Now, it all works as intended.

  • Lookup attched to Gauge pointer... not quite working right

    Need your help please.  I have a very simple data set.  Looks like this:
    Status               Count              Percentage
    Compliant          50                   50
    Non-Compliant   15                   15
    Unknown           35                   35
    In the expression for the pointer on my gauge, I can do something like =Lookup(Fields!Status.Value,"Compliant",Fields!Percentage.Value,"Dataset0") and this works well... But only if "Compliant" is listed first.  The dataset
    is sorted by count.  So if Non-Compliant or Unknown are at the top, suddenly the lookup stops working. 
    Any ideas why this is happening?  And more importantly, how I can fix it?  :)
    Thanks!

    Hi Corey,
    According to your description, you want to lookup the Count value from another dataset where the Status is "Complaint". Right?
    In this scenario, when you specify "Complaint" as the destination expression, this expression has no relationship with any DataSet. So lookup() function will compare the source expression with "Complaint". If source status is "Complaint",
    it will return the first Count value in destination DataSet.
    Conversely, if you use "Complaint" as source expression, the source expression doesn't belong to any dataset, so it will return the Count value for "Complaint" in each row. 
    For your requirement, we suggest you still use Fields!Status.Value as destination expression in lookup() function, then use IIF() function outside of lookup to return the value for "Complaint". This is the most effective workaround. The expression looks
    like below:
    =IIF(Fields!Status.Value="Complaint",lookup(Fileds!Status.Value,Fields!Status.Value,Fields!Count.Value,"Dataset0"),nothing)
    Reference:
    Lookup Function (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • MST/RSTP not quite working

    Hi,
    I have 6 x 3560 switches all connected in a redundant ring topology and interconnected using fibre.
    I have enabled the fibre ports as trunk ports with dot1q encapsulation.
    I have created 6 VLANS and defined ports on each device as members of the configured VLANS, and also defined a VTP root switch (all VLAN info appears to be propagating correctly between all switches).
    I have enabled MST on all the devices and created an instance 1 with a name and revision number on all of the switches which are identical.
    I have also used the root and secondary mst commands to define a root and secondary switch.
    E.G:-
    spanning-tree mode mst
    spanning-tree extend system-id
    spanning-tree mst configuration
    name ABC
    revision 1
    instance 1 vlan 1-200
    The problem I am seeing is that if I remove the fibre from the ROOT port from the ROOT switch, the comms fail and I see a time out of approx 8-10 seconds before the link is re-established using the redundant path (second fibre port. I see the port swap the MST01 from DESG to ROOT, when the previous ROOT port goes down (cable removed).
    Ive reduced the forward time to the minimum 4 seconds, which has improved the recovery time, but still not <1 second which I need.
    Im confused as to why when I setup a device on 1 switch to ping a device on the adjacent switch (ie next device in the fibre), but is on the same VLAN, that the layer 2 comms should be affected by the removal of the Root switch link (physicaly not even connected to the 2 devices which need to talk).
    I can see if the root switch is totally removed from circuit, that the secondary takes over fine.
    Im also not doing any layer 3, inter-vlan routing.
    Can anyone help?

    If tuning the forward delay timer had any effect, it means that your network is not taking advantage of the MST protocol. Reconvergence is achieved with no use of the forward delay timer in your scenario. Check that all the links in your ring are seen as point-to-point by the STP. You can also adjust the max-hop parameter to a value closer to the size of your ring (assuming that your MST network is only this ring, you could tune it down to 8 for instance). Also, you may want to upgrade your software release if it's an old one, as the response to agreement have been optimized (it may save some few seconds). At last, if you are only using one instance, the simplest and the most efficient is to keep the default configuration, where all the vlans are mapped to instance 0 (but I guess your network is more complex than what you exposed).
    MST uses a sync mechanism that explains that the communication between your edge switch could be affected by a failure on the root. That should be short though.
    Regards,
    Francois

  • Tabular form delete button not quite working as it should

    Hello,
    Theres a little problem with the delete button on my tabular form. When I select the rows I want to delete with the checkboxes then click the button, it deletes the checked rows but it ALSO gets rid of all the rows that I haven't yet saved i.e. that I created while I was on that page, the same time I checked the boxes
    If I save the items then go back to the page and select them it works fine, but obviously the end users won't know to do that...
    Is there a way to stop this happening? It happens on all the tabular forms I have in my app...so presumably its a fairly common problem? but I can't find an answer on the interwebs...
    I did think maybe I could run the MRU process before the MRD process when I click the delete button as well as when I click the save button...but I thought I would ask an expert opinion before messing something up. It all works fine other than that...
    Thanks
    abarnybox

    Apple will not repair this problem, they will offer replacement iPhone 4S for $199, it will be exact perfect iPhone just like yours same color, GB everything. If you want to try Virtual Lock Button, tap Settings App > General > Accessibility > Assistive Touch > ON > tap new screen white button > tap Device > Lock. This can be used to turn OFF iPhone. To turn iPhone ON, connect to power, ie charger or USB of computer.

Maybe you are looking for