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

#2055 Change depth in multiple frames?
Author: user TeKett
Date created:
Type: question
Visibility: Everybody
Assigned to:
State: new Help

Im editing an animation and i have to swap the depth of two PlaceOject. Is there a quick way to this or do i have to go through each frame one by one? Id rather not since its over 12k frames.
user
An unorthodox way of doing it is to use "Replace references with other character ID" right click item on the characters (symbols) and replace each with the other one's ID respectively. This will work globally for the flash. It's a hacky solution, but give it a try. If any of the swapped characters had a name and it is used in a script, strange things may happen.
user
The problem with that is that it is using matrixes to animate, so each PlaceObject have unique matrixes for each frame. And the PlaceObjects are referencing the previous frame for the character, id -1. So even if i swap the character and matrix, or doing the same by swapping the depth, the next frame still expects the other order. So the objects get placed and morphed using the wrong matrix. So i have 2 ways of going about this. Either swap the depth of the PlaceObject for every single frame, or swap the depth for the first and then swap the matrix for the PlaceObject for every single following frame.
admin
I don't know about a quick way, but if it is very hard to do manually and you know a bit Java, then you may do it via FFDec Library - see its readme at https://github.com/jindrapetrik/jpexs-decompiler/blob/master/libsrc/ffdec_lib/README.md
user
I will give it a try.