A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Image Gallery - Closing Full Image

Threaded View

  1. #1
    Junior Member
    Join Date
    Mar 2009
    Posts
    6

    Image Gallery - Closing Full Image

    I created an xml image gallery. Click on a thumb, full image pops up, click on the full image and it closes. The gallery closes whenever I click on a navigation button to go to a different section of the site. But if I click on a thumb to load a full image, and then click on a button to navigate to another section of the site without clicking on the image again to close it, the full image will carry over to the new section. If I click on it again in the new section, it will close just like in the portfolio section, but then I get ActionScript compiler errors. Basically I need to add a double function of the navigation buttons or something that will close the full images if they're open.

    I tried removeChild(full_mc); at the beginning of each new section of the site, and it works if you view that section after the portfolio section. If not, while it doesn't cause harm and does the job of removing any still open full images, it gives ActionScript compiler errors. So for example, when first loading the page, you'll receive AS comp errors at the home page because you aren't coming from the portfolio section. Any help again would be great. The code is attached. Thanks.
    Attached Files Attached Files

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center