I have a Flash Panel (windowSWF) that does something like that.
But it actually creates the movieclips for you and assigns the linkage id's
(and if required even creates the class files and writes
them to disk).
http://www.muzakdeezign.com/osflash/mxp/Create%20Forms.mxp
regards,
Muzak
-
var lib = fl.getDocumentDOM().library;
if (lib.getItemProperty('linkageImportForRS') == true) {
lib.setItemProperty('linkageImportForRS', false);
}
lib.setItemProperty('linkageExportForAS', true);
lib.setItemProperty('linkageExportForRS', false);
lib.setItemProperty('linkageExportInFirstFrame',
Thx all,
I altered this version to only assign the name of the item and not the
full path.
var selItems = fl.getDocumentDOM().library.getSelectedItems();
for(var i=0; iselItems.length; i++){
selItems[i].linkageExportForAS = true;
selItems[i].linkageIdentifier =
Oh it does work, it just doesn't refresh the library view.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Mike Mountain
Sent: 03 November 2005 15:04
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Batch linkage jsfl command
var
]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, November 03, 2005 4:09 PM
Subject: Re: [Flashcoders] Batch linkage jsfl command
Thx all,
I altered this version to only assign the name of the item and not the full
path.
var selItems = fl.getDocumentDOM
Enabling the Export for ActionScript option automatically
sets the linkage ID to the name (without path) of the symbol.
So setting the linkageIdentifier isn't really required.
Just a FYI :-)
As per my example, no looping required...wonder if there's a way to
refresh the library though
@chattyfig.figleaf.com
Sent: Thursday, November 03, 2005 4:48 PM
Subject: RE: [Flashcoders] Batch linkage jsfl command
Enabling the Export for ActionScript option automatically
sets the linkage ID to the name (without path) of the symbol.
So setting the linkageIdentifier isn't really required
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Batch linkage jsfl command
You mean as in deselecting the lib symbols?
var lib = fl.getDocumentDOM().library;
lib.selectNone();
Or you could display an alert dialog:
alert(Linkage ID's set);
regards,
Muzak
() and it
immediately updates the Lib view here.
regards,
Muzak
- Original Message -
From: Mike Mountain [EMAIL PROTECTED]
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Thursday, November 03, 2005 5:46 PM
Subject: RE: [Flashcoders] Batch linkage jsfl command
Not quite
9 matches
Mail list logo