unkulunkulu
08-26-2008, 12:40 PM
Hello everyone,
I'm coding an application that uses MVC architecture, but I can't figure out where I should keep my graphical assets. I have a single SWF file with several library items with Linkage identifiers and I load the SWF file at the very beginning of the app.
After I get the reference to the swf (MovieClip), I pass it to the main Application, which passes it along to View, which passes it to whichever of it's descendants need it. That's quite a lot of passing along...
I'm wondering if it would be better to keep it in a single Singleton class, so I could reference it from wherever I need it. Has anyone used another approach to this.
Any help is greatly appreciated.
I'm coding an application that uses MVC architecture, but I can't figure out where I should keep my graphical assets. I have a single SWF file with several library items with Linkage identifiers and I load the SWF file at the very beginning of the app.
After I get the reference to the swf (MovieClip), I pass it to the main Application, which passes it along to View, which passes it to whichever of it's descendants need it. That's quite a lot of passing along...
I'm wondering if it would be better to keep it in a single Singleton class, so I could reference it from wherever I need it. Has anyone used another approach to this.
Any help is greatly appreciated.