Flash 8: Help with scale9Grid

Thursday, September 22nd, 2005

I 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.

AddThis Feed Button

This is some text prior to the author information. You can change this text from the admin section of WP-Gravatar  I'm living in Bratislava, Slovakia. I'm Senior Flex, AIR Developer for my own company Flexets. Read more from this author


[Post to Twitter] Tweet This Post

tagged under:

ABOUT THIS AUTHOR

I'm living in Bratislava, Slovakia. I'm Senior Flex, AIR Developer for my own company Flexets.

Get a Trackback link

11 Comments


  1. 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?


  2. steve w
    Visit Site
    September 22nd, 2005

    Forgive me if this sounds basic but are you sure you’re exporting as Flash 8?


  3. 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…


  4. 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 ;)


  5. betaruce
    Visit Site
    September 23rd, 2005

    bitmap should works fine according to help doc.


  6. 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.


  7. 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.


  8. 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.


  9. 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.


  10. 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 :)


  11. 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

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="">

This site is using OpenAvatar based on
Images is enhanced with WordPress Lightbox JS by Zeo
Clicky Web Analytics