1 Reply Latest reply on Jan 20, 2009 11:50 AM by Newsgroup_User

    RSL dont play well with monkey-patch framework classes

    kuopching Level 1
      Hi, i've got serious issue with RSL when override/monkey-patch some mx classes.
      I patch mx.controls.Button this way
      1) create folder structure mx/controls/
      2) put mx.controls.Button.as in that folder
      3) change some stuff in Button.as( let's have in createChildren sth like this.label = "patch";
      4) clean/build/run
      5) in "merge into code" linkage works OK - this means label apears
      in "RSL" linkage works BAD - it seems RSLibrary overlap my patched class

      I also tried make swc and change order with flex framework in library-path view but doesnt work for me
      When i am set framework linkage to "merge into code" everything works properly.
      This bug i can reproduce for every mx component
      Example is in here > http://rapidshare.com/files/186733851/RSL_bug.zip.html
      FLex SDK 3.2.0.3958
      compile in FB 3.0.205647
      Please give me some advice
        • 1. Re: RSL dont play well with monkey-patch framework classes
          Level 7

          "kuopching" <webforumsuser@macromedia.com> wrote in message
          news:gl594o$67r$1@forums.macromedia.com...
          > Hi, i've got serious issue with RSL when override/monkey-patch some mx
          > classes.
          > I patch mx.controls.Button this way
          > 1) create folder structure mx/controls/
          > 2) put mx.controls.Button.as in that folder
          > 3) change some stuff in Button.as( let's have in createChildren sth like
          > this.label = "patch";
          > 4) clean/build/run
          > 5) in "merge into code" linkage works OK - this means label apears
          > in "RSL" linkage works BAD - it seems RSLibrary overlap my patched
          > class
          >
          > I also tried make swc and change order with flex framework in library-path
          > view but doesnt work for me
          > When i am set framework linkage to "merge into code" everything works
          > properly.
          > This bug i can reproduce for every mx component
          > Example is in here >
          > http://rapidshare.com/files/186733851/RSL_bug.zip.html
          > FLex SDK 3.2.0.3958
          > compile in FB 3.0.205647
          > Please give me some advice

          Pick either monkey patching or RSL's. You can't really do both in the same
          project, as you've discovered.