Flash not connecting to make board - ERROR #2010
Up to Flash
Hi, Cant get flash 8 or cs3 working with the board. I have downloaded and correctly installed both sets of components/class stuff. I have the new mc helper 2.2.0 and have also successfully upgraded the firmware on my board to the latest bin file available.
Then i sat down to have some fun using flash and sending commands to control stuff and i get this :
Attemping to launch and connect to Player using URL E:\Dev\make controller\MakeController-AS3-v1.0\examples\LEDchaser.swf
[SWF] E:\Dev\make controller\MakeController-AS3-v1.0\examples\LEDchaser.swf - 15871 bytes after decompression
SecurityError: Error #2010: Local-with-filesystem SWF files are not permitted to use sockets.
at flash.net::XMLSocket/connect()
at com.makingthings.makecontroller::McFlashConnect/connect()[C:\Program Files\Adobe\Adobe Flash CS3\en\Configuration\ActionScript 3.0\Classes\com\makingthings\makecontroller\McFlashConnect.as:321]
at LEDchaser_fla::MainTimeline/LEDchaser_fla::frame1()[LEDchaser_fla.MainTimeline::frame1:10]
Now this never used to when using the flosc server...but this new mc helper thing is driving me nuts. I have the board set up with dhcp and webserve, so i can see the board is working, and i can send commands successfully from mc helper. I can also open a web browser and view stats web page the board chucks out on its IP. So thats all groovy.
But flash is not working. I have used xml cross domain policys before...but this is just a template one that adobe made available. Me thinks it wont work to solve the problem.
Basically when i 'test movie or run the swf in stand alone mode the pop up and appear t be working, except nothing happens on the board, or in the dialogue box in the mc helper. If I run debug mode in flash cs 3 i get the message i pasted in above...
So what is going on...??? How do i solve the security issue. I have a client who wants to use my work and i need flash to work with the board without fault. Please someone help to get this working.
Another addition to my problems - I noticed the ethernet connection is not showing up in the mc helper...so i messed around with the settings...If i unplug the usb cable, and power the board and attach the ethernet cable, nothing displays in mc helper, no status stats or dialogue messages, command have no effect...
If i run a flash example [from within flash cs3] i no longer get the socket error in the debug but in the mc helper dialogue box i get this 'XML SERVER New connection from XML peer at 127.0.0.1
No commands work from flash or the command line, but if i test movie...and close it and test again i get this message showing connections and disconnect.
So now i am even more confused. Maybe i will test the ethernet by connecting the board to a network switch rather than the router, as i know sometimes this can cuase networking problems. Why does the connection show up as 127.0.0.1 when the computer i am connecting and running flash on has a completely different ip.
Any help is much appreciated.
Yeah i can send the files which cause the error, but they are the ones i downloaded from your site, the flash as3 examples, led chaser/single led/ etc.
I can still send them, but you have the exact same files already.
You still want them?
Downloaded new versions of mc_helper / board firmware and as3 components.
Intsalled it all in the correct place.
Board has external power supply / usb and ethernet cables plugged in. It only shows up as usb[com4] in the mc helper software, ethernet does not work.[or show up]
ip router is 192.168.2.9
pc is 192.168.0.100 and board has dhcp and webserv switched on. The board ip is 192.168.0.101. Ports are set at 10000. Gateway is 255.255.255.0.
If i access the board ip via a browser i see the lovely webserv'd page with the connection stats ect. That works.
If i only plug in the ethernet, i still get the webserv page...but nothing works in mc helper. But swf files still manage to show up as ip 127.0.0.1 connected in the mc helper dialogue box.
If i plug the usb back in, the board shows up again.
But at no point will flash actually manage to send out a command that works on the board. If i test a movie from tyour examples, it runs...but nothing happens. If i debug the movie, in the output box i see the error message. This error appears on all your examples, and also an any files in which i use the connection scripts to connect to the board. I just presumed this security error was the cause of the problems.???
No other settings to tell..except i use windows xp pro sp2, .net2, latest java environment, latest flash player, firefox, and your component installed in the correct directory.
Maybe i will get a network switch and try that...the last time i used the make board succesffuly was using flosc and a network switch before the router. That worked!
I think the ethernet not working is either an mc helper bug or my router setup.
The 2010 flash error is possible to fix, i just have to figure out how!
I was going to purchase an xbee to do all this via wireless, but it it dont work via cables i dont wanna go there!
Thanks for your time...
any help on the security socket error... I did find this...
Could be unrelated, but maybe i need to do one of the examples to get things working from flash?
Thanks for your help Liam
. I have set the router ip to something normal and the pc and board are still dhcp. Now my three ips 192.168.0.1/2/3 so nothing wierd going on.
Now the board shows up in mc helper and recieves commands via ethernet & or usb.
.
Then is also solved the flash problem by doing what the link above describes. Run a stand alone swf and right click, options>advanced> global security etc. I set up my trusted directory and now it all works.
Amazing how a few simple things can cause so much confusion on my part!!!
So now i have to go away and design something nice with my working make board
.ta.da.
Thanks. Its strange that such an important part of the flash players functionality is hidden away like that. I clicked it a few times, and clicked close on the browser that opened up, assuming that was not what i was looking for. Odd how it takes you to web page to add local
directories.
Anyway - it works which is the main thing. Now i can look into getting a wifi xbee board and maybe some more make boards.
Thanks.

