I am working on a chatting app that makes use of flash sockets. I don’t want to code the entire interface in flash, so I was hoping to just use flash to talk to the socketserver and call js to modify the dom.
can this be done?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To call a JavaScript function from Flash, use the
ExternalInterface.callfunction in ActionScript:To call an ActionScript function from JavaScript, first use the
ExternalInterface.addCallbackfunction in ActionScript:Then, get a handle on the SWFObject in JavaScript and call the ActionScript method as follows:
For more information, see: