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 03-23-2005, 05:42 AM   #1
AdemoS
Insufficient Funds
 
AdemoS's Avatar
 
Join Date: Mar 2005
Posts: 7
Default Deleting Multiple Frames' Action Script

I have huge number of frame (about 200) that all have incorrect action script. All I want to do is clear all action script in those frames. Is there any command or method for killing multiple frames' action script, all at once?

EDIT: Tried searching, no results revelvant to my problem.

Last edited by AdemoS; 03-23-2005 at 05:45 AM..
AdemoS is offline   Reply With Quote
Old 03-23-2005, 06:04 AM   #2
CyanBlue
Super Moderator
 
CyanBlue's Avatar
 
Join Date: Jan 2002
Location: Centreville, VA
Posts: 24,881
Default

I don't think that's possible to my knowledge unless somebody creates JSFL to do that... But it will probably take more time to make that script than deleting them manually...
__________________
CyanBlue / Jason Je / Macromedia Certified Flash Developer & Designer
http://CyanBlue.FlashVacuum.com
http://www.FlashVacuum.com
http://tutorials.FlashVacuum.com

Do NOT PM, Email or Call me... Your question belongs right in this forum...
CyanBlue is offline   Reply With Quote
Old 03-23-2005, 06:12 PM   #3
deadbeat
Registered User
 
Join Date: Feb 2001
Location: vancouver
Posts: 2,219
Default

I agree it would have to be JSFL...but I don't think scripting it would be that difficult...something like this - assuming your actionscript is on a layer named "code":

ActionScript Code:
var timeline = fl.getDocumentDOM().getTimeline(); var layerIndex=timeline.findLayerIndex("code"); var frames=timeline.layers[layerIndex].frames; for(var f=0;f<frames.length;f++){ frames[f].actionScript=''; }

I haven't tested this, so I'm not sure if this will work exactly as is, but that's the basic idea...

Check out the JSFL documentation for more info...
http://www.macromedia.com/livedocs/f...I.html#wp73028

K.

Last edited by deadbeat; 03-23-2005 at 06:19 PM..
deadbeat is offline   Reply With Quote
Old 03-24-2005, 01:45 PM   #4
hangalot
lala
 
hangalot's Avatar
 
Join Date: Feb 2002
Location: on the road
Posts: 2,859
Default

ActionScript Code:
var timeline = fl.getDocumentDOM().getTimeline(); var layers = timeLine.layers; var layerLen = layers.length; var layerFrames , frameLen; for(var i = 0 ; i < layerLen ; i++) {     layerFrames = layers[i].frames;     frameLen = layerFrames.length;         for(var z = 0 ; z < frameLen ; z++)     {               layerFrames[z].actionScript = "";          } }
__________________
oi poloi
http://www.memorphic.com/news/
hangalot 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 10:53 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.