[Mapserver-users] Flash Capabilities

Yewondwossen Assefa assefa at dmsolutions.ca
Mon Jun 16 07:34:04 PDT 2003


--------------080203090505090103000007
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Just a note, I have grabbed your HTML snippet did the modifications you 
noted below and tried It here  on IE 6.0 (winXP) and It was displaying 
the flash movie properly.

woodbri at swoodbridge.com wrote:

>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
>>
>>    
>>
>
>
>_______________________________________________
>Mapserver-users mailing list
>Mapserver-users at lists.gis.umn.edu
>http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>
>  
>

-- 
----------------------------------------------------------------
Assefa Yewondwossen           
Software Analyst   

Email: assefa at dmsolutions.ca    
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------




--------------080203090505090103000007
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
Just a note, I have grabbed your HTML snippet did the modifications you noted
below and tried It here  on IE 6.0 (winXP) and It was displaying the flash
movie properly.<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:woodbri at swoodbridge.com">woodbri at swoodbridge.com</a> wrote:<br>
<blockquote type="cite" cite="mid3EEC8059.24570.3223546B at localhost">
  <pre wrap="">Here is an update:

I have a typo in the php below:

  </pre>
  <blockquote type="cite">
    <pre wrap="">  <PARM NAME=movie VALUE="><?php echo $url; ?>">
    </pre>
  </blockquote>
  <pre wrap=""><!---->
should be:

  </pre>
  <blockquote type="cite">
    <pre wrap="">  <PARM NAME=movie VALUE="<?php echo $url; ?>">
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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, <a class="moz-txt-link-abbreviated" href="mailto:woodbri at swoodbridge.com">woodbri at swoodbridge.com</a> wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">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=<a class="moz-txt-link-rfc2396E" href="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"</a>

codebase=<a class="moz-txt-link-rfc2396E" href="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">"http://download.macromedia.com/pub/shockwave/cabs/flash/swfl
ash.cab#version=6,0,0,0"</a>
  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=<a class="moz-txt-link-rfc2396E" href="http://www.macromedia.com/go/getflashplayer">"http://www.macromedia.com/go/getflashplayer"</a>></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, <a class="moz-txt-link-abbreviated" href="mailto:woodbri at swoodbridge.com">woodbri at swoodbridge.com</a> wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">Hi Flashy People,

I read this over and plan to give it a try:
<a class="moz-txt-link-freetext" href="http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html">http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html</a>

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
<a class="moz-txt-link-abbreviated" href="mailto:Mapserver-users at lists.gis.umn.edu">Mapserver-users at lists.gis.umn.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.gis.umn.edu/mailman/listinfo/mapserver-users">http://lists.gis.umn.edu/mailman/listinfo/mapserver-users</a>

      </pre>
    </blockquote>
    <pre wrap="">
_______________________________________________
Mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mapserver-users at lists.gis.umn.edu">Mapserver-users at lists.gis.umn.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.gis.umn.edu/mailman/listinfo/mapserver-users">http://lists.gis.umn.edu/mailman/listinfo/mapserver-users</a>

    </pre>
  </blockquote>
  <pre wrap=""><!---->

_______________________________________________
Mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Mapserver-users at lists.gis.umn.edu">Mapserver-users at lists.gis.umn.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.gis.umn.edu/mailman/listinfo/mapserver-users">http://lists.gis.umn.edu/mailman/listinfo/mapserver-users</a>

  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="$mailwrapcol">-- 
----------------------------------------------------------------
Assefa Yewondwossen           
Software Analyst   

Email: <a class="moz-txt-link-abbreviated" href="mailto:assefa at dmsolutions.ca">assefa at dmsolutions.ca</a>    
<a class="moz-txt-link-freetext" href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</a>

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------

</pre>
<br>
</body>
</html>

--------------080203090505090103000007--





More information about the MapServer-users mailing list