Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-20-2012, 03:24 PM   #1
101_North
Member
 
Join Date: Oct 2005
Posts: 40
Default Delete a specific layer?

I'm trying to delete a specific layer but can't get it to work.

//Set timeline
var timeline = fl.getDocumentDOM().getTimeline();

//Find layer index
var layerIndex = timeline.findLayerIndex("Layer 1");

//This works
timeline.deleteLayer(2);

//This doesn't work
timeline.deleteLayer(layerIndex);

Any ideas would be appreciated...

Thanks

101
101_North 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 08:01 PM.

///
Follow actionscriptorg on Twitter

 


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