[Mapserver-users] Flash Capabilities

Yewondwossen Assefa assefa@dmsolutions.ca
Mon, 16 Jun 2003 10:34:04 -0400


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

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

Email: assefa@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&nbsp; on IE 6.0 (winXP) and It was displaying the flash
movie properly.<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:woodbri@swoodbridge.com">woodbri@swoodbridge.com</a> wrote:<br>
<blockquote type="cite" cite="mid3EEC8059.24570.3223546B@localhost">
  <pre wrap="">Here is an update:

I have a typo in the php below:

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

  </pre>
  <blockquote type="cite">
    <pre wrap="">  &lt;PARM NAME=movie VALUE="&lt;?php echo $url; ?&gt;"&gt;
    </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@swoodbridge.com">woodbri@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:

&lt;HTML&gt;
&lt;BODY BGCOLOR="#CCCCCC"&gt;
&lt;CENTER&gt;
&lt;H1&gt;PHP/MapScript module test&lt;/H1&gt;

&lt;?php
dl("php_mapscript.so");
$map = ms_newMapObj("demo.map");
$map-&gt;selectOutputFormat("SWF");
$img = $map-&gt;draw();
$url = $img-&gt;saveWebImage();

?&gt;
&lt;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="&lt;?php echo $map-&gt;width; ?&gt;" HEIGHT="&lt;?php echo $map-&gt;height;
?&gt;" id="map" ALIGN=""&gt;
  &lt;PARM NAME=movie VALUE="&gt;&lt;?php echo $url; ?&gt;"&gt;
  &lt;PARM NAME=quality VALUE=high&gt;
  &lt;PARM NAME=bgcolor VALUE=#CCCCCC&gt;
  &lt;EMBED src="&lt;?php echo $url; ?&gt;" quality=high bgcolor=#CCCCCC 
WIDTH="&lt;?php echo $map-&gt;width; ?&gt;" HEIGHT="&lt;?php echo $map-&gt;height;
?&gt;" 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>&gt;&lt;/EMBED&gt;
&lt;/OBJECT&gt; &lt;/BODY&gt; &lt;/HTML&gt;

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@swoodbridge.com">woodbri@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@lists.gis.umn.edu">Mapserver-users@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@lists.gis.umn.edu">Mapserver-users@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@lists.gis.umn.edu">Mapserver-users@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@dmsolutions.ca">assefa@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--


_______________________________________________
Mapserver-users mailing list
Mapserver-users@lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users