FlashComGuru Home InfluxisCDNImediaseeUvault
                                                                                       Forum Index | Active Topics | Register
                                                                                                          List Overview | List Archives
                                                                                                                           About this site | Advertise
 

home

Adobe AIR (11)
Applications (40)
Books & Training (11)
Collaboration (18)
Components (10)
Events (80)
Flash Player (35)
Flex (39)
FMS (110)
General (123)
Hosting (6)
Jobs (17)
Off topic (36)
OSMF (3)
Press Releases (23)
Site Check (11)
Tools (53)
Videos & Players (74)

Follow me on Twitter

 
I've spent a few hours over the last week or two on porting Christophe Coenraets' Map Rooms application to FMS, Wowza (and Red5 I think _ I haven't tested that one).

Map Rooms is a Flex application that uses the Google Maps API for Flash in order to provide collaboration features as well as a text chat. You can test drive the application for yourself here.
The original application is powered by BlazeDS, but since I am more familiar with FMS I decided to port it over. All source files are posted here (Zip file with sources is here) and I left some of the original BlazeDS code in there (commented out). The basic differences between Christophe's version and mine is the fact that my application first connects to FMS and then uses SharedObject onSyncs to provide the data sharing features.

I've copied the following instructions from Christophe, hoping he doesn't mind.
1. Access http://coenraets.org/apps/gmaprooms/gmaprooms.html on two different machines or in two browser windows on the same machine.
2. Make sure you logon with two different user names and the same room name.
3. Move the map in one browser and notice that the position of the map is synchronized in the other browser.
4. You can also search an address in one browser and the resulting map position will appear in the two browsers.
5. The zoom level and the map type are also synchronized between users.
6. Click the "Whiteboard" button in one browser, pick a color to draw on the map (upper left corner), and start drawing.

I'm providing all sources for my ported application, but remember that you wil need to download the Google Maps ActionScript 3 API first and then add the swc file to the libs folder of your project. You also need to obtain a Google Maps API key and assign it to map.key in the initMap() function in MapArea.mxml. Lastly, you need to update line 29 of NCConnect.as to reflect your own FMS/Wowza/Red5 address.

The reason this application is compatible with FMS and Wowza (and I believe also with Red5) is because it uses no serverside ActionScript code. I've tested it on FMS2+3 and the latest Wowza Pro.
I've had some problems sending customs objects over the FMS NetConnection and I may have left some remnants of that in my code. For some reason I didn't manage to successfully send a ChatEvent over the NetConnection, yet WhiteboardEvent seems to work. The only difference between those two events seems to be that ChatEvent has another custom class nested within it (its data property is typed as ChatVO). I ended up sending just that data property (the ChatVO itself) over the wire but I needed to add registerClassAlias("ChatVOAlias", ChatVO ) and getClassByAlias("ChatVOAlias") to my code (in SOModel.as). Thanks to Dirk Eismann for the tip, I had never heard of those methods before...
It would be great to have more info and documentation on FMS3's custom class pass-through feature in order to establish what exactly can and can't be done - it may of course just be a bug in my code but whatever I tried the chat did not work as soon as I tried to send the complete ChatEvent...

Comments
[Add Comment]
It's looking cool :)
# Posted By Sunil Gupta | 7/8/08 2:00 AM
This application seems to be cool , but when i downloaded the source code and tried to run it , then it is giving me errors as " not able to find some events like , MapMoveEvent , and many more which are present in the com.google.maps.*; package " from where can i get this package , and also can u give the source from where can i find the google ActionScript API.
# Posted By LakshmiKanthReddy | 7/22/08 7:04 AM
Read the original maprooms post for info on google integration.
# Posted By stefan richter | 7/22/08 9:02 AM
i completed with the API integration , but when i search for any location then it is raising "geocoding failed event " and giving Alert as " Geocoding Failed" can u guide me how to overcome this and get "geocoding success event " .
# Posted By LakshmiKanthReddy | 7/22/08 10:59 AM
just a newbie question, sorry, if I get a flex app developed using google maps API for flash, will it only run on the domain with the google maps API key, or can it run from any domain / website i.e. can it be exposed as a widget?

thanks,
# Posted By pete smith | 8/8/08 5:00 AM
pete, it will only run from the one domain. However if you serve the widget from your site/domain and simply allow users to embed it into their sites (meaning you always host the SWF) then it should work. Iframe would also work.
# Posted By Stefan Richter | 8/8/08 8:38 AM
I have configured it with blazeds but my application working little slow e.g., my text recieved by the one client to other in slow motion. any idea what would be the problem?


Whereas your application run faster then me
# Posted By matifbutt | 8/12/09 6:41 AM
I'm working with an implementation of this Whiteboard for an e-learning project (videoConference).

It might interest somebody for test it.

http://escale.net/demo
# Posted By Whiski | 8/19/09 6:43 PM