Skip to main content
Participating Frequently
May 9, 2006
Question

problem with components

  • May 9, 2006
  • 2 replies
  • 286 views
Hi
I made a sample chat application with following components.
simpleconnect, chat usercolor.
chat component is working, it is sending and receiving messages.
but when i change color in the usercolor combobox. the color is not reflected in the chat application.
why , whats the problem.
I could not understand, since one week i am struggling with it.

if i run the sample_videoconference file it is working properly, only when i drag new components and make a new application , my combobox components are not responding, even setbandwidth combobox is also not respond if at runtime i change its selection.

i need help very urgently, already i have wasted lot of time.
thanks in advance

regards
avanthika
    This topic is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    avanthikaAuthor
    Participating Frequently
    May 9, 2006
    Hi all,

    I got to know what was the problem.
    I am working on Flash player 7 ,
    if i change the player version to 6 , it is working.

    I think some declarations in the components code is not working in Flash Player 7.

    what i have to change in the code , so that it will working in flash player 7.

    regards
    avanthika
    avanthikaAuthor
    Participating Frequently
    May 9, 2006
    Hi,

    I got to know where the code is not executing

    in the FCComboBox movieclip :

    FComboBoxClass.prototype.fireChange = function()
    {
    this.lastSelected = this.getSelectedIndex();
    if (!this.editable) {
    this.topLabel = this.getSelectedItem();
    this.fLabel_mc.drawItem(this.topLabel, true);
    } else {
    this.value=this.getSelectedItem().label;
    this.fLabel_mc.setLabel(this.value);
    }
    this.executeCallback();
    }

    //-----------------------

    this.executeCallback() is not called in FlashPlayer 7.

    so what i did is instead of above line i have directly called the
    this._parent.doChange() // now each time i change the color in usercolor combobox it is working correctly.

    but the problem is there is one more combo box for setbandwidth,
    for that i have to call doSettings(comboObj);

    as these are components, for both the combo boxes the class file is same.

    is there any common code to replace " this.executeCallback(); " , so that it will execute for both .

    thanks in advance

    regards
    avanthika