DynImage.prototype.getImage() is used when you're creating a DynImage-object like:
di = new DynImage("image.gif"); alert(di.getImage()); and want the image-object you have set either using setImage() or setImageSrc, or to the DynImage-constructor. the static method, DynImage.getImage(src, w, h) can be used alone or together with a DynImage-object, like in this case, a preloader. DynImage.getImage() returns a native Image object, with the source you send as parameter, and calls some methods to take care of image-loading (DynImage.loaderStart() for example) /martin > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]] On Behalf Of > Doug Melvin > Sent: den 9 november 2001 17:29 > To: [EMAIL PROTECTED]; Joachim Lundgren > Subject: Re: [Dynapi-Help] preloading images > > > I would have to say that the second declaration overwrites > the first as > (unlike in Java) you can't > have more than one member with the same name.. > > As far as I know > DynImage.prototype.getImage()=.. > is pretty much the same as DynImage.getImage()=.. > > ----- Original Message ----- > From: "Joachim Lundgren" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, November 09, 2001 10:59 AM > Subject: Re: [Dynapi-Help] preloading images > > > > At 2001-11-09 16:29, Doug Melvin wrote: > > >Maybe some should tell him? > > > > > >Alright, I will. > > >a Method IS as Function. > > > > > >the method getImage of the DynImage class IS the DynImage.getImage > function. > > > > > >:-) > > > > Actually, no. There are two getImage() functions in the > dynimage.js file > if you look at it that way... > > > > /Lunna > > > > > > >----- Original Message ----- > > >From: "Joachim Lundgren" <[EMAIL PROTECTED]> > > >To: "Doug Melvin" <[EMAIL PROTECTED]> > > >Sent: Friday, November 09, 2001 10:24 AM > > >Subject: Re: [Dynapi-Help] preloading images > > > > > > > > >> The DynImage.getImage function takes a path (but not an > object) and > > >optional width and height. > > >> I'm talking about the DynImage.getImage *function*, not > the getImage > > >*method* of the DynImage class. > > >> > > >> /Lunna > > >> > > >> At 2001-11-09 15:53, you wrote: > > >> >that is not the same function. > > >> >It has the same name.. but is not the same. > > >> >DynAPI.getImage() (AS I recall) is supposed to > > >> >take a string (path) or an object, and return an object > refrence to an > > >> >Image() object. > > >> >? > > >> >----- Original Message ----- > > >> >From: "Joachim Lundgren" <[EMAIL PROTECTED]> > > >> >To: <[EMAIL PROTECTED]> > > >> >Sent: Friday, November 09, 2001 9:43 AM > > >> >Subject: Re: [Dynapi-Help] preloading images > > >> > > > >> > > > >> >> Seems it found a new home in gui/dynimage.js, as the function > > >> >DynImage.getImage() > > >> >> > > >> >> /Lunna > > >> >> > > >> >> At 2001-11-09 15:33, Doug Melvin wrote: > > >> >> >Well, how about that. it is gone.. now who done gone > and kill hte > > >> >getImage? > > >> >> >----- Original Message ----- > > >> >> >From: "Cristian Grigoriu" <[EMAIL PROTECTED]> > > >> >> >To: "dynapi-help" <[EMAIL PROTECTED]> > > >> >> >Sent: Thursday, November 09, 2000 9:24 AM > > >> >> >Subject: [Dynapi-Help] preloading images > > >> >> > > > >> >> > > > >> >> >> What is the recommended way to preload images? > > >> >> >> > > >> >> >> I have read the tutorial "Coding a loader" and noticed > > >> >> >> DynAPI.getImage(). Then I looked into the source code > > >> >> >> but I could not find this function. Is this function > > >> >> >> replaced by another? > > >> >> >> > > >> >> >> TIA, > > >> >> >> Grig > > >> >> >> > > >> >> >> > > >> >> >> _______________________________________________ > > >> >> >> Dynapi-Help mailing list > > >> >> >> [EMAIL PROTECTED] > > >> >> >> https://lists.sourceforge.net/lists/listinfo/dynapi-help > > >> >> > > > >> >> > > > >> >> >_______________________________________________ > > >> >> >Dynapi-Help mailing list > > >> >> >[EMAIL PROTECTED] > > >> >> >https://lists.sourceforge.net/lists/listinfo/dynapi-help > > >> >> > > >> >> > > >> >> > > >> >> _______________________________________________ > > >> >> Dynapi-Help mailing list > > >> >> [EMAIL PROTECTED] > > >> >> https://lists.sourceforge.net/lists/listinfo/dynapi-help > > >> >> > > >> > > >> > > > > > > > > >_______________________________________________ > > >Dynapi-Help mailing list > > >[EMAIL PROTECTED] > > >https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > > > > _______________________________________________ > > Dynapi-Help mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > _______________________________________________ > Dynapi-Help mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dynapi-help > _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help