Select to view content in your preferred language

Release Flex Application to the web(Urgent)

553
4
09-22-2010 12:46 AM
Matildaobaseki
New Contributor
Hi All,

I have exported my bin release from flex, I copied the html template to my website html page but I can't see my flex application on my website
Tags (2)
0 Kudos
4 Replies
RobertScheitlin__GISP
MVP Emeritus
Matilda,

    Did you copy EVERY file in your bin-release folder or to your webserver? What web-server are you using? If it is IIS did you setup a virtual directory what is configured as an application?
0 Kudos
Matildaobaseki
New Contributor
Hi Robert,

I have tried to contact you. I did release the whole application. and My website is sub domain within a major domain meaning http://matapp@mysite.com.

Also with the roberta streetview zip you did, I was able to view it once in my flex app, going back again, I' m unable why is this?????
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Matilda,

   I don't have any experiences with sub domains but I just tried to put that address into my firefox browser and got this message
You are about to log in to the site "mysite.com" with the username "matapp", but the website does not require authentication. This may be an attempt to trick you. Is "mysite.com" the site you want to visit?
Like I said I don't have any experience with sub domains but this doesn't look promising. As far as the Streetview widget. I really don't know what the deal is I have lots of people using that widget without issue.
0 Kudos
Matildaobaseki
New Contributor
Hi Robert,

Below im mxml code for gecoding Addresses, now embedding google streetview in my html. What I want to archieve is as the marker locates the postcode search or address search in my map, it then parse the latlon of the position maker to the streetview panorama and displays the streetview image of that search.   but obviously, I' M NOT ARCHIEVING THIS. HELP PLEASE.
  HERE IS THE CODE....  it displays the marker for the search but not the streetview
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:maps="com.google.maps.*" 
    width="100%" height="100%" layout="absolute" viewSourceURL="srcview/index.html">
<mx:Panel title="Google Maps Demo" width="100%" height="100%">
  <mx:VBox width="100%" height="55%">
   <mx:HBox width="100%" height="25">
    <mx:Label
     text="Enter address: "/>
    <mx:TextInput x="76" y="10"
      id="address"
     text="london"
    enter="doGeocode(event);" />
    <mx:Button
     id="submitButton" label="Search"
     click="doGeocode(event);"
     />
   </mx:HBox>
   <maps:Map 
    id="map" 
    key="ABQIAAAA6-wf-nBKy-SMBfMdxRjYqxRjBgYrW1knLEOdndkig2gkeE6wEhT7MqUe29V1DYC-8Dw_CYwZPhdzzw" 
    mapevent_mapready="onMapReady(event)"
    width="100%" height="100%"/>
  </mx:VBox>
</mx:Panel>
<mx:Script>
  <![CDATA[
   import com.google.maps.services.ClientGeocoderOptions;
   import com.google.maps.LatLng;
   import com.google.maps.Map;
   import com.google.maps.MapEvent;
   import com.google.maps.MapMouseEvent;
   import com.google.maps.MapType;
   import com.google.maps.services.ClientGeocoder;
   import com.google.maps.services.GeocodingEvent;
   import com.google.maps.overlays.Marker;
   import com.google.maps.overlays.MarkerOptions;
   import com.google.maps.InfoWindowOptions;
   import mx.controls.Alert;
   import com.google.maps.controls.ZoomControl;
  
 
   import com.google.maps.controls.MapTypeControl;
   import com.google.maps.controls.PositionControl;
  
  private function onMapReady(event:Event):void {
//this.map.setCenter(new LatLng(37.4419, -122.1419), 13, MapType.NORMAL_MAP_TYPE);
this.map.setCenter(new LatLng(51.522524, -0.110933), 13, MapType.NORMAL_MAP_TYPE);
   
    map.enableScrollWheelZoom();
    map.enableContinuousZoom();
    map.addControl(new ZoomControl());
   }
  
   private function doGeocode(event:Event):void {
    // Geocoding example
    var geocoder:ClientGeocoder = new ClientGeocoder();
    geocoder.addEventListener(
    GeocodingEvent.GEOCODING_SUCCESS,
    function(event:GeocodingEvent):void {
    var placemarks:Array = event.response.placemarks;
  if (placemarks.length > 0) {
  map.setCenter(placemarks[0].point);
  var marker:Marker = new Marker(placemarks[0].point);
marker.addEventListener(MapMouseEvent.CLICK, function (event:MapMouseEvent):void {
marker.openInfoWindow(new InfoWindowOptions({content: placemarks[0].address}));

Rob.... this is the error
marker.setLatLng(event.latLng);
ExternalInterface.call( "setPanorama", event.latLng.lat(), event.latLng.lng() );
       });
      
map.addOverlay(marker);
      }
     });
    geocoder.addEventListener(
     GeocodingEvent.GEOCODING_FAILURE,
     function(event:GeocodingEvent):void {
      Alert.show("Geocoding failed");
      trace(event);
      trace(event.status);
     });
    geocoder.geocode(address.text);
   }
  ]]>
</mx:Script>
</mx:Application>
0 Kudos