# Flash MX Rotating Cube - PLEASE HELP!

**URL:** <https://forum.kirupa.com/t/flash-mx-rotating-cube-please-help/131246>\
**Category:** Uncategorized\
**Created:** [December 14, 2004, 12:13am UTC](https://forum.kirupa.com/t/flash-mx-rotating-cube-please-help/131246 "2004-12-14T00:13:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreahalsey](https://avatars.discourse-cdn.com/v4/letter/a/8dc957/32.png) [@andreahalsey](https://forum.kirupa.com/u/andreahalsey)\
**Post date:** [December 14, 2004, 12:13am UTC](https://forum.kirupa.com/t/flash-mx-rotating-cube-please-help/131246/1 "2004-12-14T00:13:48Z")

</div>

I’m working with the rotating cube found in this tutorial:  
[http://www.kirupa.com/developer/actionscript/faces\_depths.htm](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.

```auto
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!
