Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Nov 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Beginner location-aware app help

    Hey, guys. I am making a location-aware app using the AppFurnace platform.

    The prototype app works on location.

    I am now making a 'play at home' version of the app. I can't figure it out though. Beginner at this stuff. The only forum thread that exists is https://appfurnace.zendesk.com/entri...rkers-to-a-map at the bottom of the page.

    My code currently reads:

    Code:
    function openUrl() {
    af.openLinkInWebBrowser("http://www.wshc.eu/lacock/");
    }
    
    
        var a = new af.Audio("Red Lion/RedLion.mp3");
        var b = new af.Audio("Church/church script.mp3");
        var c = new af.Audio("Sign of the Angel/angel script.mp3");
    
    
    function playAudioZone1() {
        a.play();
        b.stop();
        c.stop();
        
    } 
    function playAudioZone1Out() {
        a.stop();
    } 
    
    function playAudioZone2() {
        b.play();
        a.stop();
        c.stop();
    } 
    function playAudioZone2Out() {
        b.stop();
    } 
    
    function playAudioZone3() {
        c.play();
        a.stop();
        b.stop();
    } 
    af.geoFeatures.setVisible(true);
    
    var pbpoint = af.geoFeatures.getFeatureByName("Red_Lion_");
    pbpoint.setMarkerImage("quill.png",100,100,"center","center");
    pbpoint.setMarkerClick(markerClicked);
     
    function markerClicked() {
        popup("Red Lion", playAudioZone1() + " Red Lion");
        
        
    
    }

    If anyone can help it would be greatly appreciated. I need help from the af.geoFeatures.setVisible(true); line onwards

    Mat
    Last edited by VIPStephan; 11-03-2012 at 04:26 PM. Reason: added code BB tags


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •