Can't seem to get the examples to work

Legacy support with Phidget21
bcraig77
Phidgetsian
Posts: 6
Joined: Fri Mar 09, 2012 4:41 pm
Contact:

Can't seem to get the examples to work

Postby bcraig77 » Fri Mar 09, 2012 4:52 pm

I downloaded the lastes Phidgets21 installer file for my Mac and I am trying to run the RFID-full.fla and PhidgetRFIDExample.fla examples but they are giving me the following error:

[ Phidget Error Event: Error #2031: Socket Error. URL: localhost ]
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: file:////Volumes/Macintosh%20HD/Users/brandon/Flash/RFID%2Dfull.swf cannot load data from localhost:5001.
at com.phidgets::PhidgetSocket()
at com.phidgets::Phidget/open()
at RFIDExample/frame1()

I have added everything in the Adobe Flash Player Settings Manager and I have made sure the web service was started but its still giving me this error.

Please help.

Thanks!

User avatar
Patrick
Lead Developer
Posts: 3078
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Can't seem to get the examples to work

Postby Patrick » Mon Mar 12, 2012 8:56 am

Have you read the security section on the getting started? Try running the examples in Debug mode.

-Patrick

bcraig77
Phidgetsian
Posts: 6
Joined: Fri Mar 09, 2012 4:41 pm
Contact:

Re: Can't seem to get the examples to work

Postby bcraig77 » Mon Mar 12, 2012 10:35 am

Hi Patrick,

Yes, I read the security section and followed the instructions on adding each file and even the folder but I still cannot get it to work. I did try running the files in debug mode too. Any chance it is because I am working on a Mac? I have tried everything that people posted on the forums but I cannot get it to work. I know the RFID scanner is connected and I can toggle on and off the light from double clicking the divice in system preferences.

The port says 5001 under web service is this something I need to change? I am on a mac and I noticed when I move the usb to another usb port it doesnt changes.

Thanks!
Last edited by bcraig77 on Mon Mar 12, 2012 11:22 am, edited 1 time in total.

bcraig77
Phidgetsian
Posts: 6
Joined: Fri Mar 09, 2012 4:41 pm
Contact:

Re: Can't seem to get the examples to work

Postby bcraig77 » Mon Mar 12, 2012 10:36 am

Also, this is what I see under my USB device tree:

PhidgetRFID:

Product ID: 0x0031
Vendor ID: 0x06c2
Version: 2.06
Serial Number: 105071
Speed: Up to 1.5 Mb/sec
Manufacturer: Phidgets Inc.
Location ID: 0x04300000 / 4
Current Available (mA): 500
Current Required (mA): 100

Not sure if this helps.

mphi
Phidgetly
Posts: 39
Joined: Tue Nov 16, 2010 4:27 pm
Contact:

Re: Can't seem to get the examples to work

Postby mphi » Tue Mar 13, 2012 9:19 am

Instead of running the application via (Debug | Debug Movie), does it help to run it in (Control | Test Scene) or (Control | Test Movie)?

bcraig77
Phidgetsian
Posts: 6
Joined: Fri Mar 09, 2012 4:41 pm
Contact:

Re: Can't seem to get the examples to work

Postby bcraig77 » Tue Mar 13, 2012 10:32 am

No, I still get the same thing. I am using CS5.5 but I've also tested in CS3 without any luck.

mphi
Phidgetly
Posts: 39
Joined: Tue Nov 16, 2010 4:27 pm
Contact:

Re: Can't seem to get the examples to work

Postby mphi » Thu Mar 15, 2012 11:31 am

I am not sure why it is not working for you.

When I open up the .fla file in Flash Professional and compile it, I add the .swf to the Flash Global Security Settings as shown in the attachment
Attachments
Flash_Global_Security_Settings_3.png
Flash_Global_Security_Settings_3.png (19.47 KiB) Viewed 9518 times

bcraig77
Phidgetsian
Posts: 6
Joined: Fri Mar 09, 2012 4:41 pm
Contact:

Re: Can't seem to get the examples to work

Postby bcraig77 » Fri Apr 27, 2012 10:52 am

I followed the instructions and added the location to the file but still I am getting an error. I attached a screen shot of the Flash Player Settings and the actual error.
Attachments
Screen shot 2012-04-27 at 12.47.45 PM.png
Screen shot 2012-04-27 at 12.47.45 PM.png (27.97 KiB) Viewed 7791 times
Screen shot 2012-04-27 at 12.47.32 PM.png
Screen shot 2012-04-27 at 12.47.32 PM.png (44.21 KiB) Viewed 9441 times

uphon
Fresh meat
Posts: 1
Joined: Fri Jul 27, 2012 10:33 am
Contact:

Re: Can't seem to get the examples to work

Postby uphon » Fri Jul 27, 2012 10:37 am

if i remember it right, i needed to manually type "localhost" behind ServerID under the "Web Service" Tab.. maybe that helps:
Bildschirmfoto 2012-07-27 um 18.32.42.png
Bildschirmfoto 2012-07-27 um 18.32.42.png (42.67 KiB) Viewed 7791 times

thity
Fresh meat
Posts: 4
Joined: Fri Jan 15, 2016 11:18 am
Contact:

Re: Can't seem to get the examples to work

Postby thity » Sat Jan 16, 2016 5:30 am

Hello

Did you succeed ?
I'v got the same Issue. I tried every thing I found in this forum but the issue is still there.
Is it because I'm on Mac ?
If you succeed can you tell me how.

thanks

Thierry


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

Who is online

Users browsing this forum: No registered users and 2 guests