Director 11.5. How do you create a new Cast Library Object via Script?

Is this possible? If so, please submit code.

LVL 21
NerdsOfTechTechnology ScientistAsked:
Who is Participating?
Chris-ChambersConnect With a Mentor Commented:

A solution I use a lot is to keep an empty cast file in the root of the project, and a dummy cast in the project (but set as external), and when I need to create a new cast I copy and rename the empty cast to what I want, and point the internal cast filename to the new cast using:

castLib("dummyCast").fileName = "newCast.cst"

If you need a further explanation let me know.

This of course depends on what you are trying to achieve. If you could give me more details that would be great.

Hope this helps,

NerdsOfTechTechnology ScientistAuthor Commented:
I am running on Microsoft Windows Vista Ultimate. I am running Adobe Director 11.5. The code syntax I am using is Lingo. I changed my original question to be more descriptive.

I added Adobe Creative Suite to the zoning.

I did find a solution that uses an Xtra, If no experts answer I will close the question down.

NerdsOfTechTechnology ScientistAuthor Commented:
I thought that was the only option... Thanks for the confirmation.
NerdsOfTechTechnology ScientistAuthor Commented:
Thanks for your reply! This is the strategy I am currently using. Thanks for confirming this as a workaround!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.