quasi random (kaolinfire) wrote,
quasi random

a breakthrough in understanding

FINALLY know how to generate assets for flash properly. Or at least one clean sort of properly. Size of artboard doesn't matter. It's all where your asset is compared to the artboard. select-all (apple-a or ctrl-a). Notice the little 9 dots in the toolbar. Select the middle if it's not. Then type 0 in for X and 0 in for Y. Your asset will have its registration properly in the center!

Two caveats:
1) any items that are completely off the artboard won't actually be rendered (might not be in the svg/fxg, didn't check). Simple solution: group it all together.
2) the "height" value of your object in flash will no longer be correct. it'll report half its height (and half its width) because the height and width of the asset "outside" of the artboard (or "viewport" in the svg/fxg) isn't counted. So be sure to compensate.

The other option being to register your object top left at 0,0... but that gets annoying in code, imo.

Would love to hear other suggestions, now that I finally had this breakthrough. ;)
Tags: as3, flash games, fxg, illustrator, svg

  • feedback loops

    Ah, feedback loops. I was kind of out of sorts, yesterday, and for some reason had a lot of diet coke (to try to feel better, though I "knew" it…

  • What would I say?

    What would I say, if I were here? It's 2014, almost 2015—though on and off this year, I've been sure it was 2015. Something about that number. Next…

  • a list of games....

    A friend recently asked for a list of all the games I have available. And I'd made most of this list up a week ago, for someone else, and figured,…

  • Post a new comment


    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.