PDA

View Full Version : Handling all components in a layer?


Jon Lai
07-23-2006, 09:32 PM
Whats the syntax to handle all the components in a single layer, ie., I want to make everything in a layer to toggle visibility?

Xeef
07-23-2006, 10:13 PM
there is no syntax at all

layers doesn't exist in a compiled SWF they are just a sort of helpers during development

Jon Lai
07-23-2006, 10:22 PM
there is no syntax at all

layers doesn't exist in a compiled SWF they are just a sort of helpers during development

So lets say I have 5 objects in a layer and I'd want them all to become visible (default invisible), I'd have to write 5 lines of code to do it? I was hoping there would be a simpler method...

Xeef
07-23-2006, 10:27 PM
you can put them in a movieclip and contorl this clips visibility
other wise yes

or you use an array whit the clips and a loop
wich are also around 5 lines
but not 1000 if you have 1000 clips :p