Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Extensions and Plugins > JSFL - Extending Flash

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-07-2004, 08:29 PM   #1
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default "class shell" creater command

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.
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 10-12-2004, 03:15 PM   #2
mayur_vnit
Tracing The Dark
 
mayur_vnit's Avatar
 
Join Date: Sep 2004
Posts: 538
Default How to retrieve the symbol name

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
mayur_vnit is offline   Reply With Quote
Old 10-12-2004, 04:37 PM   #3
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

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
__________________
oi poloi
http://www.memorphic.com/news/
hangalot is offline   Reply With Quote
Old 10-13-2004, 06:40 AM   #4
mayur_vnit
Tracing The Dark
 
mayur_vnit's Avatar
 
Join Date: Sep 2004
Posts: 538
Arrow thanks just to add

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 is offline   Reply With Quote
Old 10-15-2004, 07:05 AM   #5
mayur_vnit
Tracing The Dark
 
mayur_vnit's Avatar
 
Join Date: Sep 2004
Posts: 538
Default cleanig library.........

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 is offline   Reply With Quote
Old 10-15-2004, 10:12 AM   #6
mayur_vnit
Tracing The Dark
 
mayur_vnit's Avatar
 
Join Date: Sep 2004
Posts: 538
Cool Hurrey

hi!!!!!!!!!!!!!!!!!!!1

I started it this morning i did it...
I am succesfull to remove all unused items form the library .....
mayur_vnit is offline   Reply With Quote
Old 10-18-2004, 09:14 AM   #7
mayur_vnit
Tracing The Dark
 
mayur_vnit's Avatar
 
Join Date: Sep 2004
Posts: 538
Question How to accessing children of stage elements

I want to access the child movie clip of any movie clip which is on the stage (using jsfl)
plz help me out
mayur_vnit is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:28 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.