Yes, I also noticed you can't have the same name on the reference javascript variable as the same name as the layer and that's because the layer already exists as a javascript variable only not just reachable directly from DynAPI (or so I figure).
 
I also noticed that when you do extension widgets (my ccreation.ext.layerpos.js being my example here) that modify one or more properties of the dynlayer, you can't use it before the dynlayer is attached to either the document or another dynlayer (ie the addChild() function)
 
Henrik Våglin [ [EMAIL PROTECTED] ]
----- Original Message -----
Sent: Wednesday, November 28, 2001 11:07 PM
Subject: [Dynapi-Help] Some problems I had with inline layers.

//It seems that you cannot defined inline layers this way
DynAPI.>{
layer1 = this.document.getAll()['layer1']
layer2 = this.document.getAll()['layer2']

myLayer2 = new DynLayer(null,100,100,80,50,'red',true)
myLayer2.setHTML("myLayer2")
DynAPI.document.addChild(myLayer2)
}

//But this way is ok
DynAPI.>{
NEWNAMElayer1 = this.document.getAll()['layer1']
NEWNAMElayer2 = this.document.getAll()['layer2']

myLayer2 = new DynLayer(null,100,100,80,50,'red',true)
myLayer2.setHTML("myLayer2")
DynAPI.document.addChild(myLayer2)
}

//Or this way
DynAPI.>{
myLayer2 = new DynLayer(null,100,100,80,50,'red',true)
myLayer2.setHTML("myLayer2")
DynAPI.document.addChild(myLayer2)

layer1 = this.document.getAll()['layer1']
layer2 = this.document.getAll()['layer2']
}


Attached is a file that I use to make such observations. Can someone confirm
this?

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Reply via email to