I’m working with the rotating cube found in this tutorial:
http://www.kirupa.com/developer/actionscript/faces_depths.htm
I am wanting the flash movie to automatically load a jpg using loadMovie() into each of the different faces. I’ve tried messing around with the code but I haven’t gotten it to work. I believe the following code needs to be edited in some way to open the movie into the faces. An example of one movie loading into one face should be all I need.
rollOverFace = function(){
this.col = 0x990000;
};
pressFace = function(){
display_txt.text = "You just pressed "+this._name;
};
rollOutFace = function(){
this.col = 0xdddddd;
};
for (i=0; i<6; i++){
emptyFace = theScene.createEmptyMovieClip("face"+i,i);
emptyFace.col = 0xdddddd;
emptyFace.onRollOver = emptyFace.onDragOver = rollOverFace;
emptyFace.onRollOut = emptyFace.onDragOut = rollOutFace;
emptyFace.onPress = pressFace;
emptyFace.draw = drawFilledSquare;
}
Thanks in advance for all your help!