Hi Guys,
I've been trying to get the multiuser fridge magnet example (http://www.unionplatform.com/?page_id=1159) to build and work, using Union Reactor (Flash Client).
I'm using Adobe Flex 4.6 and Eclipse Classic 3.7.1 as my IDE.
Initially, I was getting errors on the multiuser fridge magnet action script, until I realised that the src for downloading (and shown on the web page) is out of date with the latest version of Reactor.
The problem was here:
in source file UnionFridgeMagnets.as
Line 13: import net.user1.reactor.RoomModuleType;
Line 53: modules.addModule("net.user1.union.example.roommodule.FridgeMagnetsRoomModule",
RoomModuleType.CLASS);
Reason:
in package: net.user1.reactor, public final class RoomModuleType changed to public final class ModuleType, in Reactor 1.0.2.
OK...so this worked and my SWF file built. This file is 70k, whereas your demo SWF on the web page is 112k (not sure if that's significant, or just about the IDE?).
So, now if I run my version of the SWF (in Firefox) using tryunion.com:80, I get the fridge magnets, but on a white background (I guess this is because the formatting is in the HTML file and I'm just dropping the SWF?).
If I run two instance of my build of the demo, I get upredictable results... some magnet moves are received by the second client...some aren't. Usually, moves sent by the second client are not replicated in client 1 - ever. I've tried connecting my version and the web page version and the results are similar.
I wondered if this was a browser security issue about running mine locally. I tried changing Flash Player's security settings and running my SWF on a web server - same results.
My version of the demo is obviously different from yours, in that the web page resets the magnets and tracks users connected.
I've tried embedding my version in HTML, but that doesn't work at all. Even if I use the same code that you're using on the web example!
Please can you provide the correct HTML for embedding and also any suggestions about why my build isn't working.
Many thanks
Steve