phuongngoc Posted May 5, 2013 Share Posted May 5, 2013 Hi all, How to load a profile image from facebook with url like this: https://graph.facebook.com/100005284152430/picture I try to use LoaderMax.parse("https://graph.facebook.com/100005284152430/picture") but it's thrown an error Thank you. Link to comment Share on other sites More sharing options...
Carl Posted May 5, 2013 Share Posted May 5, 2013 Hi and welcome to the GreenSock forums. The url you are using doesn't contain a file extension so LoaderMax has no way of knowing what type of loader to create (SWFLoader, ImageLoader, VideoLoader etc). http://api.greensock.com/as/com/greensock/loading/LoaderMax.html#parse() You will have to construct an ImageLoader for that asset var profile:ImageLoader = new ImageLoader("https://graph.facebook.com/100005284152430/picture ", {}); 1 Link to comment Share on other sites More sharing options...
phuongngoc Posted May 5, 2013 Author Share Posted May 5, 2013 It's really helpful, I can load the image now. Thank you. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now