Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Director FAQ [14] Objects, Parent Scripts & Factories [14.9] How are factories different from parents, and is there any reason to use them instead?

0
Posted

Director FAQ [14] Objects, Parent Scripts & Factories [14.9] How are factories different from parents, and is there any reason to use them instead?

0

Factories are the way objects were implemented in previous versions of Director. They continue to be available in Director 4 to maintain backwards compatibility. If you use Director 3.1.3 or earlier you obviously have no alternative but to use factories, but for users of Director 4 there is no reason to use them, and parents offer the advantage of automatic disposal. Also, some people have reported that factories’ memory management can be unreliable. In short, ditch those factories now! The syntax for factories is somewhat different, but their functionality is very similar to parent scripts, so it may be useful to read the previous sections for some background. I’m afraid this is gonna be pretty cursory.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123