|
-
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?
-
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.
-
anything to it? or just name it the same channel and send?
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|