views:

29

answers:

2

I want to create a MovieClip symbol of a certain width and height, but with content that extends outside its boundaries, with the option to have the external content be clipped/hidden or visible.

In Flex, the solution would be to create a group with .clipAndEnableScrolling = true.

Is there a way to do this in Flash CS5, or will the symbol always resolve to the size of its contents?

A: 

The answer is to use a mask layer to define your symbol boundary rect. This technique will clip out-of-bounds content. See this excellent video:

Creating masks and masked content from lynda.com

Yarin
hehe...you were quite quick to realize it :)
loxxy
Thanks Loxxy- I'll give you the credit anyway
Yarin
+1  A: 

The symbol will always resolve to the size of its contents.

If you wish to make a particular size visible, inside the clip:

  • Draw a shape on a layer above the content layer
  • Mask the content layer.
loxxy