moviecliploader problem, how to move mc-s together?

  • YvorL
  • Newbie
  • Newbie
  • YvorL
  • Posts: 6

Post 3+ Months Ago

Hi!

I'm just learning (really fast AS, and I was wondering how can I move swf files together when they're loaded, or not. For example I've 9 swf in 3 rows, 3lines, the second row is only loaded and I want to move all the 9 swf with one button and 1 click up by 50 pixels. The real problem that I don't know how to group these objects ( I've to use AS , and swf files).

Thanks,

YvorL
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • IceCold
  • Guru
  • Guru
  • User avatar
  • Posts: 1254
  • Loc: Ro

Post 3+ Months Ago

place all of them in the same movie clip, then jut set the movie clip _y upper with 50 pixels.
i.e.:
Code: [ Select ]
this.createEmptyMovieClip("mcHolder", 0);
for (i=0; i<9; i++)
{
   crtSwf = mcHolder.createEmptyMovieClip("swfHolder"+i, i);
   crtSwf.loadMovie("somePath");
}
btnUp.onPress = function()
{
  mcHolder._y -= 50;
}
stop();
  1. this.createEmptyMovieClip("mcHolder", 0);
  2. for (i=0; i<9; i++)
  3. {
  4.    crtSwf = mcHolder.createEmptyMovieClip("swfHolder"+i, i);
  5.    crtSwf.loadMovie("somePath");
  6. }
  7. btnUp.onPress = function()
  8. {
  9.   mcHolder._y -= 50;
  10. }
  11. stop();

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 11 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
 
cron
 

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