Is there a way to call actionscript from Javascript ?
Is there a way to call actionscript from Javascript without using External Interface. The call is from Javascript to Flash actonscript.
Regards,
Is there a way to call actionscript from Javascript without using External Interface. The call is from Javascript to Flash actonscript.
Regards,
Hi,
I have created the getContentId() function in an as file and wanted to call this function from javascript using the ASContentIdFunction. I wanted to access the return string i.e ContentId_id of this function from javascript. The swf is embedded in an html page. I am yet to write the javascript part of the code. Is the error coming because have not written the javascript to call this function ?
ExternalInterface.addCallback("ASContentIdFunction", getcontentid);
public function getcontentid():String{
var nextContent:Object = Object(CarouselItem(CarouselBar.wrapperChildren.getChildAt(Globals.currentRelatedIndex)). data);
var ContentId_id:String=nextContent.contentId;
return ContentId_id;
}
Yes. If you call a Javascript function that doesn't exist, you will get an error.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.