JPEXS Free Flash Decompiler Issue Tracker

If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler

NEW : We have got a new blog where we post some interesting SWF internals info.

List of issuesList of issues

#2336 clipping a shape
Author:
Date created:
Type: question
Visibility: Everybody
Assigned to:
Labels: Clipping
State: closed Help

does anyone know how to clip a shape to a shape in a sprite? ill do my best to explain; i want to clip shape1 to shape2 so shape1 only appears inside shape2. been trying to puzzle things together in a sprite and i couldnt figure out how to do the whole clipping thing (i experimented with clipdepth options but still couldnt get it). thank you again!!
See frame 52 of the attached file. There is Placeobject on depth 2 which places the mask (character 142). That PlaceObject has clipDepth 5, which means all depths from 3 to 5 will be clipped to this region. You see that following Placeobject at depth 3 (character 16) is clipped. The next Placeobject at depth 6 is not clipped by the previous mask. But it creates new mask(character 143) with clipdepth 9. Placeobject at depth 7 (character 16) is then clipped by this mask. I hope it is clear now.
Downloadgraphics.swf (1,399 KiB)
State: new→opened
thanks a bunch! ^u^ extra question; is there a way for the mask to not disappear when doing the clip?
You can remove its clipdepth attribute, then it will act as normal layer and be visible (bot nothing will be clipped).
oohh okok, gotcha. suppose ill just have to make a clone then. nevertheless, thank you once again!!
You're welcome!
State: opened→closed