/ Published in: ActionScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript"> var chatTall = null; //SET TO NULL UNTIL LOADED function sendGen(genType) { chatTall.sendGender(genType); } //SEND USING FLASH ExternalInterface var flashvars = {}; var params = {}; var attributes = { id: "chatTall", name: "chatTall" }; swfobject.embedSWF("signup/images/drillcams/chatTall.swf", "flashcontent", "138", "419", "9", false, flashvars, params, attributes, function(e) { chatTall = e.ref;}); </script> /*ActionScript*/ import flash.external.ExternalInterface; function genType(str:String):Void { debugTxt.text = str; } ExternalInterface.addCallback("sendGender",this,genType);