I need to call some jQuery .load() function from flash.
i Use this:
import flash.external.*;
on (release){
ExternalInterface.call('show_alert','teste.asp');
}
and on my page:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
function show_alert(){
$("#conteudo").load(msg);
//alert("qualquer");
};
});
</script>
But the teste.asp is not loaded inside the div #conteudo. I’m Using AS2
Move the function to the global scope.
You shouldn’t need the
$(document).ready()in this case, however, if you find that you do, place it inside of the function instead of outside of it.Edit: Also, you aren’t accepting the msg parameter on your function, fixed in my code.