Blog

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

  • Quick JSFL: Component Code Generation

    When creating new forms, the repitition of defining the form buttons and then attaching them in my init function gets old, quick. Until I update my Class Creator, here’s the next best thing using JSFL. You type in your component’s name (ex: cancel_pb), and click OK, then type in your class name (ex: mx.controls.Button), type in your class’s symbol name (ex: Button), and it’ll put the code you need in the Output window. If you don’t hit cancel (or leave a field blank), it’ll keep going. Save as a JSFL file, preferably in your Commands folder so you can re-use it.

    Read on for code…