Still having a problem, pushing Button to hero… to even trace. so heres what im trying…
This is the Button Class sooo… button.as
package com.controls {
import flash.display.MovieClip;
import flash.events.MouseEvent;
import com.Hero;
public class buttons extends MovieClip {
public function buttons() {
// constructor code
btn1.addEventListener(MouseEvent.CLICK,Shoot);
}
public function Shoot(event:MouseEvent):void{
Hero.Shoot();
}
you can see I linked my Hero.as (into the package). which is good.
This is the Hero.as (which im trying to just trace, the fact the button is pressed so i can move along).
public function Shoot()
{
trace "shoot";
}
I included the package for the hero.as … (im not showing the full hefty doodah of the file cuase theres to much). The question is… What is missing heres the error code im getting.
G:\Adobe Flash\Projects\Nuclear Fallout AS3 - Android Market\com\controls\buttons.as, Line 16 1061: Call to a possibly undefined method Shoot through a reference with static type Class.
Any help would be thankful.
Thanks.