6 Replies Latest reply on Nov 25, 2008 6:05 AM by Newsgroup_User

    Accessing events from externally loaded swf file

    surya_dhul
      hello,
      I have an swf file developed in flash 8. After loading that file into SWF Loader control in flex builder 3, can't we access the methods present in that particular file without using local connection class as it is developed by some others and we don't have the code ?
        • 1. Re: Accessing events from externally loaded swf file
          Level 7

          "surya_dhul" <webforumsuser@macromedia.com> wrote in message
          news:ggdl2t$qr4$1@forums.macromedia.com...
          > hello,
          > I have an swf file developed in flash 8. After loading that file into SWF
          > Loader control in flex builder 3, can't we access the methods present in
          > that
          > particular file without using local connection class as it is developed by
          > some
          > others and we don't have the code ?

          You'd need to use another AVM1 swf that DOES use localConnection and load it
          into that.


          • 2. Re: Accessing events from externally loaded swf file
            surya_dhul Level 1
            do u mean that the new AVM1 that does use local connection should be developed in flash 8 or flex builder 3?
            • 3. Re: Accessing events from externally loaded swf file
              Level 7

              "surya_dhul" <webforumsuser@macromedia.com> wrote in message
              news:ggflm1$hbr$1@forums.macromedia.com...
              > do u mean that the new AVM1 that does use local connection should be
              > developed in flash 8 or flex builder 3?

              Flex Builder does not have the capability to build an AVM1 movie


              • 4. Re: Accessing events from externally loaded swf file
                *gsb* Level 1
                Amy means that Flex is AS3 code and uses the Flash player's AVM2. SWF8 uses the AVM1. ...and the two do not cross boundaries.

                So for the two to talk/coordinate you need to go through the Flash player via LocalConnections OR through the browser using JavaScript.

                Both require code in the SWF8 movie for which you do not own the code. ...is a big problem then.

                • 5. Re: Accessing events from externally loaded swf file
                  Level 7

                  "*gsb*" <webforumsuser@macromedia.com> wrote in message
                  news:ggg0u2$o9$1@forums.macromedia.com...
                  > Amy means that Flex is AS3 code and uses the Flash player's AVM2. SWF8
                  > uses
                  > the AVM1. ...and the two do not cross boundaries.
                  >
                  > So for the two to talk/coordinate you need to go through the Flash player
                  > via
                  > LocalConnections OR through the browser using JavaScript.
                  >
                  > Both require code in the SWF8 movie for which you do not own the code.
                  > ...is
                  > a big problem then.

                  No, you can have a Flash 8 movie that you do own the code to that loads a
                  Flash 8 movie that you do own the code to.


                  • 6. Re: Accessing events from externally loaded swf file
                    Level 7

                    "Amy Blankenship" <amySpamFilter@magnolia_pleaseNOspam_multimedia.com> wrote
                    in message news:ggh0lk$9an$1@forums.macromedia.com...
                    >
                    > "*gsb*" <webforumsuser@macromedia.com> wrote in message
                    > news:ggg0u2$o9$1@forums.macromedia.com...
                    >> Amy means that Flex is AS3 code and uses the Flash player's AVM2. SWF8
                    >> uses
                    >> the AVM1. ...and the two do not cross boundaries.
                    >>
                    >> So for the two to talk/coordinate you need to go through the Flash player
                    >> via
                    >> LocalConnections OR through the browser using JavaScript.
                    >>
                    >> Both require code in the SWF8 movie for which you do not own the code.
                    >> ...is
                    >> a big problem then.
                    >
                    > No, you can have a Flash 8 movie that you do own the code to that loads a
                    > Flash 8 movie that you do own the code to.

                    Oops, meant you can have a Flash 8 movie that you do own the code to that
                    loads a Flash 8 movie that you do _not_ own the code to.