[Mapserver-users] FLASH file action that generate by mapserver 4

Liangxu Wang wlx at cngis.org
Fri Jun 20 01:20:32 EDT 2003


hi Yewondwossen Assefa,
   I use Action scrpit viewer to explore the swf file that generate by mapserver 4.
   The action is:

    mapObj = new Object ();
    mapObj.name = "test.map";
    mapObj.width = 540;
    mapObj.height = 470;
    mapObj.numlayers = 3;
    mapObj.layers = new Array ();
    function LayerObj (name, type, fullname, relativename) {
        this.name = name;
        this.type = type;
        this.fullname = fullname;
        this.relativename = relativename;
    }
    mapObj.layers[0] = new LayerObj ("country.shp", "2", "d:/tmp/ms_tmp/105607646524641_layer_0.swf", "105607646524641_layer_0.swf");
    mapObj.layers[1] = new LayerObj ("lakes.shp", "2", "d:/tmp/ms_tmp/105607646524641_layer_1.swf", "105607646524641_layer_1.swf");
    mapObj.layers[2] = new LayerObj ("cities.shp", "0", "d:/tmp/ms_tmp/105607646524641_layer_2.swf", "105607646524641_layer_2.swf");


  There is not a mapobj.extent attribute,this is not same with the flash document.(http://www2.dmsolutions.ca/mapserver/dl/FlashMapserverUserDoc.html)
Another suggestion :
 The Layerobj's fullname attribute should web address,not local address.(like http://xxx/.../xxxxx.swf)

 wlx




More information about the mapserver-users mailing list