7 Replies Latest reply on Feb 8, 2012 1:52 PM by kglad

    Loaded movie clip help

    HDsuperglide Level 1

      Hi all,

       

      I am working with an iMAC running 10.6.8.

       

      I have created a flash file with only the main scene, which has a List button and a Home button. The List button has 20 links as a scroll list, each link installs a movie clip from the library.

       

      The problem I am having is the List button works fine until I add the Home button, then the Home button works fine, but the List button only works on the frame that the action is on. Each button is on it's own layer, and runs the whole length of the show, which is 220 frames. I have a stop label at each place a movie clip is to play.

       

      If I remove the Home button from the main scene and put it into each movie clip, how do I tell the movie clip to go to  the main scene frame 1?

       

      Any help would be greatly appreciated.

       

      Thank you,

       

      HD

        • 1. Re: Loaded movie clip help
          kglad Adobe Community Professional & MVP

          1.  in which keyframe(s) does your list instance work?

           

          2.  in which keyframe(s) does your list instance fail?

          • 2. Re: Loaded movie clip help
            HDsuperglide Level 1

            Hi,

             

             

            1.  in which keyframe(s) does your list instance work? …….. It only works on the keyframe that the action is on.

             

             

             

            2.  in which keyframe(s) does your list instance fail? ………..It fails on all but the Keyframe the action is on.

             

            The scroll part works, just the links don't work.

             

             

            HD

            • 3. Re: Loaded movie clip help
              kglad Adobe Community Professional & MVP

              same questions but, supply numbers, not the same issue description contained in your first message.

               

              1.  in which keyframe(s) does your list instance work?

               

              2.  in which keyframe(s) does your list instance fail?

              • 4. Re: Loaded movie clip help
                HDsuperglide Level 1

                Kglad,

                 

                (Answer to 1.) The List Instance is on layer 10, keyframe 59. The action is on layer 2, keyframe 59 and only works on that keyframe.

                 

                (Answer to 2.) All layers after 59

                 

                Hopefully you see something here?

                 

                Thank you,

                HD

                • 5. Re: Loaded movie clip help
                  kglad Adobe Community Professional & MVP

                  if your list is not in a frame 59 layer by itself, move it to a layer so only the list instance is in that frame/layer.  now move frame 59 to frame 1.  add a keyframe at frame 59, same layer.  move the code from frame 59 to frame 1.  enclose that frame 1 list code in a boolean so the code only executes once.  add code in frame 1 to make your list, not visible.  add code in frame 59 to make your list visible.  test.

                  • 6. Re: Loaded movie clip help
                    HDsuperglide Level 1

                    Kglad,

                     

                    Although I have been working with Flash CS5.0, I am not a professional AS3 writer.

                     

                    I'm not familiar with booleans? How do I do this?

                     

                    I moved the my List action to frame 1, but I'm not sure of the code to make unvisible/visible.

                     

                    If you could show me what the code looks like, that would be great.

                     

                    Thank you,

                     

                    HD

                    • 7. Re: Loaded movie clip help
                      kglad Adobe Community Professional & MVP

                      if your list instance name is list_mc, you can use:

                       

                      // frame 1

                      var alreadyExecuted:Boolean;

                      list_mc.visible=false;

                      if(!alreadyExecuted){

                      // you list/button code

                      }

                       

                      // frame 59

                      list_mc.visible=true;

                      1 person found this helpful