PDA

View Full Version : Simple background repeat (tile)


KasperSkov
11-30-2010, 08:37 AM
Hi.
I need an image to be repeated on my canvas, just as if it was css background-repeat.

I've found alot of code on google, but all of them are 20+ lines code. Cant it be made more simple?

Thanks in advance
-Kasper

the binary
11-30-2010, 09:51 AM
some things need some lines of code..
but if you wrap it up in a class you'll end up with just one single line.
so where is the problem.. ?

KasperSkov
11-30-2010, 10:26 AM
Yeah, sure I could do that.
I was just wondering if it could be done more simple thats all.

Actually, I asked the wrong the question. I want to fill a sprite or a movieclip with a repeating picture. Not the canvas/stage.

Any suggestions?