Re: "No static 'LoadFromImage' in class 'sfImage'"

James Porter <[email protected]>
Newsgroups gmane.comp.lang.lua.bind.user
Message-ID <[email protected]>
> It compiles fine, launches the following lua script:
> print 'test'
> logo = sfImage;
> logo:LoadFromFile("images/bluecosmos.png");

You want "logo = sfImage()". Right now you're just making an alias of 
the class instead of making an instance of the class.

- Jim


------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.