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

Is this possible? If so, please submit code.

Thanks!
LVL 22
NerdsOfTechTechnology ScientistAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Thanks.
0
Chris-ChambersCommented:
Hi,

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,

Chris.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
NerdsOfTechTechnology ScientistAuthor Commented:
I thought that was the only option... Thanks for the confirmation.
0
NerdsOfTechTechnology ScientistAuthor Commented:
Thanks for your reply! This is the strategy I am currently using. Thanks for confirming this as a workaround!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development Software

From novice to tech pro — start learning today.