lazarsto Posted August 6, 2010 Share Posted August 6, 2010 Hello to all I have copied the code from http://www.greensock.com/as/docs/tween/ ... oader.html import com.greensock.*; import com.greensock.events.LoaderEvent; import com.greensock.loading.*; var loader:ImageLoader = new ImageLoader("img/photo1.jpg", {name:"photo1", container:this, x:180, y:100, width:200, height:150}); But it keeps trow me an error: "1137: Incorrect number of arguments. Expected no more than 0." source:"var loader:ImageLoader = new ImageLoader("img/photo1.jpg", {name:"photo1", container:this, x:180, y:100, width:200, height:150});" I did download latest version of loadeMax AS3 from http://www.greensock.com/loadermax/ if any one can tell me what can be a problem. Thank to all of you Link to comment Share on other sites More sharing options...
GreenSock Posted August 6, 2010 Share Posted August 6, 2010 Ummm...there must be some other problem on your end. That code works perfectly for me. Can you upload a super simple example FLA that demonstrates the issue? I need to be able to publish it and see the error for myself to effectively troubleshoot. Maybe you have a corrupt Flash install? Link to comment Share on other sites More sharing options...
lazarsto Posted August 6, 2010 Author Share Posted August 6, 2010 Oh It works now, I am not sure what was the problem but I guess I had class named "ImageLoader.as" that do some conflict with other classes. Any way, thank you for replay 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