Flash Background
- Started
- Last post
- 6 Responses
- phirschybar
I wanted to make a pattern BG in Flash where there would be a grey BG and then like 300 diagonal white lines (basically stripes turned 45 degrees). I tried drawing the lines by copying and pasting but it slowed down my movie when I played it. Then, I tried doing it dynamically with duplicateMovieClip and it still slowed down the movie.
Do I need to use a raster graphic as the BG to not have this happen? Or is there a way to use hundreds of vector lines without slowing down Flash?
- caseyc0
The easiest/most efficient way to do it is to create a small tile of your pattern as a bitmap. Paste or import that into flash and break it apart then use the white arrow to select the endpoints of the rectangle and make it really wide and really high. You will see that the bitmap is automatically tiled to fit the rectangle.
Good luck.
- phirschybar0
why would it automatically tile?
- phirschybar0
shouldnt have posted on saturday night - *bump
- AMFA0
because it does a bitmap fill on the object...
- heavyt0
drawLine property...
just make a loop that sets the begin and end points, incrimenting your way down the page.TR1
- phirschybar0
yeah, tried the bitmap fill... it works ok but doesn;t keep my bitmap at 100%. I can transform the fill but havent been able to get it back to 100%... is there a way to do this?