mercredi 12 avril 2017

embed javascript into .GIF, .SWF or . PDF

How to inject my javascript code in a .SWF file? I already try to inject but not happens. See teh code:

import flash.external.ExternalInterface;
var script_js :XML = 
<script>
<![CDATA[
function(){ 
alert('test! boom!'); 
}
]]>
</script> 
ExternalInterface.call(script_js);

And how to embed javascript code into a .PDF file or a .GIF file?

Aucun commentaire:

Enregistrer un commentaire