Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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.

share|improve this question
I've already answered your question in the last post. There's no need to duplicate your questions. I'll try hard to get this post removed. Duplicate – Gio Jul 15 at 7:16
But it did not work ! – Bas Mienis Jul 15 at 8:47
like i mentioned 3 times!!!,,, i am unable to load the picture in the file with the url reference from javascript! – Bas Mienis Jul 15 at 8:48

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.