[Mapserver-users] Flash Capabilities
woodbri at swoodbridge.com
woodbri at swoodbridge.com
Sun Jun 15 11:19:05 PDT 2003
Here is an update:
I have a typo in the php below:
> <PARM NAME=movie VALUE="><?php echo $url; ?>">
should be:
> <PARM NAME=movie VALUE="<?php echo $url; ?>">
BUT that is not the whole story. The test works fine in Netscape 7.02
but fails to display in IE 6.0 via the html, but if I drag the *.sfw
file into the IE it will display it. My browser is on Win2K.
-Steve
On 15 Jun 2003 at 10:39, woodbri at swoodbridge.com wrote:
> OK, where are the keepers of the flash secrets? I did what seemed to
> be the obvious thing to do and get a swf file and load it, but I don't
> see a map. So I must be missing the secret hand-shake or something :)
> Here is the php script I created which seems to work just fine, except
> the map does not show in the browser:
>
> <HTML>
> <BODY BGCOLOR="#CCCCCC">
> <CENTER>
> <H1>PHP/MapScript module test</H1>
>
> <?php
> dl("php_mapscript.so");
> $map = ms_newMapObj("demo.map");
> $map->selectOutputFormat("SWF");
> $img = $map->draw();
> $url = $img->saveWebImage();
>
> ?>
> <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
>
> codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swfl
> ash.cab#version=6,0,0,0"
> WIDTH="<?php echo $map->width; ?>" HEIGHT="<?php echo $map->height;
> ?>" id="map" ALIGN="">
> <PARM NAME=movie VALUE="><?php echo $url; ?>">
> <PARM NAME=quality VALUE=high>
> <PARM NAME=bgcolor VALUE=#CCCCCC>
> <EMBED src="<?php echo $url; ?>" quality=high bgcolor=#CCCCCC
> WIDTH="<?php echo $map->width; ?>" HEIGHT="<?php echo $map->height;
> ?>" NAME="map" ALIGN="" TYPE="application/x-shockwave-flash"
> PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
> </OBJECT> </BODY> </HTML>
>
> The OUTPUTFORMAT block in the mapfile looks like:
>
> OUTPUTFORMAT
> NAME swf
> DRIVER "SWF"
> MIMETYPE "application/x-shockwave-flash"
> EXTENSION "swf"
> IMAGEMODE PC256
> FORMATOPTION "OUTPUT_MOVIE=SINGLE"
> # FORMATOPTION "OUTPUT_MOVIE=MULTIPLE"
> END
>
> and doing the same thing with a PNG image works fine.
>
> Any help here would be appreciated.
> -Steve W.
>
> On 13 Jun 2003 at 12:40, woodbri at swoodbridge.com wrote:
>
> > Hi Flashy People,
> >
> > I read this over and plan to give it a try:
> > http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html
> >
> > Is this document current or has more been done on this?
> > Do you have a priority wishlist?
> > Who is the principal developer on this?
> >
> > I wanted to animate a route, like have each successive segment
> > highlight after a short delay and then repeat. Is this possible? How
> > hard would it be to implement? I saw some comments in the doc above
> > about highlighing, but it seemed to imply that this was not done
> > yet. I would probably have the route in its own layer if that makes
> > a difference.
> >
> > I think some people have posted links to their apps, but if anyone
> > can share what they have done, I would be willing to add it to the
> > Wiki page and add my experiences to it.
> >
> > Thanks,
> > -Steve W.
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
> >
>
>
> _______________________________________________
> Mapserver-users mailing list
> Mapserver-users at lists.gis.umn.edu
> http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
More information about the MapServer-users
mailing list