8 Replies Latest reply on May 18, 2010 9:50 PM by @flash

    gotoAndStop not working.....

    @flash Level 1

      hi,

       

      I need to load a swf in other domain and call its functions and access its variables, using the allow domain i have accessed the variables and functions. now i need to control the movieclip (other domain swf) using gotoAndStop(). i tried lot using gotoAndStop frame number or lable name it is not working. but i can able to trace the currentframe of a movieclip.

       

      pls tell me how to access this movieclips.

       

      if am not clear means reply me

       

       

      Thanks in advance,

      @flash

        • 1. Re: gotoAndStop not working.....
          kglad Adobe Community Professional & MVP

          what makes you think it's not working vs. code in the loaded swf causing the loaded swf's timeline to advance (for example) after the gotoAndStop() executes?

          • 2. Re: gotoAndStop not working.....
            @flash Level 1

            hi,

             

            first of all thanks for your reply. bcoz i have posted in most of the forums i didn't receive any reply.

             

            i think, i didn't explain it properly. ill brief it now.

             

             

            i am using 2 domains. domainA contains domain_A.fla, domainB contians domain_B.fla. i need to move the domain_A movieclip into 3rd frame from domain_B. i can access the movieclip from domain_B, but i couldn't able to move it to 3rd frame.

             

             

            same way i couldn't able to feed the domain_A textbox using its instance name from domain_B. but i could feed the value in that textbox using variable name.

             

             

            thanks

            @flash

            • 3. Re: gotoAndStop not working.....
              kglad Adobe Community Professional & MVP

              1.  domain_A needs a System.security.allowDomain("domain_B.swf") statement and

              2.  domain_A must load completely (or, at least, frame 3 must be loaded before you execute your goto)

              3.  you still haven't answered how you know your goto is failing

              • 4. Re: gotoAndStop not working.....
                @flash Level 1

                hi,

                 

                since domain_A movieClip was in the same frame(i.e 1st frame). i think gotoAndstop is not working.

                 

                i am new to cross domain script.

                 

                one important thing i have missed. domain_A was compiled with flash player 8. domain_B was compiled with Flash player 5. bcoz of this also, it can be happen???

                 

                i have already added System.security.allowInsecureDomain("url/folder name of the domainB files") . since i need to use some set of files, i have mentioned like this

                 

                this need to changed as allowdomain?

                 

                i am sure when i accessing that movieclip. i was loaded completly.

                • 5. Re: gotoAndStop not working.....
                  kglad Adobe Community Professional & MVP

                  copy and paste ONLY the code that executes between the time you load your swf and the code that applies the goto method.

                  • 6. Re: gotoAndStop not working.....
                    jeanphi Level 1

                    ,,,,

                    • 7. Re: gotoAndStop not working.....
                      jeanphi Level 1

                      test2

                      • 8. Re: gotoAndStop not working.....
                        @flash Level 1

                        this is the code used in domain_B.fla to move the frames.

                         

                        _level0.lob.lad.selectmode_mc.gotoAndStop("result")

                         

                        now i am moving the frame using the below script

                         

                         

                         

                        i have created  a function in the domain B. fla

                         

                        function moveframe(mc, frameno){

                        mc.gotoAndStop(frameno)

                        }

                         

                        in domain_B,

                        moveframe(_level0.lob.lad.selectmode_mc, "result")

                         

                        using this function now frames are moving.