PDA

View Full Version : "class shell" creater command


hangalot
10-07-2004, 07:29 PM
a little doody i whipped up.

open a symbol with stuff on it. run the command, in the ouputwindow a class shell will be generated containing all the vars and includes declared.

for explanation view:
http://johan.plasmapudding.com/index.php?id=228
for download of mxp:
http://www.lennel.net/commands/classBuilder.zip

hope it helps someone.

mayur_vnit
10-12-2004, 02:15 PM
How to retrieve the symbol name in the library of the object which is on the stage

EX: by using following we will get the instance name of an element :

fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].name

I have a standard format of creating certain flash files.
Where in I will have to check if there is a certain movie clip on the stage which doesn’t have an instance name.
I know the Symbol name.
How do I find this movie clip is present on the stage?

Thanks
:confused:

hangalot
10-12-2004, 03:37 PM
aah if u go through the code for this extension u will c a line something like this:

(took me a while to find it as well!!!)
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].libraryItem

which is then the item object in the library

mayur_vnit
10-13-2004, 05:40 AM
:) Thanks a lot for that...
i just want to add some thing:
fl.trace("mayur " + fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].libraryItem )

this gives u out put [object ,libraryItem ]

while


fl.trace("mayur " + fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].libraryItem .name )

gives u

the name ex : if the name in the librbry for that item is "mayur"
then it gives the out put as mayur :)

mayur_vnit
10-15-2004, 06:05 AM
I want to delete all the items in the lirary which do not have a linkage name and those which are not used onto the stage


Pease suggest me some thing .........

mayur_vnit
10-15-2004, 09:12 AM
hi!!!!!!!!!!!!!!!!!!!1

:) :) :) I started it this morning i did it...
I am succesfull to remove all unused items form the library .....

mayur_vnit
10-18-2004, 08:14 AM
I want to access the child movie clip of any movie clip which is on the stage (using jsfl)
plz help me out