4 Replies Latest reply: Dec 8, 2010 8:03 AM by Smitch1581 RSS

    Movie Clips

    Smitch1581 MeganK

      Hi all, if any one could give me any advice on this it would be greatly appreciated!

       

      I am trying to create an emag and i am stuck on one thing at the moment. The eMag was originally created in InDesign. I create the swf file of the magazine and the page curl is working fine when previewed in the browser. What i am trying to achieve tho is a navigation panel at the top, which would include 2 buttons to go to the next or the previous page.

       

      My question is how to i target the movie clip that contains the .swf file so that when a button is clicked it turns the page within the swf file?

      I did google this and found some solutions but they were in AS2 and i am still quite new to scripting and have started learning AS3:-)

        • 1. Re: Movie Clips
          Hakan KIRIK Community Member

          Hi,

           

          is the page curl part a component?
          or do you load a swf (curl swf) to another swf ?

          Is that page curl swf written with AS3?

          You should know the function names and parameters to control the curling movieclip (or component)

          • 2. Re: Movie Clips
            Smitch1581 MeganK

            Hi

            Thanx for the reply,

            Yea the page curl is a component, it is a UILoader that loads in the .swf file which is the page curl file.

            The page curl is not written using AS, it is created via exporting from InDesign CS5 as a .swf file with the page curl option ticked.

            My file consists of a FLA file, with a UILoader placed in the centre of the .FLA file with some buttons above it, i have written the basic function for the buttons but have no idea what to put in between the { }

             

            I tried this but this failed.

             

            eMag.nextPage();

             

            //eMag is the name of my movieclip//

            • 3. Re: Movie Clips
              Hakan KIRIK Community Member

              I don't know InDesign, so I don't know how it exports the file.

               

              I would export from InDesign as a Fla file and edit with Flash. So I can see how it works (codes , buttons , etc....)

              • 4. Re: Movie Clips
                Smitch1581 MeganK

                If i export as an .FLA file first, then there is no option for page curl, that feature is only enabled in the .swf export options. I can create buttons within InDesign which would trigger this action, but i need it work with in flash itself!! :-( Thank you for you help tho.

                 

                I will have to do some research as i have a file that works with page curl that is coded using just AS2 that i found on the internet but as it is AS2 i have no idea how to manipualte it-(