Flash 8: Help with scale9Grid
Thursday, September 22nd, 2005I need help with new Flash 8 feature scale9Grid. I think, that this should be easy to do, but it seems not. I’ve tried this according help, it didn’t work. So I copy code from Sephiroth tutorial => it didn’t work. I know it must be done to movieClip not bitmap. I’ve tried both possibilities in library and actionscript way => no result
I do not know, what wrong, please help
Here is example:
and source code.
Thanks.
tagged under:





11 Comments
Ryan Foster
• Visit Site
September 22nd, 2005
“all text and child movie clips scale normally, regardless of which regions of the scale9 grid they are located in.” (-from the Sephiroth tutorial)
perhaps same for bitmap?
I am assuming that if you remove the bitmap and just run the scale9 on a vector that it works fine?
steve w
• Visit Site
September 22nd, 2005
Forgive me if this sounds basic but are you sure you’re exporting as Flash 8?
Administrator
• Visit Site
September 22nd, 2005
i’ve tried for vectors => didnt work
first after it didn’t work I’ve checked export settings, it’s 8
You can download FLA and see…
Flavio
• Visit Site
September 22nd, 2005
Like Ryan said, if you remove the bitmap and just run the scale9 on a vector, it will work fine
betaruce
• Visit Site
September 23rd, 2005
bitmap should works fine according to help doc.
Administrator
• Visit Site
September 23rd, 2005
i will try it just vectors, but i saw examples with bitmap which works fine.
When i’ve tried last time with vector, i have in timeline this bitmap in Guide layer (to not display it), maybe this was problem why scale9 was nt working.
Tink
• Visit Site
September 23rd, 2005
works fine for me as a bitmap. send me an email and i’ll send u an example file.
If the bitmap is sitting inside the defined Rectangle it will scale as expected using scale9.
Tink
• Visit Site
September 23rd, 2005
lol sorry meant to say as a vector.
so the low down is, it works fine with vectors, but if you use a bitmap it must be positioned in one of the 9 cells created by the scale9Grid for it to scale as you would expect.
michael
• Visit Site
September 23rd, 2005
i made an example:
http://www.flashforum.de/forum/showthread.php?t=178362
its german, but the .fla speaks for itself.
valtersboze
• Visit Site
January 18th, 2006
You have to slice the image in any photo editor and then import slices to flash and make the image back together. then place scale9Grid properties on that movieclip, make sure every piece is in its own grid place.. i just spent more than 2 hours on this, and another big mistake, make sure the scale9grid rectangle doesnt exceed boundaries of mc, otherwise it will not work!(another half an hour on this).. hope this helps
CajunFlash
• Visit Site
April 15th, 2006
Tink, I tried placing movieclips with the cacheAsBitmap set to true in each of the 9 scaling regions, but the scaling didn’t work properly.
Live Preview
Leave a comment