25 Jun 2009 @ 3:49 PM 

fcs4[AS2, Flash CS4 Professional]

This might sound silly, but it is extremely useful. I just did a job for a client that needed to rotate their banners on a site that they had done for them 4 years ago. The site was hard coded to:

MovieA_______________________________________________

loadMovie(”flash/MovieB.swf”, intro_mc);

intro_mc is a simple, 1 frame movie in MovieA’s library that holds a Rectangle shape the size of the banner area. You use this rectangle to precisely position the asset in Movie A. intro_mc is placed as soon as it is needed, sometimes before the frame here that loads it.

MovieB_______________________________________________

This movie has the job of loading banners and displaying them. This is a great approach for lots of reasons, but for us the most important is that we don’t have to hard-code our banner rotation worker, MovieB, into MovieA or any other caller.

MovieB loads it’s movies from an XML file called banners.xml, which looks like this:

More »

Change Theme...
  • Users » 15
  • Posts/Pages » 132
  • Comments » 53
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight

News

  • No categories

Photo

  • No categories

Sales Engineering

  • No categories