I have a bunch of old FLAs with one set of dimensions, including a 60 pixel offset along the y axis. I’m writing a jsfl script to resize the stage (works), delete some unneeded layers (works), and reposition everything (doesn’t work)
What I’m using is:
When I run my script, the items do in fact get moved, but on tweened clips, they get “doubled dipped,” it seems: if I compare the new x and y values of, say, the end keyframe of a clip (only tweened for alpha, for example) is exactly 46 pixels farther right and 60 pixels higher up than it should be.
Is there a better way to reposition everything that avoids this “double dipping” among tweens? I’d love to know! There’s got to be a way, and I feel like I’m so close, but not quite there. (Of course, I’m probably way off…)
Thanks for any advice!
Edit: I’ve performed the steps manually by turning onionskinning on for multiple frames, selecting all frames, then dragging a selection rectangle across everything on the stage, then moving everything by the desired amount, which works: when I look at the history and view the js for those steps, they look exactly like what I’ve typed into my script. The only difference is it works like it should in the IDE; it poops its pants in my script… So sad.