View Single Post
  #2  
Old 01-04-2011, 05:58 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
this.j isn't accessible to the child in the parent object, change your variables to temp ones and you'll be able to access them.

PHP Code:
new GuiControl("container") {
  
this.5;
  
temp.6;
  new 
GuiButtonCtrl("button") {
    echo(
this.name);  // echos "button"
    
echo(this.1); // echos 1
    
echo(parent.j);   // echos 5
    
echo(temp.k);     // echos 6
  
}

__________________
Quote:
Reply With Quote