Efflex

Efflex – Designer Effects for Flex

18 Responses to “Efflex”

  1. Hey Tink,
    Everyone here loves you blog and we were wondering if you’d like to crosslink with ours: http://labs.byhook.com/

    Thanks!
    Michael

  2. Prika says:

    wei tink,

    how are you?
    I have some doubts about the efflex and their implementation through actionscript 3.0.
    Can you help me, please..?

    Thanks a lot for everything.

    TinkWorld.addChild(prika)

  3. Prika says:

    I would like to know how can I make efflex’s transitions dynamically.

    I am using a database to store the effects and properties, but I think I can’t use variables in effect’s creation:

    For example:

    (Static)
    var eff1:org.efflex.mx.viewStackEffects.Fade = new org.efflex.mx.viewStackEffects.Fade();

    (Dynamic)

    var effect:String = “org.efflex.mx.viewStackEffects.Fade”;
    var eff1:effect = new effect();

    Any ideia?

    Thanks

  4. Tink says:

    I Prika this is possible

    You would need to make sure any classes that you want to use are compiled into your SWF. If all the classes required are not compiled into the SWF, the following will fail…

    var effectClass:Class = getDefinitionByName( org.efflex.mx.viewStackEffects.Fade ) as Class;
    var effect:IEffect = IEffect( new effectClass( param0, param1 ) );

    now you can assign that effect.

  5. Prika says:

    Humm.. sorry for the inconvenience, but I don’t understand how I create in runtime.

    ——————————————
    static is working

    var effect:org.efflex.mx.viewStackEffects.Fade = new org.efflex.mx.viewStackEffects.Fade();

    effect.alphato = 0;
    and effect is a type=org.efflex.mx.viewStackEffects.Fade()

    —————————————————————–
    Dynamic is not working

    var eff:String = “org.efflex.mx.viewStackEffects.Fade”;
    var effectClass:Class = getDefinitionByName(eff) as Class;
    var effect:IEffect = IEffect( new effectClass( param0, param1 ) );

    The variable effect is not equal to “org.efflex.mx.viewStackEffects.Fade()”.

    How can I create?

  6. Tink says:

    Do you get an error?

  7. Prika says:

    I don’t get any error, but I can’t acess the property “alphaTo” (por example) by the class name. Like this:

    effect.alphato = 0;

    var eff:String = “org.efflex.mx.viewStackEffects.Fade”;
    var effectClass:Class = getDefinitionByName(eff) as Class;
    var effect:IEffect = IEffect( new effectClass( param0, param1 ) );

    i would like to make that effect:org.efflex.mx.viewStackEffects.Fade but the effect is IEffect and I don’t know how IEffect works.

  8. Tink says:

    You won’t be able to access specific properties as the instance is typed as IEffect. You could type it as a specific effect, but then it wouldn’t be dynamic.

    You should be to set the properties as so

    effect[ "alphaTo" ] = 0;

    This would throw an error if the class didn’t have the property.

    This means that if your switching effects you going to need some kind of switch statement to set the properties (as each effect has diff props), and therefore if you going to have a switch for each diff effect, you might as well just use that switch to create the effect itself instead of using getDefinitionByName.

  9. Ward says:

    Hi, Tink

    Do you have plan to release CubeAway3DTile? I want to use it in my apps but cannot find where it is. Waiting for your response. Thanks.

  10. jiajin says:

    Do you have plan to release CubeAway3DTile? I want to use it in my apps but cannot find where it is. Waiting for your response. Thanks.

    I cannot find anywhere it is . I crazy like it.

    • Tink says:

      Efflex is on a bit of a back burner at the moment due to other projects.

      • Brian R. says:

        Hi Tink,

        Love your work! I’m wondering if efflex has made it’s way to the shelves or if it’s still on a back burner? I would also love to see the release of CubeAway3DTile.. :-)

  11. Hi Tink, Could it be possible if a viewstack + efflex inside a viewstack + efflex results in a big memory hog? Of maybe multiple viewstack + efflex instances together?

    I cannot find the reason inside my project to freeze when efflex is used. (freeze = after a few changes inside a viewstack and multiple instances of viewstacks (+ efflex) the main viewstack gets stuck (bitmap won’t go away).

    Besides that Efflex is awesome!

    • Tink says:

      Hey Martjn

      I would suggest running it in the profiler. You could also put an example online with source enabled for me to look at, with a short description of how to recreate the freeze, that said whether I’ll ever get to spend any time on it I’m not sure. It sounds like the effect isn’t fully completing and therefore destroying the bitmap, and making the container visible again.

      I don’t really support these effects anymore as I don’t advise the use of ViewStack’s instead replacing them with my Spark navigators.

      • Unfortunately I cannot use Spark, and a view source of the project is also not really possible :( . It looks like multiple instances of the ViewStackTweenEffect are messing each other. I’m currently working to make a demo which illustrates it. But that takes time. It’ also hard to debug and profile. What I’ve discovered right now is that “finishEffect” is never called which to me should be called

        • Tink says:

          Yep, we are thinking along the same lines. If you get a demo up with view source enabled I’ll try and take a look.

          • I think I got the bugger .. I had on one of the viewstacks ‘suspendBackgroundProcessing’ set to true … Well that flag really works :p. Don’t know if the demo is coming now, but I will decide that tomorrow! Thanks for the heads up! Really appreciate it!

Leave a Reply