3 Replies Latest reply on Aug 24, 2006 5:19 PM by Newsgroup_User

    call a HTML with swf but to frame determined

    Level 7
      I have a HTML with swf and want to call to another HTML with another one swf
      but to frame determined.
      It is this possible?
      Thank you very much by its aid
      alfge


        • 1. Re: call a HTML with swf but to frame determined
          Level 7


          Alfredo Gonzalez wrote:
          > I have a HTML with swf and want to call to another HTML with another one swf
          > but to frame determined.
          > It is this possible?
          > Thank you very much by its aid
          > alfge


          Hi Alfredo
          In the future, please check the forum archives before posting.
          We have done that topic multiple time and it's only counter productive
          to repost the same stuff over and over again.

          Archives:
          http://groups.google.com/advanced_group_search?q=group:macromedia.flash.*&hl=en&lr=&ie=UTF -8

          Search for "flash call html frame" and you come up with

          http://groups.google.com/group/macromedia.flash/browse_thread/thread/4a74cd524bc89fab/8374 0ad4534ffa23?lnk=st&q=&rnum=8&hl=en#83740ad4534ffa23

          Scroll down the page, last post has all the info you need



          --
          Best Regards

          Urami


          --


          <urami>
          If you want to mail me - DO NOT LAUGH AT MY ADDRESS
          </urami>
          • 2. Re: call a HTML with swf but to frame determined
            Level 7
            urami, tanks... but the question is other...

            i not refer to frame of the "dreamweaver frame"

            i refer a "Flash frame", frame 35 in the layer 1 in the hola2.swf

            in hola1.html whit hola1.swf, y call (whit a button) a hola2.html whit
            hola2.swf, but i need star in the frame 35 in the hola2.swf...

            Help me plis!!

            alfge


            "urami_" <runnerHaHaHIHI@HAHAHIHIflashFugitive.com> escribi� en el mensaje
            news:eclb73$ftl$1@forums.macromedia.com...
            >
            >
            > Alfredo Gonzalez wrote:
            >> I have a HTML with swf and want to call to another HTML with another one
            >> swf but to frame determined.
            >> It is this possible?
            >> Thank you very much by its aid
            >> alfge
            >


            • 3. Re: call a HTML with swf but to frame determined
              Level 7


              Alfredo Gonzalez wrote:
              > urami, tanks... but the question is other...
              > i not refer to frame of the "dreamweaver frame"
              > i refer a "Flash frame", frame 35 in the layer 1 in the hola2.swf
              > in hola1.html whit hola1.swf, y call (whit a button) a hola2.html whit
              > hola2.swf, but i need star in the frame 35 in the hola2.swf...

              No direct or easy way in that case. The information of the frame must be store
              somewhere as you can't just open the movie and go to its frames. The movie has
              to cache and once loaded pick the info of frame and proceed.
              Some choices:

              1)
              You could use PHP and pass the frame number with the URL via object embed tags.

              Assume your target html is call passVars.html , rename it to passVars.php Then you
              find the filenames (swf files ) in the object/embed tags and after the names you
              put ?VAR=<?=$HTTP_GET_VARS["VAR"] ?>

              name.swf?preload=<?=$HTTP_GET_VARS["VAR"] ?>

              so now if you do the above url (passVars.php?VAR=123) , the SWF will know VAR is
              '123' as soon as it loads.
              That's pretty much it...
              After preloader in that file you will use _root.gotoAndPlay(var); and it will take
              you to 123 as the value will be pass ti swf upon load and availallbe troughout the
              file.
              TAKE NOTE ! i use VAR so you understand where is the variable but it is reserved word
              in flash so try to use something unique like VAR0Z or Pokemon :) As you like...



              2)
              Use Shared Object which is flash's native form of cookies. Make the record from your
              first file than place a preloader in the second file you want to call, after the
              preloader access the share object and based on result proceed to frame.

              I used similar method once to demonstrate how to set up flash menu which would
              remember what button was pressed and have it in a down state next time you open the page.
              Could use the very same thing just instead of suppressing button simply gotoAndPlay frame :

              http://groups.google.com/group/macromedia.flash.actionscript/browse_thread/thread/36649453 1f4fd02d/245a57d0cdaa1d29?lnk=st&q=&rnum=3&hl=en#245a57d0cdaa1d29

              The source is in a different place, i re-upload for you :

              http://www.flashfugitive.com/stuff/SharedObj_urlcheck/

              fla file

              http://www.flashfugitive.com/stuff/SharedObj_urlcheck/beentourl.fla

              --
              Best Regards

              Urami


              --


              <urami>
              If you want to mail me - DO NOT LAUGH AT MY ADDRESS
              </urami>