Results 1 to 1 of 1
-
July 7th, 2008, 01:59 PM #1108Registered User
postsSudoku Game, almost there, but Ive fallen short!.. Help?
Hello!
My friend thought he was a genius by making some crappy Sudoku game on a games factory that did all the work for him, now... I am almost there with this but have run into a hiccup.
All I need to do, is call a function on a 1 of the 9 mc's (called grid"1-9") that is in the mc Im working with.
For instance.
grids:
var completeGrid:Number = 1;
var t:MovieClip = this["grid" + completeGrid];
t.startGrid();
Ok, then that function will run on the mc named "grid1"
and do all the code for that mc, and at the end will do...
grid:
function startGrid() {
//BLAH BLAH BLAH
//CODE CODE CODE
_parent.completeGrid++
var nextGrid:MovieClip = _parent["grid" + _parent.completeGrid];
nextGrid.startGrid;
}
and will continue doing that until completeGrid gets to 10. And then move to the next frame, or whatever.
But my problem lies with calling functions on a different movieClip, I cant get the "t.startGrid();" to work at the moment.

Reply With Quote


Bookmarks