thegoodbus
01-06-2011, 02:48 PM
I have a project where, onClick, I would like to read the pan and tilt of a hotspot and change the pan and tilt of the camera to those values. How do I accomplish this?
I know that XML cannot declare and store variables, and I have investigated the plugins to see if any might help me out. Tommy's panologic and commander plugins interested me for a while, but I could not figure out a creative way to get around the structure of those plugins (which is when x, do y, instead of what I need - what is x, now make y=x).
The probable solution is a plugin that reads the value of something in FPP (the pan and tilt of a hotspot in this case) and then instructs FPP to change something different to that value (in this case the pan and tilt of the camera). Has anyone done this before?
I read a lot on the forums to see what it would take for me to figure out how to write this in Flash (I have access to Flash CS4), but I do not look forward to spending valuable days right now learning this technique (I do not yet know AS3).
Is there a technique in XML or an existing plugin that accomplishes this feature? If not, could someone point me to some helpful AS3 code that will help me build a plugin?
I really appreciate all that you do to help on this forum. I have waited a while before posting this question to be sure I really couldn't find the answer elsewhere or create a workaround of my own. Thank you very much.
I know that XML cannot declare and store variables, and I have investigated the plugins to see if any might help me out. Tommy's panologic and commander plugins interested me for a while, but I could not figure out a creative way to get around the structure of those plugins (which is when x, do y, instead of what I need - what is x, now make y=x).
The probable solution is a plugin that reads the value of something in FPP (the pan and tilt of a hotspot in this case) and then instructs FPP to change something different to that value (in this case the pan and tilt of the camera). Has anyone done this before?
I read a lot on the forums to see what it would take for me to figure out how to write this in Flash (I have access to Flash CS4), but I do not look forward to spending valuable days right now learning this technique (I do not yet know AS3).
Is there a technique in XML or an existing plugin that accomplishes this feature? If not, could someone point me to some helpful AS3 code that will help me build a plugin?
I really appreciate all that you do to help on this forum. I have waited a while before posting this question to be sure I really couldn't find the answer elsewhere or create a workaround of my own. Thank you very much.