4 Replies Latest reply on Aug 9, 2007 10:20 AM by batmitra

    Menubar Icons

    batmitra Level 1
      Hi
      I know i've been putting dificult questions here, so here is one more:

      I know how to load icons on the menubar using the [Embed] metatag but i'd like to know if there's a way of loading icons at runtime, because i want to build my menu dinamically and as options change, so does the icons, so it doesn't make any sense the way adobe tells us to do. Let's think if i have 100 options with 100 icons, i would have to do like this:

      [Bindable]
      [Embed(source="myfile.png")]
      public var icon1:class;

      a hundred times....

      thanks