InterfaceKit: ouput problem with Interfacekit-full.fla

Legacy support with Phidget21
Fresh meat
Posts: 1
Joined: Mon Nov 04, 2013 11:49 pm

InterfaceKit: ouput problem with Interfacekit-full.fla

Postby blars62 » Tue Nov 05, 2013 12:03 am

I have a perplexing problem using Phidget Interfacekit 0/16/16. I'm using the unmodified sample FLA file, "Interfacekit-full.fla" in a Windows 7 environment (with Flash CS 5.5). The problem is, whenever I try to output to an LED on pin 15, the LED on pin 1 lights up instead. In fact, all the output pins from 10-15 output on 1 instead.

Whats odd is that the program always fails when I use the sample FLA file to set output 15, but it always succeeds when I use the Phidget Control Panel. This makes me wonder if the sample FLA file, which I pulled off the Phidget site yesterday isn't current. (The date on "Interfacekit-full.fla" is 10/7/2008).

Many thanks to anyone who can help point me toward a solution. Thanks!


User avatar
Site Admin
Posts: 715
Joined: Fri Oct 28, 2011 12:17 pm

Re: InterfaceKit: ouput problem with Interfacekit-full.fla

Postby mparadis » Wed Nov 06, 2013 10:21 am

I looked at the source code for the example you mentioned, and it appears as though this is a code defect. I've fixed it and it'll be included in the next update. In the meantime, you can repair yours by changing a few lines of code:

In function updateOutputs, change

Code: Select all

i= uint(,13));


Code: Select all

i= uint(,14));

In function create_controls, change

Code: Select all = "outputchkbox" + i;


Code: Select all

{ = "outputchkbox0" + i;
{ = "outputchkbox" + i;

Thank you for bringing this to our attention.

Return to “ActionScript 3.0 - Flash CS3 / Flex / AIR”

Who is online

Users browsing this forum: No registered users and 2 guests