i’m having trouble this errors keep comeup :
1046: type was not found not a compile-time constant: NewsItem
1108: call to a possibly undefined
my actions is :
var newsContainer:Sprite = new Sprite;
addChild(newsContainer);
var newsArray:Array = new Array( );
for(var k:Number=0;k<0;k++) {
var newsItem:NewsItem = new NewsItem;
newsArray.push(newsItem);
newsContainer.addChild(newsItem);
}
You need to
importtheNewsItemclass.An import statement follows the structure:
Where the path begins from the location of the .fla file. For example, if you have a folder
compilein the same directory as your .fla and it contains a classMyClass, the import statement would be: