Hi
I’m just wondering if creating (unnessesary) objectreferences take alot of memory or affects performance?
ie:
if I have a graphicManager class and a dataManager class
Lets say I have a function in graphicManager that creates a movieClip, and calls it from the dataManager:
[COLOR=“RoyalBlue”]myGraphicManager.createMC();[/COLOR]
Sometimes I like to call it like this:
[COLOR=“RoyalBlue”]someVar = myGraphicManager.createMC();[/COLOR]
to keep a refrence in my dataManger for more readable code and easy access. I’ll then have a reference in the graphicManager and the dataManager. Is this bad? Cause I can always just keep it in the graphicManager and refrence it with
[COLOR=“RoyalBlue”]myGraphicsManager.someVarMC;[/COLOR]
(instead of useing “someVar”)
Any views on this?