Flash / actionscript Mad Magazine fold-ins is it possible to change to start closed and fold out.

Posted on 2009-12-31
Last Modified: 2013-11-11
Is it possible to start with the fold closed, so it folds out. I have tried doing this by moving the elemnts in the FLA to the closed possition but when I click it opens instantly. If you then click and drag it closes opens etc correctly. I have attached the file with the elements moved. Hope you can help, Many Thanks
Question by:surfjoe

    Author Comment

    Here is the file I have been tryoing to edit
    LVL 14

    Accepted Solution

    I have answered you here.

    First you

    Add this line of code

    middleRect.rotationY = 180;

    at the first line, or below variable definitions.

    Then move the green rectangle (rightRect) to on top of the black rectangle. It's x coordinate should be 175. Then your fold out will work.
    LVL 14

    Expert Comment


    Author Closing Comment

    Excellent, Many Thanks

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
    There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
    The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now