I hope I can explain this properly. I’m using flashDevelop for an avatar creation engine. I have a movieclip(class) called body_view which is structures like this :
body_view -> 10 visual body components -> each component needs to have a jpeg loaded
Then there is a body_model class which is extended from the body_view class and is responsible for all loads/saves/interactions now body_model class is as follows:
body_models -> variables holding (values) -> populateView (function)
Now through the populateView function I need to populate the components of body_view but the issue is if I load a jpeg/swf on a function it comes on stage. I do not want it on stage I want it in its perticular place in the body_view
I hope someone can help me out!
Since a Loader is a DisplayObject, you can add it (and thereby the image or swf it loads) to any DisplayObjectContainer, like a Sprite or MovieClip, using addChild(), schematically something in the lines of this:
Also, you can move a loader (or other DisplayObject) from one place to another by using addChild() again:
It will then be removed from its current position in the display list and added to the new.