PDA

View Full Version : i want to replace the images with swf's


narutoroot
12-06-2008, 12:00 AM
Alright the defualt for this script is to join 6 images together and have them rotate as a cube. but i want to replace the images with swf's.I also want to know if its ok if the cube script is AS 3 and the swf is AS 2...

heres the part i need to replace the images with swf :
var bdGames:BitmapData=new Games(230,230);

var bmGames:Bitmap=new Bitmap(bdGames);

var bdAnim:BitmapData=new Anim(230,230);

var bmAnim:Bitmap=new Bitmap(bdAnim);

var bdEas:BitmapData=new Eas(230,230);

var bmEas:Bitmap=new Bitmap(bdEas);

var bdBible:BitmapData=new Bible(230,230);

var bmBible:Bitmap=new Bitmap(bdBible);

var bdOop:BitmapData=new Oop(230,230);

var bmOop:Bitmap=new Bitmap(bdOop);

var bdPatterns:BitmapData=new Patterns(230,230);

var bmPatterns:Bitmap=new Bitmap(bdPatterns);

matbury
12-06-2008, 12:54 AM
Wow, that's some thread!

I suggest having a look at Papervision3D: http://code.google.com/p/papervision3d/ It's an open source 3D engine for Flash. Then there's a nice tutorial on Lee Brimelow's site for creating a 3D cube menu using Pv3D: http://www.gotoandlearn.com/play?id=68

Have fun! :)

narutoroot
12-06-2008, 12:59 AM
lol ive made a perfect cube already. all i want to do know tho is instead of bitmaps is to replace them with swfs

matbury
12-06-2008, 11:02 PM
If you're using Papervision3D, you might want to check out the docs:

MovieAssetMaterial () constructor

public function MovieAssetMaterial(id:*, transparent:Boolean = false, initObject:Object = null)
The MovieAssetMaterial class creates a texture from a MovieClip library id.

Parameters id:* — The linkage name of the MovieClip symbol in the library.

transparent:Boolean (default = false) — [optional] - If it's not transparent, the empty areas of the MovieClip will be of fill32 color. Default value is false.

initObject:Object (default = null) — [optional] - An object that contains additional properties with which to populate the newly created material.

Hope this helps! :)