A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: actionscript 2 localconnection talking to actionscript 3 localconnection

  1. #1
    Member
    Join Date
    May 2005
    Location
    San Francisco
    Posts
    55

    actionscript 2 localconnection talking to actionscript 3 localconnection

    We have a whole site written using LocalConnection in AS 3, however, one of our managers wants us to use a component that was written in AS 2 for a menu bar. Is it possible to have the AS2 menu utilize LocalConnection to trigger functions in our AS 3 LC listener?

  2. #2
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508
    definitely....put the component in a separate SWF, load it in and you can communicate w/ it using LocalConnection...you can have the component trigger functions in AS3 code and vice versa.

  3. #3
    Member
    Join Date
    May 2005
    Location
    San Francisco
    Posts
    55
    anything to it? or just name it the same channel and send?

  4. #4
    absolutezero3424
    Join Date
    Nov 2006
    Posts
    508
    yeah, make sure channel name is the same, you can send parameters w/ function name (just look at the Flash documentation) and the trickiest part I remember was making sure the "client" property was set correctly. Again, look at the help doc.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center