Welcome, Guest
  • Author Topic: drawCLear wont work in whiteboard component  (Read 3081 times)

    gaby

    • Moderator
    • Seasoned Programmer
    • *****
    • Posts: 241
    • To code or not to code
      • View Profile
    hi
    so 'im using a whiteboard component with fcs 1.5

    inthe component there is this code:

    FCWhiteBoardClass.prototype.drawClear = function(nc) {
       this.nc = nc;
       if (this.nc.FCWhiteBoard == null) {
          this.nc.FCWhiteBoard = {};
       }
       this.nc.FCWhiteBoard[this.name] = this;
       this.so = SharedObject.getRemote(this.prefix + "whiteboard", this.nc.uri, true);
       this.so.clear();
    };
    this.clearBtn.onRelease = function () {
       this._parent.drawClear(_root.client_nc);
    };

    so i put a clearBtn mc on stage, but the sharedObject is not cleared...

    while talking about whiteboard sharedobject problems, i also try to delete a permanent object created with the whiteboard, but i dont succeed...even after erasing it direct from server (rm my_so.fso) it still load when i open the whiteboard...help !

    i really need help about this...thanks
    The courage to begin is the main step to achievement

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: drawCLear wont work in whiteboard component
    « Reply #1 on: 10/31/07, 13:49 »
    If the button inside the component works, just try to call the drawClear function (and add some trace to be sure you're calling it)

    Jorge

    gaby

    • Moderator
    • Seasoned Programmer
    • *****
    • Posts: 241
    • To code or not to code
      • View Profile
    Re: drawCLear wont work in whiteboard component
    « Reply #2 on: 10/31/07, 16:36 »
    yep i made a trace and the function is called...but dont work...and still i cannot get rid of this stupid sharedobject that come back each time i load the whiteboard even after being deleted from server with an unfair rm
    i'll try to check this out...anyway i'll have to rewrite all components as it seems im going toward Wowza media server...by the does someone have some impressions to give me about wowza? ive been using a fcs 1.5 for a few years and im quite satisfied with it...what do u think about wowza?

    thanks
    The courage to begin is the main step to achievement

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: drawCLear wont work in whiteboard component
    « Reply #3 on: 10/31/07, 16:45 »
    Sorry, I never use wonza

    Jorge