Go Back   CodingForums.com > :: Client side development > General web building > Building for mobile devices

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-03-2012, 04:08 PM   PM User | #1
MatWilliams91
New to the CF scene

 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
MatWilliams91 is an unknown quantity at this point
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
MatWilliams91 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:03 PM.


Advertisement
Log in to turn off these ads.