Blog

  • SWC’s & Shared Libraries in Flash Development

    One of my experience sharing notes, below, to my peeps on Flashn00bz. Although SWC’s have been around since November, I’ve only recently started to understand where Flash 8, or a big updated of Flash 7 needs to take us in terms of Shared Libraries and SWC’s. Shared Libraries, even if your only using 1 SWF in the end, enable unit testing of components, and prevent redundancy in assets. If I have a Button component, Shared Libraries of many tiers all reference the same asset vs. SWC’s which compile them internally, and therefore allowing multiple SWC’s to use the same button, but keep their own copy unecessarely. However, Shared Libraries are not as portable as SWC’s, more fragile, and less control on execution order in the case of mixing SWC’s with Shared Libraries as I experienced last week. Either a decoupling of assets in SWC’s needs to happen to ensure they are not being repeated, OR you’ll just have to plan really frikin’ well ahead of time. Additionally, Shared Libraries need, as I talk about below, to get the ability to dynamically change their Shared Asset URL at runtime. It’s amazing, as much as I love both of the above technologies, I can still see tons of room for improvement, in both the IDE and the Player itself.

    Anyway, read on…

  • SWC’s Within SWC’s Confirmed: It Works!

    Spent more time than I’ve wanted to today trying to get this to work, and even managed to drag Chafic in with me part of the time. It’s a delicate process, and you can easily screw the whole thing up. Suddenly, I feel good about myself as a human being, claiming that I can create Flash components. Damn straight. EAT IT FLASH, I WIN!!!

    “…so lemme get this straight. Your saying that in order for you to feel good about yourself in life, you just need to succeed in creating Flash components?”

    SHUT UP, I WIN CHING WONG FONG TONG>>>.jasfjklasjdf.!!!!

    :: whips out glock, aims towards celing :: *bang* *bang* *blam*

    Yeah, sucka!

  • Office Maker RIA

    Via Abdul Qabiz @ Flashlounge.

    I love Isometric stuff and this has level editor written all over it. This Flash RIA allows you to build a room, preview it with cost + room specific information, and then onto an assessment. Dig it.

    Office Maker

  • Flash MX 2004 Components only support 1 Shared Library Tier

    I don’t have time to see if other, custom made SWC’s suffer the same fate, but the gist of it is, if you create a component and use say the “Button” component in your component. You then export your Button component for runtime sharing, and point the URL to the SWF name your compiling too, and then copy the main component to another SWF, he’ll work. Your Button in there will be importing from the Shared SWF.

    …however, in publishing to both 6.0.65.0 and 7, while running in 7, once you add another tier, it doesn’t work. It has something to do with execution order, because if I manually drop the Button component on frame 1, and then the shared component who uses him on frame 2, the component will then work. This is not, however, how things are supposed to work. Because I can’t see behind the scenes of what initclip is doing, I’m not sure how to fix, but your supposed to just drop the component inside the component that needs it on a layer on frame 2. This isn’t working, however, so more study is warranted.

    Oddly, I do not have this problem when utilizing the Central components in this way.