I'd like to set a serie of layers that they are really similar each other.
The differents is only in the x position and the content they have to
display. Also They have the same events. So i wouldn't write everything for
everyone.

I tried to group them like this:


        var menuflyList =
['x','Presentación','Biografia','Bases','Jurado','Participantes','Patrocinad
ores']

        // BLOCK
        for(i=1;i<=menuflyList.length-1;i++) {

                // this is the criminal line that pops an error.
                eval('block'+i) = new
DynLayer(null,220+10*i,220,12,10,null);
                eval('block'+i).setHTML('<a href="presentacion.html"><img
src="img/quad.gif" width="100%" height="100%" border="0"></a>');
                
                        eval('block'+i+'Listener') = new
EventListener(eval('block'+i));
                        block1Listener.onmouseover=function(e) {
                                target=e.getTarget();
        
menufly.moveTo(target.getX()+4,target.getY()-10);
                                menufly.setHTML(menuflyList[i])
                        }
                        block1Listener.onmouseout=function(e) {
                                menufly.setHTML('')
                        }
                
                        
        
eval('block'+i).addEventListener(eval('block'+i+'Listener'));
                
                DynAPI.document.addChild(eval('block'+i));
        }
        // / BLOCK

But it doesn't works properly indeed. I think that group list them in array
may be the solution. But I don't know even how to manage it.

Do you have any idea or any example of how I could build it? 

Thank u very much indeed.


Lluís Casany

 "The highest creative thought is coming".



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

Reply via email to