[Mapserver-users] Mapserver and flash

William A. Bronsema, C.E.T. bronsema at dmsolutions.ca
Tue Aug 19 05:14:49 PDT 2003


Lars-Göran,

It is fairly easy to view the SWF output using actionscript.  Set the 
outputformat in the map file to the following:

   OUTPUTFORMAT
     NAME swf
     MIMETYPE "application/x-shockwave-flash"
     DRIVER swf
     IMAGEMODE PC256

     # the following line is used to output all layers in one swf
     FORMATOPTION "OUTPUT_MOVIE=SINGLE"

     # the following line is used to output all layers individually
     #FORMATOPTION "OUTPUT_MOVIE=MULTIPLE"
   END


After mapserver has generated the temp swf file(s) you can use the 
"loadMovie" actionscript function to load the swf file into a 
pre-existing container.  For example, create a new swf file with a movie 
clip called "clip1" and add the following line in actionscript:

loadMovie ( "http://url/to/swf/mymap.swf", "clip1" );

I use PHP and php_mapscript to help manage the files on the fly and 
Flash to manage my actionscript.

I hope this quick overview helps.

Regards,
Bill

Lars-goran Edholm wrote:
> Hi!
> Does anybody have an example of using Mapserver with swf vector output.
> How do i use the swf-actionscript file to view the layers?
> 
> 
>  Mvh
> Lars-Göran Edholm    tel 026/24 14 36
> 1:e byggnadsinspektör
> Bygg- och miljökontoret
> 811 80 Sandviken
> lars-goran.edholm at sandviken.se
> 
> 
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> 


-- 
William A. Bronsema, C.E.T.
Applications Developer
DM Solutions Group Inc.

http://www.dmsolutions.ca
e-mail: bronsema at dmsolutions.ca
phone : +1 (613) 565-5056 ext.25
fax   : +1 (613) 565-0925
_______________________________________________





More information about the MapServer-users mailing list