PDA

View Full Version : Simple newbie question... I am confused...



Benolds
July 29th, 2009, 04:15 PM
NEVER MIND, I SOLVED IT MYSELF. IS THERE A WAY TO DELETE THIS?


Well, I know this is one of the most basic things, but I am having trouble adding an instance of a symbol to the stage with action script in Flash CS4.

I have a "fireball" symbol and at the beginning of my code I say:

var myFireball:MovieClip = new fireball;

addChild(myFireball);

but it says : "1180: Call to a possibly undefined method fireball."

Am I doing something simple wrong?


Thanks!

GrndMasterFlash
July 29th, 2009, 04:23 PM
fist make sure you have set your linkage id in the library right click you item, select linkage click export for actionscript, and make sure the class name is correct (in your case fireball)

then reference the class like so


var myFireball:fireball = new fireball();
addChild(myFireball);


and you should now have a fire ball attached to the stage at the 0,0 position ;)