<?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 : All Content - All Communities</title>
    <link>https://forums.adobe.com/</link>
    <description>All Content in Adobe Community</description>
    <language>en</language>
    <pubDate>Mon, 05 May 2014 21:38:43 GMT</pubDate>
    <generator>Jive Engage 7.0.0.1  (http://jivesoftware.com/products/)</generator>
    <dc:date>2014-05-05T21:38:43Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Changes to cast won't stay when I switch between .dir files</title>
      <link>https://forums.adobe.com/thread/1466726</link>
      <description>&lt;!-- [DocumentBodyStart:f3eb962d-352d-4136-990c-165ed4f6f649] --&gt;&lt;div class="jive-rendered-content"&gt;&lt;p&gt;Hello, first time on Adobe's forums.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;First of all, this is not my original script, I was hired to bring a game from old version of Director (I believe Director 5) into Director 11.5 so it will work on new Windows OSs.&lt;/p&gt;&lt;p&gt;The game is broken into about 4 .dir files, and the Lingo script uses a cast named MathCityNaMu to save the game state when the players moves from one DIR file to the next.&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The script creates a cast member inside of the cast file called "MathCityNaMu". At first the cast only contains one member, called "kount". The script duplicates that cast member and inserts the players name and score into the newly created duplicate cast member via this script &lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; member("kount").duplicate()&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; member("kount").name =string(MainCharacterName)&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The script then saves the cast by this line&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="font-size: 10pt; line-height: 1.5em;"&gt;castLib("mathCityNaMu").save( "@casts\mathCityNaMu.cxt")&lt;br/&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;And then when the second .dir file opens, it picks up the cast via this line.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; castLib("mathCityNaMu").filename = "@casts\mathCityNaMu.cxt"&lt;/p&gt;&lt;p style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This process works when I play the game in Adobe Director. However, when I go to publish to an .exe, the functionality is lost. The .exe will hold all the character information until it makes the jump from one .dir file to another, when it loses it. It seems that for some reason the next .dir file will not pick up the right cast, or perhaps the cast is never getting saved properly in the first place. Anyway there is a lot going on in this script and I am willing to try anything. Please lend me some help!&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:f3eb962d-352d-4136-990c-165ed4f6f649] --&gt;&lt;img src='/beacon?t=1415930978674' /&gt;</description>
      <pubDate>Mon, 05 May 2014 21:38:43 GMT</pubDate>
      <author>forums_noreply@adobe.com</author>
      <guid>https://forums.adobe.com/thread/1466726</guid>
      <dc:date>2014-05-05T21:38:43Z</dc:date>
      <clearspace:dateToText>6 months 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

