User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Improvements

  1. #1
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Improvements

    Hey there, while developing extensions I've found quite a lot features that are not available in the Flash runtime, but can easily be implemented.

    Ink effects
    For Add and Subtract, you can use DisplayObject.blendMode.
    Set it to BlendMode.ADD or .SUBTRACT.
    For Invert, use DisplayObject.transform.colorTransform.
    There is an offset and multiplier member for each color channel (e.g. redMultiplier, greenOffset).
    So just set all multipliers to -1 and all offsets to 255.
    For Monochrome you could use a ColorMatrixFilter but it might be overkill.
    Not sure about the bitwise ones.

    Scaling SWF applets
    I really don't get this one.
    Just set stage.scaleMode to e.g. StageScaleMode.EXACT_FIT, and you can resize your SWF in HTML and it will automatically scale.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Improvements

    Good stuff Looki I'm sure Francois will appreciate this. I know people have been asking about the scaling problem for a while now.

  3. #3
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Improvements

    Also, there's stage.displayState for fullscreen.
    Combined with stage.scaleMode, I don't see why he couldn't have fullscreen.
    There's a limitation though, first of all you have to allowFullSCreen="true" in the embed parameters, and you can only call set displayState in certain functions... e.g. in a callback from a mouse click.

  4. #4
    Forum Moderator Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Improvements

    My Character Images object takes advantage of all this stuff.

  5. #5
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    2,996
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    Re: Improvements

    Sounds good! Many users (including me) will be happy if these features get implemented. Thank you for sharing your findings Looki.

  6. #6
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Improvements

    Why is the transparent option for objects like Active disabled?
    I'm porting my Surface object and it could benefit from it quite a lot. You can easily implement opaque display objects:
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/DisplayObject.html#opaqueBackground

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Improvements

    It says in the doc you pointed at: A transparent bitmap contains alpha channel data and is drawn transparently.
    This is exactly our case, we draw images as active objects.

  8. #8
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Improvements

    Hey Francois, check this out!

    http://hyperspatial.com/flash-development/actionscript/how-to-set-textfield-alpha/

  9. #9
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Improvements

    Great! Thank you...

  10. #10
    Clicker Fusion 2.5 DeveloperSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,739
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Improvements

    Finally.

    I have found a way to use UIComponents. Too bad the runtime has been out for so long now, changing the objects would be critical.

    After a lot of testing I figured out what the root in an MXML application is: ho.getApplication().stage.getChildByName("root1").
    It's a SystemManager. Cast it and then you can use addChild.
    However, it seems like a constant child of the stage or something, because when you add a control, it will be invisible - because rhApp.mainSprite is in front of that.
    To fix that, I changed line 403 in CRunApp.as from:

    stage.addChild(mainSprite);

    to

    (stage.getChildByName("root1") as SystemManager).addChild(mainSprite);

    Voilà! You can use UIComponents.



    I might make some dedicated objects for this. I think it would be very nice because they are very customizable and there are tons of different ones.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Phizix Chipmunk - a few improvements
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 21st February 2008, 08:58 AM
  2. Ideas and improvements?
    By Anders in forum Extension Developers Lobby
    Replies: 4
    Last Post: 4th October 2007, 03:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •