I made an interactive atlas of health facilities. Each facility is displayed with a symbol on the map. when the user rolls over the symbol it magnifies it by 2. when the user clicks on the symbol is remains magnified and information about that facility pops up. There are two functions used for the magnification (zoomIn and zoomOut) as follows.
they work great except for when the user clicks a new tab in the Atlas (which is actually a movie clip containing the information of the tab) until which the zoom functions stop working and I get an error message about a term being undefined (zoomIn and zoomOut)
the zoom functions are defined on the main Timeline and work great, i just don't understand why they stop working in the movie clip?
you can see the application at http://health.geo.msu.edu/atlas.html the problem happens when you click on the "view by service" tab and check the box for nursing homes for psych beds and then click a symbol on the map..the symbol stays magnified and stuck in the "up" state, which should not happen. The symbols behave great on the "view by facility" tab.
i can provide more code to this as well.
if the functions exist, why would they only work part of time?
any insight into this problem would be greatly appreciated.
thanks,
K
PHP:
function zoomIn(evt) {
//trace(evt.target.instanceName);
//this.nurseArray[53].scaleX=3;
this[whichDot+"Array"][evt.target.instanceName.slice(5,evt.target.instanc eName.length)].scaleX=2;
this[whichDot+"Array"][evt.target.instanceName.slice(5,evt.target.instanc eName.length)].scaleY=2;
}
function zoomOut(evt) {
this[whichDot+"Array"][evt.target.instanceName.slice(5,evt.target.instanc eName.length)].scaleX=1;
this[whichDot+"Array"][evt.target.instanceName.slice(5,evt.target.instanc eName.length)].scaleY=1;
}
they work great except for when the user clicks a new tab in the Atlas (which is actually a movie clip containing the information of the tab) until which the zoom functions stop working and I get an error message about a term being undefined (zoomIn and zoomOut)
the zoom functions are defined on the main Timeline and work great, i just don't understand why they stop working in the movie clip?
you can see the application at http://health.geo.msu.edu/atlas.html the problem happens when you click on the "view by service" tab and check the box for nursing homes for psych beds and then click a symbol on the map..the symbol stays magnified and stuck in the "up" state, which should not happen. The symbols behave great on the "view by facility" tab.
i can provide more code to this as well.
if the functions exist, why would they only work part of time?
any insight into this problem would be greatly appreciated.
thanks,
K