I've tried to implement (in Flex Viewer 1.3) a scale-based basemap visibility swap (I need this because I need to make my own topographic map be loaded first with its custom LODs, but I want it to be displayed on top of the Street Map within a certain scale range). The code included in MapManager.mxml is as follows:
..... //Add this to the case statement for tiled tiledlayer.addEventListener(Event.COMPLETE, checkScale);
What happens is that it works when I zoom in from the full extent through the desired scale range, but when I exit this range (e.g. mapscale < 100000) the basemap visibility does not swap back as coded in the "else" statement.
I've put a couple of Alerts, and it seems that when the scale range is exited, the function is not accessed anymore.