switching "loadmovie" to "attatch movie clip&

  • Jennib
  • Born
  • Born
  • Jennib
  • Posts: 2

Post 3+ Months Ago

I reeeeeeeeeeeaaaaaaaalllllllllyyyyyy need some help.

I don't know if this is possible... I'm making my parents something for their anniversary, I found a really great script for a 3d rotating cube and it works really well... the only thing is, it loads an external jpg for each face. I wanted to have a button on each face, so I need to know how to just attach a movie clip to each side instead of loading an external source.

This is the code that loads each different face:

for (var i = 0; i<picCube.holderArray.length; i++) {
var holder = picCube.holderArray[i];
var c = holder.createEmptyMovieClip("loader", 2);
c.loadMovie("f"+(i+1)+".jpg");
}

Does anyone know how I can attach movie clips to each face instead of the external jpgs?

my faces are named "faceArray[0]","faceArray[1]","faceArray[2]",etc if that helps.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Jennib
  • Born
  • Born
  • Jennib
  • Posts: 2

Post 3+ Months Ago

it seems like i'd just be able to switch:

c.loadMovie(blahblah)

for

c.attachMovie(blahblah)

right?
  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

loadMovie("f"+(i+1)+".jpg")

The load movie class will take images or swfs. The easy thing to do would be to publish movie clips with your button inside and load it in instead of the jpeg

Code: [ Select ]
c.loadMovie("f"+(i+1)+".swf");


assumes that you name your swfs the same as the jpegs. looks like a number is needed 1,2,3,etc


Code: [ Select ]
c.attachMovie("name of linkage", "newClipName", c.getNextHighestDepth());

should work as well

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 13 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.