1. With these two codes can be displayed in the upper left corner of the screen the alliance and horde flags

    XML: http://lua.nopaste.dk/p15839 Lua: http://lua.nopaste.dk/p15838

    But when I try to build the frame in the function UNITSCANNER_Icon_Update() entering the fourth argument (inherits) the code no longer works

    This is the not-working code: http://lua.nopaste.dk/p15840

  2. It may be a timing issue, if the template hasn't been loaded yet. Check your FrameXML.log.