Cannot see Movie clip on stage in swf
why can not see movie clip arrays gameloop running code below?
the movie clips showed when in class file.
i made sure not hidden behind other graaphics turning enything else off.
i know gameloop running because trace statements work.
all changed code below. there no error messages:
package
{
import flash.display.movieclip;
import flash.text.textfield;
import flash.events.event;
import flash.utils.timer;
import flash.events.*;
public dynamic class wordarray extends movieclip
{
public var wordtext:wordtext = new wordtext;
var activewordarray:array;
public var wordsl1:array = ["elephant","has","of","off","on","not","got","in","is","it"];
private var tf:textfield;
public var letterarray:letterarray;
public var tiletimer = new timer(500,384);
// ***constructor code
public function wordarray(_tf:textfield)
{
tf = _tf;
nextwordf();
//**run letter tiles start**//
letterarray = new letterarray();
addchild(letterarray);
tiletimer.addeventlistener(timerevent.timer, gameloop);
tiletimer.start();
}
public function gameloop(timerevent:timerevent):void //this gameloop has movieclips in
array should run in swf.
trace statements work,
definately not visible on screen.
{
trace("tile timer started");
letterarray.gameloop();
}
//**end of lettertile code**//
what's letterarray , what's gameloop() in letterarray?
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment