I am trying to create a flashMovie were i want to load images that i get form facebook accounts. i have set up the javascript which works perfect !
However i would like to load the image in AS3, i have no clue how i can do this, i have tried many things and other suggestions but nothing works. Please see the following javascript that i created!
<script>
FB.api('/me?fields=username', function(response) {
function detect(URL) {
var image = new Image();
image.src = URL;
image.onload = function() {
var result = 'result'; // An example result
}
}
detect("https://graph.facebook.com/" + response.username + "/picture?width=200&height=200");
</script>
so i need to load in the reference detect, and that i will also get response.username.