[flexcoders] What do this error mean? 1195

2007-09-07 Thread Troy Simpson
I am attempting to use ActionScript to create a RadioButtonGroup and assign
RadioButtons to the Group, but when I try to add a radio button to a group I
get an error.

code:
var rdoGroup:RadioButtonGroup = new RadioButtonGroup():
var rdo:RadioButton = new RadioButton();
rdo.group(rdoGroup);

error:
1195: Attempted access of inaccessible method group through a reference with
static type mx.controls:RadioButton.
I don't understand the error message.
Could someone explain this to me?

Thanks,

-- 
Troy Simpson


Re: [flexcoders] What do this error mean? 1195

2007-09-07 Thread Paul Andrews
Try rdo.group = rdoGroup;

Your syntax is a method call.

Paul
  - Original Message - 
  From: Troy Simpson 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, September 07, 2007 7:09 PM
  Subject: [flexcoders] What do this error mean? 1195



  I am attempting to use ActionScript to create a RadioButtonGroup and assign 
RadioButtons to the Group, but when I try to add a radio button to a group I 
get an error.

  code:
  var rdoGroup:RadioButtonGroup = new RadioButtonGroup():
  var rdo:RadioButton = new RadioButton();
  rdo.group(rdoGroup);

  error:
  1195: Attempted access of inaccessible method group through a reference with 
static type mx.controls:RadioButton.

  I don't understand the error message.
  Could someone explain this to me?

  Thanks,

  -- 
  Troy Simpson