the only 'faster' way that I can think of would be
to combine these images into just a few, or just one
and put them/it into a layer behind your grid
----- Original Message -----
From: "Jordi - IlMaestro - Ministral" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 10:46 AM
Subject: Re: [Dynapi-Help] (setHTML vs setBgImage) and (keyevents not being
captured)


> That's a matter of focus. I can't think of a way to solve it now.
>
> Terry Valladon wrote:
>
> >
> >
> > Hello, I was working with some layers and images last night and came
> > to the discovery that setHTML is very slow compared to setBgImage, and
> > I was wondering, if in light of this, anyone know a method faster then
> > setBgImage of assigning an image to a layer. At this point setBgImage
> > seems my best bet but I will be dealing with a 9x9x4 grid of layers
> > (324 layers), so anything faster would be great.
> >
> > Also I have the following code:
> > }
> > DynAPI.onLoad = function() {
> >         myListener = new EventListener(DynAPI.document)
> >                 myListener.onkeyup=function(e) {
> >                 onKeyPress()
> >                 }
> >         DynAPI.document.addEventListener(myListener)
> > }
> > function onKeyPress () {
> > var keycode;
> > if (window.event) keycode = window.event.keyCode;
> > else if (e) keycode = e.which;
> > else return true;
> > if (keycode == 38){myLayerPlayer.moveTo(myLayerPlayer.x,
> > myLayerPlayer.y - 32)}
> > if (keycode == 40){myLayerPlayer.moveTo(myLayerPlayer.x,
> > myLayerPlayer.y + 32)}
> > if (keycode == 39){myLayerPlayer.moveTo(myLayerPlayer.x + 32,
> > myLayerPlayer.y)}
> > if (keycode == 37){myLayerPlayer.moveTo(myLayerPlayer.x - 32,
> > myLayerPlayer.y)}
> > return true
> > }
> >
> > and this works great unless the person clicks on a layer or image on
> > the page, when this happens it no longer captures key events. I was
> > hoping someone could slap me around a bit and show me what it is that
> > I am doing wrong...
> >
> > Thank you for your time,
> >         Terry
> >
> >
> > *
> > *********************************************************************
> > This email and any files transmitted with it are confidential and
> > intended solely for the use of the individual or entity to whom
> > they are addressed. This footnote also confirms that this email
> > message has been swept for the presence of computer viruses.
> >
> > **********************************************************************
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help


---
Outgoing mail is certified Virus Free by AVG Free Edition
Download at: http://www.grisoft.com/html/us_index.cfm
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to