PDA

View Full Version : 1195: Attempted access of inaccessible method start through a reference with static t



LauraITT
March 12th, 2009, 07:49 AM
Hiya,

This .as file was working fine yesterday and now Im getting this error.
Any one hav any ideas, they would be greatly appreciated.


package classes
{
import flash.display.MovieClip;
import classes.RollableChar;


public class MainApp2 extends MovieClip
{
private var rolly:RollableChar; // Decalaring an object...

public function MainApp2()
{

// 1. Create a RollableChar...
rolly = new RollCharacter(); // Instantiate the object...


// 2. Add this to the stage...
this.addChild(rolly);

// 3. Position the Character correctly...
rolly.x = 20;
rolly.y = 310;

// 4. Start the character...
rolly.start();
}
}
}

phelpsi
March 13th, 2009, 06:02 PM
Could you post the RollableChar code as well?

LauraITT
March 16th, 2009, 06:48 AM
Thanks its sorted, just one of my functions wasnt public.