Hey guys sorry if this is a re-post i checked for the answer through other sites as well as this but the information wasn't sufficient plus I'm still learning a lot.
But my question is that i have my engine class which is called keepFocusEngine and another class called mcStar i haven't ran across this problem so i don't really understand how to do it but i want to access a Integer variable from the mcStar through my keepFocusEngine. So in my mcStar class i have a integer variable called private var speed:Number; which holds this in it speed = 2 + Math.random()*2;. I want to change the speed variable to this speed = 10 + Math.random()*2; from my keepFocusEngine through this function:
private function shootPlayerObject(e:TouchEvent):void
{
if (e.type == TouchEvent.TOUCH_TAP)
{
btnShootPlayer = true;
}else
{
btnShootPlayer = false;
}
}
so if the btnShootPlayer = true; i want the speed = 10 + Math.random()*2; to be called on.
Sorry if i confused anyone I'm kind of confusing myself haha. But do you understand what i am trying to accomplish?