You can use SetDrawLayer to change the texture layer. This included the texture strata aswell as the sublevel.
http://wowprogramming.com/docs/widge...n/SetDrawLayer
Lua Code:
texture:SetDrawLayer("BACKGROUND", -8)
Texture stacking can be tricky if your framestack is ****ed up. You can have a texture on a frame at the highest level possible but if you have a childframe ontop that inherits the parent frame and that childframe has a texture aswell that texture will be ontop of the parent frame all the time. This is intended and needed.
Thanks to the sublevel you can have 16 textures per texture strata. You have 5 texture strata levels. Thus a frame can have up to 80 textures that will properly overlay each other.
Child-frame textures will always be ontop of parent frame textures.
If you have a number of frames that all have UIParent as their parent ... yeah that can get a bit random. You may get different results on each /reload.