Skip to main content
Participant
August 18, 2010
Question

Is it possible to change the position of the FMS chat component in different frames?

  • August 18, 2010
  • 1 reply
  • 357 views

I have developed an application using various FMS2 Communication Components.  One of those is the Chat component.  The application has various display modes (minimized, normal, maximized).  These display modes require the Chat component instance to be resized and repositioned on the screen.  I took the approach of having a separate frame represent each of the display modes.

The problem I am having is that the Chat component won't resize or relocate from the size/position on the first frame.  The visual layout isn't respected, and calling this.moveTo(x,y) has no effect either.  The only way I can get the component to have the desired behavior is to comment out the last line of the Chat component actionscript:

this.setSize(this._width,this._height);

Of course, by doing this, the Chat component appearance is horrible.  I have narrowed this down to two set assignments that occur within the setSize function.  If either one, or both is called, then the component gets "stuck".  The assignments are:

this._xscale = 100;

this._yscale = 100;

Anybody else run into this and come up with a solution?

    This topic has been closed for replies.

    1 reply

    Petro_O__Bochan
    Inspiring
    August 18, 2010

    Try chat_mc._height and chat_mc._x instead.

    dcannoyAuthor
    Participant
    August 18, 2010

    Thanks for the reply.  Unfortunately, that alone won't work because the elements involved (textboxes, scrollbar, button) will appear stretched or compressed.