PDA

View Full Version : moving symbols from a library to another with jsfl


gustavo.the.rabbit
07-18-2007, 11:22 AM
Hi all!
I want to do a jsfl script for moving or copying items from a library to another.

Is it possible?
I know how to move between different flas and how to move items from a place to another (in the same library) but I can't find a way of doing it with libraries in 2 different flas...

can someone help me? Thaaaaaaanks

jjbilly
09-24-2007, 04:26 PM
If you search this forum from a couple of years ago, you might find there are some suggestions by Hangalot (I'm not quite sure);

Note that if you copy an element from one library to another fla, that's nough to have copied it to the library too. Then just delete the selection (your added clip), and you're done.

hangalot
09-28-2007, 04:32 PM
yeah, i would have written something about this as i spent 2 months wasting my life on this 3 years ago
here is some source from a talk i gave a few years ago
http://www.londonmmug.org/showthread.php?t=140
the merge tool is the one you would want to look at

robchis
09-14-2011, 11:02 AM
hangalot, are you still around?

You hold the key to my struggles with your JSFL solution for moving library symbols from one library to another!

But... the link you provided no longer exists!

PLEASE, if you, or anyone else can help me, can post that solution here or point me to an active link, I would be much obliged!!!

Thanks hangalot (and everybody else!)

jjbilly
09-15-2011, 03:35 PM
Hi Robchis,

As I recall, things get buggy when you try to do this, and if I'm remembering right, the solution is to copy between documents instead - you take the object from the library to the document, then cut it from the document, and paste it in the target library's document. You should then be able to find it in the library of that document too.

It's a while since I've actually done much work with JSFL, but generally - it's buggy, so if things don't work, try an entirely different way of doing things. Oh, it's all coming back to me - the library in particular is buggy. I seem to recall there are occasions where acting on library items will break your code unless you have entered editing mode for the item and then left editing mode again... black magic like this is unfortunately necessary a fair bit.

Good luck.