Jump to content
Search Community

ImageLoader

lazarsto test
Moderator Tag

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...