FLASH BITMAP BACKGROUND ? HELP

  • Kwamey
  • Born
  • Born
  • No Avatar
  • Joined: Aug 04, 2006
  • Posts: 1
  • Loc: San Francisco
  • Status: Offline

Post August 4th, 2006, 6:31 pm

I'm trying to publish a Flash animation full window. I have a bitmap texture filled shape as a background, scaled to %100 of the stage. Does anyone knows how to scale the shape without touching the bitmap, means that the bitmap texture would be repeated with no scale, while the shape filled would autoscale to 100% of the window. Thanks
[/b]
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post August 4th, 2006, 6:31 pm

  • spyyder
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Aug 05, 2006
  • Posts: 8
  • Loc: United Kingdom
  • Status: Offline

Post August 5th, 2006, 3:56 am

I don't think this can be done. Sorry. For repeating you have to use duplicate & masking (to show only part of the bitmap) option - the hard way (although you probably knew how to do this anyway).

However... why dont u just set the background on the html file and have the flash blend in to it?
  • psynegy
  • Graduate
  • Graduate
  • No Avatar
  • Joined: May 14, 2005
  • Posts: 128
  • Loc: England
  • Status: Offline

Post August 6th, 2006, 8:16 am

Flash is not like HTML/CSS, a background will not repeat.
  • IceCold
  • Guru
  • Guru
  • User avatar
  • Joined: Nov 05, 2004
  • Posts: 1254
  • Loc: Ro
  • Status: Offline

Post August 8th, 2006, 6:55 am

u can do it programmaticaly:
step 1: place your bitmap texture filled shape in the library and export it for actionscript (right click on it-> linkage -> write an export name: "bgtexture" )
then, in first or second frame of the timeline, add this code:
Code: [ Select ]
this.createEmptyMovieClip("backgroundMC", 0);
iIndex = 0;
xTexture = 0;
yTexture = 0;
for (;;)
{
var crtTexture = backgroundMC.attachMovie("bgtexture" + iIndex, "bgtexture", iIndex);

crtTexture._x = xTexture;
crtTexture._y = yTexture;
xTexture += crtTexture._width;
if (xTexture >= Stage.width)
{
   yTexture += crtTexture._height;
   if (yTexture >= Stage.height)
   {
      break;
   }
}
iIndex ++;
}
  1. this.createEmptyMovieClip("backgroundMC", 0);
  2. iIndex = 0;
  3. xTexture = 0;
  4. yTexture = 0;
  5. for (;;)
  6. {
  7. var crtTexture = backgroundMC.attachMovie("bgtexture" + iIndex, "bgtexture", iIndex);
  8. crtTexture._x = xTexture;
  9. crtTexture._y = yTexture;
  10. xTexture += crtTexture._width;
  11. if (xTexture >= Stage.width)
  12. {
  13.    yTexture += crtTexture._height;
  14.    if (yTexture >= Stage.height)
  15.    {
  16.       break;
  17.    }
  18. }
  19. iIndex ++;
  20. }
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”

Post Information

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

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.