This article was written a long time ago when there was a 32K limit on scripts - I'm pretty sure that this limit has been eliminated now. But back in the old days, if you had a lot of code and data, you sometimes ran up against the 32K limit for a single script. Using the data cast member approach allowed you to separate out the code from the data, thereby allowing you to have one 32K script member that would get its data from one or more 32K data cast members.
I hadn't thought about the shockwave benefit - so thank you for that tip. irv At 2:29 PM -0500 2/1/02, David Benman wrote: >Really cool concept Irv. Another feature is that shockwave loads script >members a lot sooner than fields. Not that I ever had data that didn't get >loaded because it hadn't streamed down yet ;) Regarding the 32K limit, I was >unclear from your article how this gets around it. > >> Others have stated that it does take a long time to build up a long >> list like this. In addition to the other ideas, I would like to add >> the idea of using a "data cast member". Details can be found at: >> >> http://www.director-online.com/accessArticle2.cfm?id=442 >> >> But the basic idea is that rather than build up your list on the fly, >> build the list in a Lingo handler, then call the handler to return >> the list. I'm sure it would be much faster and perhaps easier to >> read and change than what you are currently doing. >> >> Irv >> . >> >> At 9:24 AM -0200 2/1/02, lpovoas wrote: >>> I have implemented something like a 'database' in director, it has assigns >>> authors with some articles. >>> so, there is HUGE list of authors (1200 i believe) and a HUGE list o >>> articles. >>> >>> the lists are created like this >>> autores = [] >>> append autores, [#autor:"chico da silva", #articles: [[#titulo: "tieta do >>> agreste", #link: "novelas\tieta.html"],[#titulo: "o que � isso >>>companheiro", >>> #link: "companheiro.mov]] >>> ...... there are more than 1000 append's >>> >>> >>> the problem is that when I tell director to create the list, it >>>takes almost >>> a minute on a K6-400 (that are >>> very common here in Brazil) >>> How can I make things faster?? >>> >> >> > >[To remove yourself from this list, or to change to digest mode, go >to http://www.penworks.com/lingo-l.cgi To post messages to the >list, email [EMAIL PROTECTED] (Problems, email >[EMAIL PROTECTED]). Lingo-L is for learning and helping with >programming Lingo. Thanks!] -- Lingo / Director / Shockwave development for all occasions. (Home-made Lingo cooked up fresh every day just for you.) [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
