Hello. I’m xezton and yes this is my first post. I’ve been using Flash for a while and I’ve been able to duplicate some things on websites that interest me. There is one thing, though, that I’ve not been able to figure out.
When you dynamically resize some container movie clip to fit the contents (be it a picture or external swf loaded into an empty movie clip, etc) the container is stretched. If you use hairline, however, you don’t noticed a stretch like this.
Well what if you don’t want to use hairline? Check this out:
Notice how his borders are pretty thick. How is he doing this?
I may have just answered my own question but tell me if there is a better way than this:
He has a movie clip that has a white square graphic with curved corners, and then also a movie clip with a gray square with no borders. The inner gray clip scales to the same size as the content to be loaded, and is the same color as the background, so it looks as if the outer borders are thick, when in reality they are just the edges of the container movie clip coming out from underneath.
You think that’s how he did it?
And yes, I’ve seen the post about resizing with 12,000 + replies. It’s very cool… but it uses the hairline idea.
Let me know what you think.