<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/jive/rss" version="2.0">
  <channel>
    <title>Adobe Community: Message List - How to delete objects created with new</title>
    <link>https://forums.adobe.com/community/director/director_lingo?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Thu, 08 May 2014 13:41:36 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-05-08T13:41:36Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: How to delete objects created with new</title>
      <link>https://forums.adobe.com/message/6364975?tstart=0#6364975</link>
      <description>&lt;!-- [DocumentBodyStart:c225610b-5894-4cdb-9746-42866c342155] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Sean,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;DUH! Didn't even know that a 'removeScriptedSprite()' command existed! Very logical. It works perfectly. Thanks again so very much.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Rod&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:c225610b-5894-4cdb-9746-42866c342155] --&gt;&lt;img src='/beacon?t=1415930938814' /&gt;</description>
      <pubDate>Thu, 08 May 2014 13:41:36 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6364975?tstart=0#6364975</guid>
      <dc:date>2014-05-08T13:41:36Z</dc:date>
      <clearspace:dateToText>6 months 7 days ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: How to delete objects created with new</title>
      <link>https://forums.adobe.com/message/6363829?tstart=0#6363829</link>
      <description>&lt;!-- [DocumentBodyStart:87e0b9f4-c968-45cd-8fc1-f68df45dfc3c] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;You have used 'makeScriptedSprite()' to add a sprite to a channel. Try using the reverse: 'removeScriptedSprite()'&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:87e0b9f4-c968-45cd-8fc1-f68df45dfc3c] --&gt;</description>
      <pubDate>Thu, 08 May 2014 02:00:48 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6363829?tstart=0#6363829</guid>
      <dc:date>2014-05-08T02:00:48Z</dc:date>
      <clearspace:dateToText>6 months 1 week ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>How to delete objects created with new</title>
      <link>https://forums.adobe.com/message/6363725?tstart=0#6363725</link>
      <description>&lt;!-- [DocumentBodyStart:dbe56580-6bc8-41c6-95db-5b1613c94aff] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello,&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I am having a problem creating a behavior or script to delete new sprites created in channels. I have a behavior script that creates new sprites using the following (simplified) script:&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;First, a &lt;strong&gt;Beginsprite&lt;/strong&gt; creates a &lt;strong&gt;gChannel_list&lt;/strong&gt; and assigns a beginning &lt;strong&gt;gChannel&lt;/strong&gt; value. &lt;strong&gt;pSprite&lt;/strong&gt; is used to establish the sprite that in the &lt;strong&gt;mousedown&lt;/strong&gt; is clickon. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;on Beginsprite me&lt;/strong&gt;&amp;nbsp; &lt;br/&gt;&lt;strong&gt;&amp;nbsp; gChannel_List =[]&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&amp;nbsp; gChannel = 70&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&amp;nbsp; pSprite = sprite(Spritenum)&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;end&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;In the &lt;strong&gt;mousedown&lt;/strong&gt; the &lt;strong&gt;gChannel&lt;/strong&gt; is incremented and the newly created channel is added to the &lt;strong&gt;gChannel_list&lt;/strong&gt;. &lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;on Mousedown me&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;strong&gt;gChannel = gChannel + 1&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&amp;nbsp; theChannel = addat(gChannel_List,gChannel)&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&amp;nbsp; themember = pSprite.member&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&amp;nbsp; ........&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;strong&gt;channel(gChannel).makeScriptedSprite(themember, point(80,160))&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&amp;nbsp; sprite(gChannel).width = thememberW&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&amp;nbsp; sprite(gChannel).height = thememberH&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&amp;nbsp; sprite(gChannel).rotation = theMemberR&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&amp;nbsp; sprite(gChannel).moveablesprite = 1&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&amp;nbsp; sprite(gChannel).ink = 36&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;&amp;nbsp; ........&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;etc&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;After creation of several sprites based on the the &lt;strong&gt;gChannel&lt;/strong&gt;, the following globals, for example, are returned.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;-- Global Variables --&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;gChannel_List = [71,72,73,74]&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;gChannel = 74&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;My problem is that I am unable to delete these created &lt;strong&gt;gchannel&lt;/strong&gt; sprites with a lingo command. Deleting them from the list, for example, using &lt;strong&gt;deletat(gChannel,1),&lt;/strong&gt; does nothing to remove them from the stage (they do disappear from the list). And while I can display their attributes such as width [&lt;strong&gt;n=getat(gChannel_list, x); put sprite(n).width&lt;/strong&gt;], nothing seems to relate to deleting these &lt;strong&gt;gchannel&lt;/strong&gt; sprites.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;How is it done?&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Hope this is enough information. If not, please let me know. I can provide whatever you might need. Please help.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Rod&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;br/&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:dbe56580-6bc8-41c6-95db-5b1613c94aff] --&gt;</description>
      <pubDate>Thu, 08 May 2014 01:20:29 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/message/6363725?tstart=0#6363725</guid>
      <dc:date>2014-05-08T01:20:29Z</dc:date>
      <clearspace:dateToText>6 months 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

