0 Replies Latest reply on Mar 5, 2008 3:10 PM by daniel__

    unable to set properties of Namespace-Objects

    daniel__
      hi,

      i've run into a problem with the Namespace-objects. I'm unable to set the uri- or the prefix-property - but acording to the api - they should be writable.

      var ns:Namespace = new Namespace("aa", "aa:ns/");
      ns.uri = "bb:ns/";
      ns.prefix("bb");

      both ways to set the properties fail ... the first genertates a compilererror informing me that the property is read-only. the second fails while executing with "Error #1006: value is not a function" (tried this because the first way doesn't work).

      so i guess either the information in the api are incorrect or somethings wrong with the Namespace-Object.
      since i need to set these properties i would be glad if anyone could tell me if there is a workaround.

      thanks
      daniel