My peers:
Is there a method of alieviating the terrible redundancy in the
example below? That is, is there a way to attach the same eventListener
to several layers at once?
industryListener=new EventListener(industry)
industryListener.onslideend=function(e) {
ani = 0
}
casesListener=new EventListener(cases)
casesListener.onslideend=function(e) {
ani = 0
}
listingListener=new EventListener(listing)
listingListener.onslideend=function(e) {
ani = 0
}
industry.addEventListener(industryListener)
cases.addEventListener(casesListener)
listing.addEventListener(listingListener)
--
Joshua Hancik
VP Interactive Media
The Factory Interactive, Inc.
305.752.9400
begin:vcard
n:Hancik;Joshua
tel;cell:786.412.2832
tel;work:305.752.9400
x-mozilla-html:FALSE
url:http://www.thefactoryi.com
org:The Factory Interactive, Inc.
adr:;;5838 SW 144 Circle Pl;Miami;FL;33183;USA
version:2.1
email;internet:[EMAIL PROTECTED]
title:VP Interactive Media
x-mozilla-cpt:;3
fn:Joshua Hancik
end:vcard