4 Replies Latest reply on Nov 12, 2009 8:56 AM by advisual1

    Help with improper starting image - Please

    advisual1

      This is a simple problem but will take a little to explain, please hand in there with me.

       

      I have a flash site located at http://yoshissushi.net.

       

      If you go to the site click enter and go to the the menu tab by clicking on the Menu tab at the top. Under this tab should be only food images, click the arrows on the left or right to advance a few frames. Now click on the Gallery tab, you will notice that it remembers the last image you were viewing under the Menu tab and once you either go forward or backward the image you first started with is no longer there.

       

      That is because in each case what it is doing is remembering the last image from the other tab. In each of these cases the Gallery has no food images and the Menu has no customer images. But somehow each remembers the last thing you were viewing in the other tab.

       

      The Menu tab should always start with the first black screen image ( A black image that says  "Taste of edible art!" ) the Gallery doesn't matter as much.

       

      So can anyone suggest how I can over come this problem with a script or instruction that will force the Menu tab to refresh and always start from the first image without remembering the last thing seen in the Gallery tab.

       

      Currently I have attached to the Menu tab;

       

       

      onClipEvent (load) {

      _root.current_pic = "_root.food1";

      }

       

       

      This however is not doing the trick.

       

      Please be explicit in your explanation, I am fairly new at flash site development.

       

      Thanks in advance.

        • 1. Re: Help with improper starting image - Please
          Ned Murphy Adobe Community Professional & MVP

          You'll need to explain how the photo-gallery piece is designed and what actionscript controls it.

          • 2. Re: Help with improper starting image - Please
            advisual1 Level 1

            Hi thanks for responding. I am using actionscript 2. Both photo galleries are a collection of jpeg images that are numbered and run in sequential order. They are advanced by clicking on the panels o either side.

            • 3. Re: Help with improper starting image - Please
              Ned Murphy Adobe Community Professional & MVP

              So can you show what code is used for controlling them?

              • 4. Re: Help with improper starting image - Please
                advisual1 Level 1

                Hi Ned,

                 

                Thanks for your inquiry.

                 

                The current code is as follows;

                 

                On the Menu tab;

                onClipEvent (load) {
                    _root.current_pic = "_root.food1";
                }

                 

                On the Gallery tab;

                onClipEvent (load) {
                    _root.current_pic = _root.main1;
                }

                 

                On the left panel;

                on (rollOver) {this.gotoAndPlay("s1")}
                on (rollOut) {this.gotoAndPlay("s2")}
                on (release) {
                    if(_root.flag ==1){       
                        _root.current_p -=1;
                        if(_root.current_p ==0){_root.current_p = _root.pic_max;}   
                        _root.current_pic = _root[("main" + _root.current_p)]
                        _root.big.gotoAndPlay("s2");
                    }
                }

                 

                On the right panel;

                on (rollOver) {this.gotoAndPlay("s1")}
                on (rollOut) {this.gotoAndPlay("s2")}
                on (release) {
                    if(_root.flag ==1){       
                        _root.current_p +=1;
                        if(_root.current_p >_root.pic_max){_root.current_p = 1;}   
                        _root.current_pic = _root[("main" + _root.current_p)]
                        _root.big.gotoAndPlay("s2");
                    }
                }

                 

                 

                The images are called using AS2 from a text file ( attached ). I duplicated page 4 to create page 3 but renamed the instances and associations to create a 2 completely different set-ups, but somehow one can still detect what the other last displays.

                 

                Thanks again in advance.