Skip to main content
January 6, 2010
Question

What code will turn layer vis on or off dependent on magnification ?

  • January 6, 2010
  • 1 reply
  • 411 views

Hi,

We have a flash vector type map with pan and zoom ability and need to have layer1 which features a simple flash vector map visible from the initial overview until when the user has zoomed in to a certain amount when a more detailed layer2 flash vector map then appears and layer1 disappears. I would imagine a code turning off or on visibility of a layer dependent upon the zoom is what we need.

Is such possible and how can we achieve this please ?

What would be the code ?

Envirographics

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 6, 2010

you can't use actionscript to control any characteristic of a layer.

you can convert each object in a layer to a movieclip or, add each object in a layer to a parent movieclip and use actionscript to control all properties (including visibility) of the movieclip(s).