Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Flash Basic

Status
Not open for further replies.

Muddmuse

Programmer
Jul 31, 2001
85
US
I open a new flash file and resize it to the dimensions of a series of .bmp files that I'm going to import. When I import the files they are not centered on the stage - there seems to be about a 40px pad on the left and top. How can I move the images in all the frames to remove this space? I've tried right clicking on the timeline and selectiing "select all" but it only moves 1 frame.
 
Sure you're not talking about margins in your .html, rather than in the Flash movie itself?

Add the following "margin stuff" to your existing <body> tag...

Code:
<BODY bgcolor="#999999" MARGINHEIGHT="0" MARGINWIDTH="0" TOPMARGIN="0" 
LEFTMARGIN="0" RIGHTMARGIN="0" BOTTOMMARGIN="0" SCROLL="NO">

No linebreaks in the above, and SCROLL="NO" if you want to eliminate the scrollbars on top of the margins...

Regards. Affiliate Program - Web Hosting - Web Design
After 25,000 posts, banned on FK, but proud not to have bowed down to them!
 
No, I'm talking about the flash file itself. I'll be embedding the file in an existing web page with dimensions of 480x360 (the dimensions of a series of .bmp files I attempt to import into a flash file).

The first thing I do is open a new flash file, resize the screen to 480x360, then import the .bmp files. When the import is complete the files are not justified top left. Instead there is a margin and I can't figure out how to get rid of it except for moving the .bmp on each frame (way too time consuming). This margin is also viewable when I publish the flash file. Any ideas?
 
You have to place them all at x:0, y:0 in Flash.

If you want to make it easy on yourself use jpg's (not progressive) instead of bmp's. Then you can load each image at run time at the (0,0) coordinate.

Flash 8 will support bmp's at runtime, but until then if you want to use the bmp's you will have to manually move each one.

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top