Richard,
I have put all the loading stuff outside the onLoad method and the
onLoading works.
You can se it in http://www.unponteper.it
Thank you for your courtesy.
Regards,
-rochi
----- Messaggio originale-----
Da: "Richard Bennett" <[EMAIL PROTECTED]>
Data: Venerdi 25 Maggio 2001, 10:26
Oggetto: Re: [Dynapi-Help] Loader Tutorial
> Yes you are right, change to DynImage.
> I could however not get
> DynImage.onLoading
> to work.
> I had done this:
>
> img3 = DynImage.getImage('../images/logo3.gif');
> img4 = DynImage.getImage('../images/logo4.gif');
> img5 = DynImage.getImage('../images/logo5.gif');
> img1 = DynImage.getImage('../images/logo1.jpg');
>
>
> DynImage.onLoaderStart=function() {
> var max=DynImage.loadimages.length;
> var done=DynImage.ItemsDone
> alert('in onLoaderStart, '+max+' images waiting, '+done+' done')
> }
> DynImage.onLoading=function() {
> var max=DynImage.loadimages.length;
> var done=DynImage.ItemsDone
> alert('in onLoading, '+max+' images waiting, '+done+' done')
> }
> DynImage.onLoaderDone=function() {
> var max=DynImage.loadimages.length;
> var done=DynImage.ItemsDone
> alert('in onLoaderDone, '+max+' images waiting, '+done+' done')
>
> DynAPI.mainPage()
> }
>
> It works, but onLoading never fires, maybe because img.complete is
> used to
> monitor loading, and I think this doesn't work . Using img.onload
> mightwork better.
>
> Richard
>
>
> ----- Original Message -----
> From: "Rochi Febo Dommarco" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: 25 May, 2001 10:07
> Subject: [Dynapi-Help] Loader Tutorial
>
>
> > Hi all,
> >
> > looking at the Pascal Loader tutorial I wasn't unable to find
> > DynAPI.onLoaderDone ... and so on. I think they must be
> substituted by
> > DynImage.onLoaderDone ... including dynapi.gui.dynimage.js
> >
> > After creating a DynImage I think that w and h must be evaluated to
> > current image width and height.
> >
> > Regards,
> > -rochi
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> >
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help