I have come across an issue in flash pro while using commands written in jsfl.
I have a jsfl command that moves registration points on a selected library instance. A snippit of the command that does the moving is:
fl.getDocumentDOM().enterEditMode('inPlace');
var ele = fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0];
ele.x = 0;
ele.y = 0;
ele.x = -ele.left;
ele.y = -ele.top;
ele.x += newRegX;
ele.y += newRegY;
fl.getDocumentDOM().exitEditMode();
After running the command everything looks good. The reg point has been moved to where I want it to be.
However, if I save and reload the fla the registration points show back up where they were before the move command.
It seems like the jsfl move values are not being saved correctly. Is this something others have seen before? Is there a fix to this issue?
Thanks.
Yes I have also found the saving bug when messing with the transform point and jsfl.
I was trying to move the registration point to the current transform point.
First version of the code it all worked fine but after saving and opening again only the first frame had moved.
Second version of the code I went through all the frames and selected then deselected all alements on each frame - this seemed to fixed the issue. - manually doing it did.
However I then noticed I was still haveing some issues - this could be fixed by manually entering the symbol and moving the transform point - saving and opening then worked.
I could not however do that step with code (well I could but it didnt fix the issue)
Am Going to look for other thisng that might help - adding a new layer - or something that will force flash to realise that things have changed.
But this is definately a flash bug - when everything looks and works fine but the reverts to something else after a save and reopen - suggests a much larger bug with saving.
North America
Europe, Middle East and Africa
Asia Pacific