positioning/scaling embedded swf

  • millennium3
  • Born
  • Born
  • User avatar
  • Posts: 1
  • Loc: Atlanta

Post 3+ Months Ago

Hi,
Seems I've done this before...but can't get to work in vers 8...

I need to grab some variable images from weather.com - 10 weather jpgs (440x297)
and then play each in movie I create (giving weather motion impression)
No problem so far (we have weather.com account, etc. etc.)

Then I need to embed this movie in a container movie ( 1280x768)...what I can't seem to figure out is:
- placing the images movie in the container movie where I want it
- scaling the image movie up to 1015x685

(I'm using Create MovieClip / content_box method....but I've also tried others)
Thanks for any help
GCrutchfield
  • 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

in frame 2:
Code: [ Select ]
var arrImage:Array = new Array("image0.jpg", image1.jpg", ...., "image9.jpg"); // here goes the names of the images
this.createEmptyMovieClip("containterMC", 0);
for (i=0; i<10; i++)
{
  crtMC = containerMC.createEmptyMovieClip("img"+i, i);
  crtMC.loadMovie(arrImage[i]);
}
onEnterFrame = function()
{
   loaded = true;
   for (i=0; i<10;i++)
  {
     crtMC = containerMC["img"+i];
     if (crtMC._width == 0)
     {
       loaded = false; break;
     }
  }
   if (loaded)
   {
     delete onEnterFrame;
     gotoAndPlay(3);
   }
}
  1. var arrImage:Array = new Array("image0.jpg", image1.jpg", ...., "image9.jpg"); // here goes the names of the images
  2. this.createEmptyMovieClip("containterMC", 0);
  3. for (i=0; i<10; i++)
  4. {
  5.   crtMC = containerMC.createEmptyMovieClip("img"+i, i);
  6.   crtMC.loadMovie(arrImage[i]);
  7. }
  8. onEnterFrame = function()
  9. {
  10.    loaded = true;
  11.    for (i=0; i<10;i++)
  12.   {
  13.      crtMC = containerMC["img"+i];
  14.      if (crtMC._width == 0)
  15.      {
  16.        loaded = false; break;
  17.      }
  18.   }
  19.    if (loaded)
  20.    {
  21.      delete onEnterFrame;
  22.      gotoAndPlay(3);
  23.    }
  24. }

Post Information

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