Loaded swf does not recognize stage of parent correctly

I have an issue that is probably easily solved, but my attempts to solve it have been frivolous. 
I am creating a “lightbox” to display artwork, but I have come across a slight hiccup.
I am executing the lightbox functionality from a swf file that is loaded by a parent swf.  For testing purposes, when the lightbox button is clicked, the image should fill the entire stage.  Even though both the loaded swf and the parent swf recognize the same stage dimensions at all times(validated through tracing statements) and the lightbox image is positioned to the top/left corner of the stage, the image instead aligns to the top/left corner of the loaded swf.  And if the stage is resized after the lightbox image is displayed, the container MC (which is located in the parent swf and centers all the site’s content) re-aligns to the top/left corner of the stage . 
To better illustrate these points, click the link below to see some screenshots with captions:
http://newsite.katech.com/assets/images/lightbox_screenshots.jpg
Also, here is the code applicable code from the loaded swf:
stop();
picture.visible = false;
picture.x = 0;
picture.y = 0;
picture.width = stage.stageWidth;
picture.height = stage.stageHeight;
lightboxBtn.buttonMode = true;
trace("embedded swf says the stage is " + stage.stageWidth + " X " + stage.stageHeight);
function onStageResize(event:Event):void
                trace("embedded swf says the stage is " + stage.stageWidth + " X " + stage.stageHeight);
                picture.x = 0;
                picture.y = 0;
                picture.width = stage.stageWidth;
                picture.height = stage.stageHeight;
stage.addEventListener(Event.RESIZE, onStageResize);
function showImage(event:MouseEvent):void
                picture.visible = true;
lightboxBtn.addEventListener(MouseEvent.CLICK, showImage);
And for the applicable code from the parent swf:
stop();
trace("MAIN swf says the stage is " + stage.stageWidth + " X " + stage.stageHeight);
//aligns site content to center of stage
function onStageResize(event:Event):void
                trace("MAIN swf says the stage is " + stage.stageWidth + " X " + stage.stageHeight);
                container.x = (stage.stageWidth/2) - (container.width/2);
                container.y = (stage.stageHeight/2) - (container.height/2);
                if (container.x < 0)
                                container.x = 0;
                if (container.y < 0)
                                container.y = 0;
stage.addEventListener(Event.RESIZE, onStageResize);
How can I get the loaded swf to display the lightbox image correctly in respect to the parent swf?  What am I doing wrong?

I have still yet to resolve this issue on my own, if anyone could point me in the right direction, it would be greatly appreciated.
Also, when I updated my previous post something "screwy" happened with the edit, so I went back and corrected the mistakes in case it made things unclear.
Thanks.

Similar Messages

  • The receipt corrections form for PO does not recognize LPs

    Hi
    The receipt corrections form for PO does not recognize LPs to perform corrections. The LPs are currently in Subinventory, we have lpn numbers, through that i have found the on hand quantity and which are in Packed Condition ..What would be the reason ?

    Tim
    We created a new report that is XML-PDF. This was a copy of the seeded Oracle Purchasing report. This report uses a new XML document that generates a PDF. If I submit this new report the PDF document is created and viewable. In Purchasing I also set the default output to PDF using the same XML - PDF that we created. I have an open TAR with Purchasing (5553373.992) they support the seeded Template but want to wash their hands on the custom.
    I am not sure what your question is - "new PO process in 11.5.10". When I do a PO approval and generate an email - PO it kicks off automatically the PO Output Communication program based on the defaults I set in Purchasing it should be using the new tmeplate.
    Bob

  • Lightroom does not recognize the raw format of files loading from my Nikon AW1 and loads them as jpegs. I know there are updates that would allow this camera to be recognized as shooting raw but I haven't been able to work it out. Any help out there?

    Lightroom does not recognize the raw files (necs?) coming in from my Nikon AW1. It loads them as jpegs. I know it is possible to update Lightroom so it knows my Nikon but I can't get it to work.
    I would like files to be loaded as .dng.

    update by downloading the files directly and then applying them for lr 4 and earlier,  http://www.adobe.com/downloads/updates/
    for lr 5.7.1, the last lr 5 update, use the below link:
    Downloadable installation files available:
    Suites and Programs:  CC 2014 | CC | CS6 | CS5.5 | CS5 | CS4, CS4 Web Standard | CS3
    Acrobat:  XI, X | 9,8 | 9 standard
    Premiere Elements:  13 | 12 | 11, 10 | 9, 8, 7 win | 8 mac | 7 mac
    Photoshop Elements:  13 |12 | 11, 10 | 9,8,7 win | 8 mac | 7 mac
    Lightroom:  6| 5.7.1| 5 | 4 | 3
    Captivate:  8 | 7 | 6 | 5.5, 5 | 1
    Contribute:  CS5 | CS4, CS3 | 3,2
    FrameMaker:  12, 11, 10, 9, 8, 7.2
    Download and installation help for Adobe links
    Download and installation help for Prodesigntools links are listed on most linked pages.  They are critical; especially steps 1, 2 and 3.  If you click a link that does not have those steps listed, open a second window using the Lightroom 3 link to see those 'Important Instructions'.

  • TS3716 My relatively new ipod touch 16 gb either does not show up as a drive or everytime says it does not recognize my ipod when connected to add music.  I didn't have problems loading music originally, but this is a new occurrence.  Could you help?

    My relatively new ipod touch 16 gb either does not show up as a drive or everytime says it does not recognize my ipod when connected to add music.  I didn't have problems loading music originally, but this is a new occurrence.  Could you help?

    Hey, Thanks a lot.  It took quite a bit of time to resurrect this ipod.  I tried the upgrade again, but still would not recognize my ipod. So I went to the next step and reset my ipod, wiping of all of the information like it was new.  This helped my laptop see the ipod on itunes, but did not sync. So, I deleted the itunes off my computer completely, restarted and then reinstalled the newest itunes, and then restarted.  Finally, it recognized my ipod and started to download each song.  It took awhile as there was 602 songs, but finally it works.  Yea!!!  I never had any problem with my old nano, but this touch has been another animal for sure. Thank you again and also the community for information.  This was a helpful forum and will recommend to others if they get stuck with their ipod or iphone.  Take care, Karen

  • When you load Windows via Boot Camp Assistant program and run Windows does not recognize the "usb" outlets cannot identify the device through the Dvd or flash

    When you load Windows via Boot Camp Assistant program and run Windows does not recognize the "usb" outlets cannot identify the device through the Dvd or flash

    Did you install BC drivers on the Windows side?

  • I just set an administrators name (my full name) and password for parental controls (using the one I always use) and now after restarting and trying to make changes to aprental controls it does not recognize my password

    I just set an administrators name (my full name) and password for parental controls (using the one I always use) and now after restarting and trying to make changes to aprental controls it does not recognize my password

    Hello, do you have another admin account to log into for a test?

  • Swf does not load the images on the web

    I made a swf that works perfectly on my computer.
    The swf does not load the images, cal with the buttons, when I use the swf on the web.
    I think the problem is due to the fact that the web changes the path of the file, that is called with the following variable:
    var ImmageUrl: String = "MyFolder2 /" +  MynamePic +  ".jpg";
    The path is C:/MyFolder1 "(with the swf)" /MyFolder2 "(with the pics)"
    Any hint ?
    Thank you.

    When you place an swf in a web page, any files that the swf loads have to be targeted as if the swf is sitting in the same folder as the html page.  If you have the swf in a different folder than the html page, then you need to adjust the paths for the files it loads so that it acts as if it is in the html page's folder.

  • Ipod touch wont load past apple screen. I have tried resetting by holding home button and on/off but after it resets it still only loads to the apple screen. When I plug the device in It stays on the apple screen and itunes does not recognize it?

    Ipod touch wont load past apple screen. I have tried resetting by holding home button and on/off but after it resets it still only loads to the apple screen. When I plug the device in It stays on the apple screen and itunes does not recognize it? I fear it may be stuck in some sort of reset loop which is stopping itunes from recognizing it. How do I go about the process of sending it in to apple if I cannot find a fix? Thank you in advance, it is greatly appreciated!!

    - See if placing the iPod in Recovery mode will allow a restore.
    - If not successful and you can't turn the iPod fully off (that is required to place in recovery mode), then let the battery fully drain. After charging for at least an hour try the reset, restore again
    - Then time for an appointment at the Genius Bar of an Apples store.

  • Firefox 3.6.8 does not recognize subsequent mouseclicks - window loses focus

    After updating to firefox 3.6.8 on my macbook pro (OS X 10.4.11) Firefox fails to recognize subsequent mouse clicks. You can access the page initially, but then it seems to lose focus and become unresponsive to mouse clicks until you do something to break the cycle (clicking on desktop, minimizing and resizing window, etc). I reinstalled Adobe Flash update using full installer, since others have suggested that as a possible cause, but no joy. The browser window still does not recognize mouseclicks after an initially successful page load. You can tab to the next window (for example, if you want to enter something in search) but you cannot CLICK to enter the search window, nor can you click on links on the page, etc. It is totally unresponsive.
    == This happened ==
    Every time Firefox opened
    == I updated Firefox to the version just before 3.6.8 -- then I updated to 3.6.8 to see if that fixed it -- it's still broken

    This started happening to me yesterday. All plugins are disabled, didn't help. All plugins uninstalled, didn't help. Downgraded to SP3, didn't help. I've also noticed this happen in Thunderbird, though it seems OK now.
    Sadly I've had to start using IE8 :(

  • ITunes does not recognize my iPod Touch

    My iTunes does not recognize the iPod Touch , I connect to the computer and not loaded or recognized by the iTunes, I can do? and uninstall iTunes and went back to install, now I can do? Thanks.

    http://support.apple.com/kb/TS1538
    There have been some problems accessing pages on the Apple web site.  If the hyperlink gives you a "We're sorry" message, try again.

  • Ipod Shuffle (2nd Gen) Does Not Recognize Songs

    My Ipod Shuffle (2nd Gen) does not recognize the songs that are loaded on it. When I turn it on after a full charge the green light stays on for about 5 seconds then turns off. When I press play, the colors flash orange and green indicating there are no songs loaded. I've tried all the recommendations and also seen that people with similar problems have not been able to resolve the problem as well. I've seen some cases where the use of the Ipod Rest Utility is recommended however I have Vista on my PC and there is no version available for that o/s that I could find. Does anyone have any other suggestions. Thanks.
    Ipod Shuffle (2nd Gen)   Windows Vista  

    I changed the iPod to Disk mode and it just blinks orange while it is connected to the PC. It says that it is synched on the PC screen but I thought the blinking orange light means that it isn't. I took it back out of disk mode. The original problem still exists...when I turn it on, the green light stays lit for 5 seconds then there's no light at all....when I press play the lights alternate orange and green indicating no music is loaded which is wrong since it shows all my songs that are loaded when it is connected to my PC. What a mess.

  • Windows XP SP3 does not recognize iPod Classic

    I have an older computer with Windows XP SP3 and iTunes 10.2.2.  iTunes does not recognize (load) my iPod Classic (160Gb model) when I plug it in.  The iPod lights up and charges fine, but it does not appear in the left menu bar in iTunes.
    I have an old iPod Shuffle that loads into iTunes just fine.
    I have tried a number of remedies:
    Updated the computer to XP Service Pack 3.
    Completely uninstalled and reinstalled iTunes twice.
    Reset the iPod Classic several times.
    Tried plugging the iPod into different USB ports on the computer.
    My music library is on an external drive, so I was able to borrow a computer (Win7) and use it to load the music into my iPod.  But this isn't a permanent solution.
    Does anyone know of a potential fix that I haven't considered?
    Thanks in advance.

    Try restarting your Apple Mobile Device Service, kent:
    iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows
    (Classics also use AMDS to a greater or lesser degree, so trouble with the service or other aspects of Apple Mobile Device Support can cause some grief with a Classic connection.)

  • USB device (1 day old nano) has malfunctioned & windows does not recognize

    Please can someone help a non-tech savy new ipod user. I have loaded the latest itunes, but not only does itunes not see my ipod, I get the following windows error when I plug it in. "One of the USB devices attached to this computer has malfunctioned and windows does not recognize it". It says no drivers are loaded for this device. I have followed the 5Rs including the windows updates with no luck. If anyone can help I would really appreciate it.
    Thanks
    sampsona

    You listed as having an IBM r40. If I'm not mistaken, that's a laptop. The usb ports on many laptops aren't USB 2.0 or are low power ones. This can cause problems with a nano being able to charge.
    One thing to try is to get a wall adapter to charge the nano separately, then connect to your computer for syncing only. You can find adapters locally and through Apple Store. http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=C39 415D1&nclm=iPodPower
    You can also try buying a POWERED usb hub. Make sure it has it's own power source so that its ports have enough charge to support the nano.
    Custom PC & iMac (DV Special Edition), iPod Nano 1st, iPod Click Wheel   Windows XP Pro   Work in a variety of PC and Mac environments

  • Windows says "device is not functioning" and "Windows does not recognize"

    I lost my USB dock connector cable for my ipod. I just went out today and bought a brand new "Cygnett GrooveLink Strech Retractable USB Cable for iPod". I was pumped when I came home to finally be able to add music to my ipod again, but alas when I plug the iPod in, Windows pops up saying that the device is not functional and that Windows does not recognize it. I tried everything from rebooting the iPod to re-downloading iTunes and iPod updater. After searching this site for the past few hours, I figured I'd try and possibly find some real answers here. Please Help!!

    Hey everyone,
    I had the same problems all of you are having. I
    just got a 5th generation video ipod. For a few
    days, my computer a) wouldn't recognize it; b) froze
    up when I connected it; c) mistook it for a mass
    storage device ("drive E"). I bought a USB 2.0
    notebook card which didn't work either and actually
    seemed to make the problem worse because when I
    connected the iPod to it my computer froze up.
    I was very confused because my new iPod worked on my
    brother's computer--which is much older than mine but
    still recognized the iPod and connected to it.
    Then I noticed that my brother's computer is running
    an older version of the ipod software. I used his
    disk to install "Ipod Updater 2005-06-26" rather than
    the new version of the software on the Apple Web
    site. Then I plugged my iPod into a USB 1.1 port.
    To my surprise, my computer finally recognized the
    iPod and is now loading music onto it. I cannot
    believe this worked. I wonder if the latest version
    of the software is faulty in some way.
    Try it! I hope it will work for you too. You will
    need an older version of the iPod updater software,
    so borrow it from a friend with an older ipod.
    I am having this problem also...It will work fine on the 1.1 but when i plug it into the 2.0 it has trouble recognizing it...

  • Computer does not recognize Iphone 4 is plugged in to USB. Can't transfer pictures.

    My HP laptop always use to recognize my Iphone 4 then all of the sudden stopped. I have been trying to transfer pictures and it does not see that any device or camera is plugged in to it like it use to. I have VISTA on my computer. When I go to My Computer it doesnt show anything is even plugged into the USB port. I tried all 3 ports on the laptop. The Windows help assistant talks about needing a driver..basically a software disc to load any new divice onto the computer. How would I get a driver for the Iphone?? I never needed that before. I could just plug it in and I would get the pop up asking if I wanted to transfer my pictures, etc.  This is so annoying!  I do back up to I Cloud as well.

    Hi..Yes, I Tunes is installed on the computer. I sync with it no problem. I am trying to get the pictures from my Iphone onto my computer. When I use to plug the phone in I would get a pop up from Windows saying do you want to transfer pics to computer, do you want them to erase off phone once transfered, etc. Now I do not get the pop up. It is like the computer no longer recognizes that my Iphone is plugged in. Technically the pics are on my computer in the Photo Stream folder..but I want to actually transfer them off the phone. I have tried to turn off Photo Stream and I cloud but it does not help. The computer still does not recognize the phone plugged into the USB. If I go to "add a printer, scanner or camera" on the computer..it does not see it either. That is where it talks about having a driver to set up a new hardware device. I have 900 pics on my phone that I do not want to have to delete one by one...and I want to make sure they are downloaded. I also have videos that I want to download to the computer either and those are no where to be found..not even in the Photo Stream folder. I appreciate any help!

Maybe you are looking for