Git Product home page Git Product logo

Comments (7)

karfau avatar karfau commented on August 18, 2024

I hav already been in the need for this, that is why i created de.karfau.signals.PropertyRelaySignal
This works (none of my tests are failing) with the latest version of robert penners as3-signals.
U don't need any other class from the project if u have sources or swc frm ropertpenner/as3-signals.

hope it help, feedback welcome, karfau

from as3-signals.

bheylin avatar bheylin commented on August 18, 2024

Hey Karfau I have also made my own class to handle this, which is the more generic case than your PropertyRelaySignal.

NativeMappedSignal

But i think it should be part of the actual signals project. The basic difference between the PropertyRelaySignal and the NativeMappedSignal is that former specifically deals with the properties of an Event, while the latter will forward anything you give it, either an object or the result of a function.

from as3-signals.

karfau avatar karfau commented on August 18, 2024

yes, it is somehow more generic, but the same effect can be achived with PropertyRelaySignal. If u look at the code/docs it can also have a function (to be more precise a function is needed if any value should be dispatched) that returns (one ore multiple) values typed like valueclasses. The only "big" difference I see is that this function can not be attached in the constructor.
This could be changed, as could the package.

I would be glad if we find a a soloution to the problem that can be used by both of us (and other people), wich might be more likely to be included by robert. As I think the use for such Signal is there an it would be cool to have a "default implementation". I also think, otherwise this discussion might repeat. :)

Maybe this and possible implementation details could be discussed with more participants @ googlegroups.

from as3-signals.

bheylin avatar bheylin commented on August 18, 2024

Ah yes I see the setPropertyFilterFunction now. You've put more effort into your classes then I have into mine :) Yep I'm good with a possible merge of the concepts, my classes is there for reference. Would you like to start the dicussion on googlegroups?

from as3-signals.

karfau avatar karfau commented on August 18, 2024

yeah, i could do it, but i will not have time for a good initial post before the weekend.
So its either somebody else starting the thread, or waiting for more responses until weekend. ;)

from as3-signals.

robertpenner avatar robertpenner commented on August 18, 2024

karfau and Preacher,
Thanks for the discussion. The fact that both of you came up with solutions validates your use case. If you two could work out a solution that you both like, with unit tests and AsDocs, I'd be favorable to adding it to the core (not an absolute promise, but 90%). =)
Robert

from as3-signals.

bheylin avatar bheylin commented on August 18, 2024

The code for this has been merged into the master. The class can be found at:

org.osflash.signals.natives.NativeMappedSignal

from as3-signals.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.