Topic: Problem with clicks
Hi I made a widget http://www.chumby.com/guide/widget/Doggie%20Cam
I am completely new to Flash. I started with the ChumbySpy template but added a feature that tilts/pans the webcam based on clicks at the edge (within 40px) of the video.
My clicks work to move the camera when I run my swf locally or via Chumby's XML movie path http://movies.chumby.com/xmlmovie/FFC6C … 1B24F07EF4 or on my own website http://www.chrisandannette.com/cna/CnAdoggieCamM.html
(The camera is not real fast, so click an edge once and be patient for a few seconds)
My clicks also work right after I upload the SWF when the widget is displayed to me on the "upload a widget" page.
However, when I browse Chumby's website to my widget, then the clicks do not work at all, ever!! They also do not work on my Chumby.
Below is what I have for the clicks. I can see that my "move the camera" URL is not called when the clicks are not working, so it's not a problem of communication with the webcam.
Can anybody advise what I am doing regarding the clicks that is Flash-working but not Chumby-working (where I intended that an edge touch would tilt/pan the camera)?
Thanks!
var mouseListener:Object = new Object();
mouseListener.onMouseDown = function() {
trace ( "x: " + _xmouse + " y: " + _ymouse );
var url = "http://www.chrisandannette.com/doggieca … rl.cgi?mv=";
if (_root._ymouse < 40) {
url = url + "U";
}
if (_root._ymouse > 200) {
url = url + "D";
}
if (_root._xmouse < 40)
{
url = url + "L";
}
if (_root._xmouse > 280) {
url = url + "R";
}
url = url + ",5";
getURL(url);
}
Mouse.addListener(mouseListener);
Edit: Publish settings are Flash Lite 3.0, Action Script 2.0