AS3 - Extended resolumeCom package
Posted: Tue Apr 01, 2014 19:56
Hello folks,
As my inaugural post on this forum, I'd like to give you all a gift - at least as long as the folks at Resolume don't mind
. I've been developing an extended version of the resolumeCom package that handles interop between Resolume and Flash. A list of my changes/additions:
MAIN
Happy coding!
As my inaugural post on this forum, I'd like to give you all a gift - at least as long as the folks at Resolume don't mind

MAIN
- Fully backwards-compatible (afaik - let me know if you run into any issues)
- Minor behind-the-scenes performance enhancements
- Availability of ExternalInterface is checked before callbacks are added (no more errors when debugging!)
- Excessive commenting on Resolume class
- Resolume class can enforce unique parameter names (i.e. will throw an error if two parameters with the same name are added) which leads to the biggie...
- Parameter values can be called as properties from the Resolume class when enforcing unique names (i.e. if you have a parameter named 'bass' added to a Resolume instance called 'resolume', then resolume.bass will retrieve the current value of the parameter named 'bass')
- Resolume.getParameterIndex: gets the index of a parameter specified by name when enforcing unique names
- Resolume.getParameterNameAt: gets the name of a parameter specified by index
- Resolume.getParameterType: gets the type code of a parameter specified by name when enforcing unique names
- Resolume.getParameterTypeAt: gets the type code of a parameter specified by index
- Resolume.addParameterListenerTo: adds a parameter listener to a parameter specified by name when enforcing unique names
- Resolume.addParameterListenerAt: adds a parameter listener to a parameter specified by index
- Several functions have been changed to check variable types at run-time. It's unlikely that this will cause you any problems, but is something to be aware of
- All the Parameter subclasses' functions are now inherited from the Parameter class (thanks to run-time typing)
- The p_source property of the ChangeEvent class is now a Parameter, not an Object
Happy coding!