Link to External Flash File Frame

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ridgedale
    New Member
    • Oct 2007
    • 27

    Link to External Flash File Frame

    Hi, I'm new to Flash am trying to link to an external site, which consists of a single flash file, and load a specific frame. The actionscript code I have attached to the button so far is as follows:

    Code:
    on (release) {
    	getURL("http://www.tinhorse.com", "_self");
    	gotoAndStop("we_see");
    }
    The link takes me to the external site as required but does not load the correct frame. It looks like gotoAndStop function is not being passed on to the external flash site.

    Any help with this would be appreciated.
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Originally posted by ridgedale
    Hi, I'm new to Flash am trying to link to an external site, which consists of a single flash file, and load a specific frame. The actionscript code I have attached to the button so far is as follows:

    Code:
    on (release) {
    	getURL("http://www.tinhorse.com", "_self");
    	gotoAndStop("we_see");
    }
    The link takes me to the external site as required but does not load the correct frame. It looks like gotoAndStop function is not being passed on to the external flash site.

    Any help with this would be appreciated.
    That is right, gotoAndStop will act on the frame in the scope of which it was called. That is to say that the parent movie clip with goto the frame "we_see" You may have better luck creating an empty movie clip and loading the external swf into it, then changing the frame.

    Comment

    • ridgedale
      New Member
      • Oct 2007
      • 27

      #3
      Originally posted by Motoma
      You may have better luck creating an empty movie clip and loading the external swf into it, then changing the frame.
      Thanks for your reply, Motoma. You'll have to excuse my ignorance, here - is this something I should be looking at coding purely through ActionScript? If so, how do I go about doing that?

      In the meantime I'll have a look through the Flash Howto book I got from the library to see it sheds some light doing what you suggest.

      Thanks again.

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Originally posted by ridgedale
        Thanks for your reply, Motoma. You'll have to excuse my ignorance, here - is this something I should be looking at coding purely through ActionScript? If so, how do I go about doing that?

        In the meantime I'll have a look through the Flash Howto book I got from the library to see it sheds some light doing what you suggest.

        Thanks again.
        What I have suggested would be implemented through Actionscript, if that is what you are asking. The way I propose to test it (though I do not guarentee it will work) would be to create a new movie clip by calling createEmptyMovi eClip(), calling that movie clip's loadMovie() specifying the URL of the external SWF, and then attempting to call the movie clip's own gotoAndPlay() method.

        Comment

        • ridgedale
          New Member
          • Oct 2007
          • 27

          #5
          Motoma, thanks again for your reply. I was wondering if there would be any disadvantages to splitting up the external flash file so I could use the getURL() function to go to each of the sections. Do you think this would be a good idea or do you have reservations?

          Thanks again.

          Comment

          • Motoma
            Recognized Expert Specialist
            • Jan 2007
            • 3236

            #6
            Originally posted by ridgedale
            Motoma, thanks again for your reply. I was wondering if there would be any disadvantages to splitting up the external flash file so I could use the getURL() function to go to each of the sections. Do you think this would be a good idea or do you have reservations?

            Thanks again.
            If there is a particular reason or goal you have for doing it this way, go ahead.

            Comment

            • ridgedale
              New Member
              • Oct 2007
              • 27

              #7
              Motoma,

              I was just thinking that it may be simpler and I know the getURL() function does work. I just wondered if there might be any drawbacks to doing it this way or that your method would be better or more efficient.

              Thanks again

              Comment

              • Motoma
                Recognized Expert Specialist
                • Jan 2007
                • 3236

                #8
                Originally posted by ridgedale
                Motoma,

                I was just thinking that it may be simpler and I know the getURL() function does work. I just wondered if there might be any drawbacks to doing it this way or that your method would be better or more efficient.

                Thanks again
                If you want to load up an external flash file and jump to a specific frame in it, you cannot use getURL.

                Comment

                Working...