Thanks again Gaev
A random selection of mp3's now play, plus they can be paused and played again from the start.
Good job, your last suggestion worked a treat. It's all quite simple when you know what you are doing!
Search found 62 matches
- Wed Feb 18, 2015 10:10 am
- Forum: General NeoAppBuilder Discussion
- Topic: Javascript if else issue
- Replies: 6
- Views: 3567
- Tue Feb 17, 2015 11:23 am
- Forum: General NeoAppBuilder Discussion
- Topic: Javascript if else issue
- Replies: 6
- Views: 3567
Re: Javascript if else issue
Thanks Gaev, Yes, I had gathered that must be the case. I had also already tried your suggestion and copied the examples you suggested, which sort of worked but not quite how I expected. As for if the 2 statements are put outside of the code, the audio won't play, from what I can see the 3 JS parts ...
- Tue Feb 17, 2015 2:14 am
- Forum: General NeoAppBuilder Discussion
- Topic: Javascript if else issue
- Replies: 6
- Views: 3567
Re: Javascript if else issue
Many Thanks Adding a prefix to the variable's name of "$rootScope." sorted out the Javascript if / else condition, which now swaps between the true and false on a button press as expected but what I thought would happen with the audio file by using the JS audioElement.play(); and audioElem...
- Mon Feb 16, 2015 11:57 am
- Forum: General NeoAppBuilder Discussion
- Topic: Javascript if else issue
- Replies: 6
- Views: 3567
Javascript if else issue
Not sure if it is something I'm doing wrong but I can't seem to get a simple Javascript if / else condition to work as I would expect when run under NeoAppBuilder. I'm actually trying to get an audio file to play and then pause on the same button. It play's fine when clicked but rather than pause on...
- Sun Feb 08, 2015 2:11 pm
- Forum: General NeoAppBuilder Discussion
- Topic: Playing sound file on a timer alert!
- Replies: 2
- Views: 2106
Re: Playing sound file on a timer alert!
Having done a lot of searching through JS coding forums over the last few day's I have now found a workaround for the sound file not auto playing on the Android Phone within a timer function.. I found few explanations as to why it won't auto play and this one explains it fairly well. Introduction If...
- Sat Feb 07, 2015 9:04 am
- Forum: General NeoAppBuilder Discussion
- Topic: Storing files locally on a mobile phone.
- Replies: 1
- Views: 1746
Storing files locally on a mobile phone.
I am currently having to store my testing samples, txt files etc on the web and use the GET function to load in to the test apps as I'm not yet, personally, able to work out another way or how to save to and load in to the app from within the phone. BeginJS var req = new XMLHttpRequest(); req.open('...
- Sat Feb 07, 2015 8:54 am
- Forum: General NeoAppBuilder Discussion
- Topic: Playing sound file on a timer alert!
- Replies: 2
- Views: 2106
Playing sound file on a timer alert!
Any tips on how to get a sound file to play on an "Android Phone" at the end of a timer function. BeginJS TimeVar=setTimeout(function () {var audioElement = document.createElement('audio'); audioElement.setAttribute('src', 'http://mywebsite/Alert.mp3'); audioElement.play(); alert('Sorry - ...
- Sun Jan 25, 2015 1:08 pm
- Forum: General NeoAppBuilder Discussion
- Topic: Variables and Arrays
- Replies: 4
- Views: 2860
Re: Variables and Arrays
Gaev,
Thanks for this, I knew it was something to do with the fact it was a String Variable after playing around with the suggestion from Tony.
Seems to be all working now.
A lot to learn for us novices by the looks of things but thanks to this forum, help is never to far away.
Thanks for this, I knew it was something to do with the fact it was a String Variable after playing around with the suggestion from Tony.
Seems to be all working now.
A lot to learn for us novices by the looks of things but thanks to this forum, help is never to far away.
- Sun Jan 25, 2015 6:50 am
- Forum: General NeoAppBuilder Discussion
- Topic: Variables and Arrays
- Replies: 4
- Views: 2860
Variables and Arrays
I'm trying to understand how to pull a single element from an array. What I would like to do (ultimately) is read a text file into an array and then generate a Radom number and display what ever was in that line. My first hurdle is how to get the single element! CreateArray [Alphabet] "A,B,C,D,...
- Sat Jan 24, 2015 5:53 am
- Forum: General NeoAppBuilder Discussion
- Topic: ProgressBar.Value ?
- Replies: 4
- Views: 2851
Re: ProgressBar.Value ?
Gave this a try and I get the same results. If you add an extra button and set the value to 0 by clicking that first it will then run the progress bar again but I don't think it actually does what you are expecting it to. It appears to me that the Loop is taking priority as it is run, then once it h...
- Fri Jan 23, 2015 5:01 am
- Forum: General NeoAppBuilder Discussion
- Topic: NeoAppBuilder Beta Test
- Replies: 38
- Views: 18656
Re: NeoSoft AppBuilder Beta Test
Well I must say, I'm very impressed. I have tried quite a few mobile phone app builders and none are that easy to get on with, having been a Neobook user (not an expert by any means) for many years now, it looks like building phone app's may now become second nature. Only 1 day in and I have already...
- Thu Nov 14, 2013 12:41 pm
- Forum: NeoBook Action Commands
- Topic: List Box Highlight Item in different Colour
- Replies: 3
- Views: 2622
Re: List Box Highlight Item in different Colour
Many Thanks for the suggestions.
I quite like the web object idea and will probably give that a try.
Paul
I quite like the web object idea and will probably give that a try.
Paul
- Wed Nov 13, 2013 3:27 am
- Forum: NeoBook Action Commands
- Topic: List Box Highlight Item in different Colour
- Replies: 3
- Views: 2622
List Box Highlight Item in different Colour
HI All, I am creating a pub that I need to list events to the user that are due within the next month. This is not the issue, I create a List Box, add the items that are due and the user can select and go direct to the event. http://www.paultomlinson.co.uk/Images/capture1.jpg What I would like to do...
- Sat Oct 05, 2013 1:30 am
- Forum: Software
- Topic: Meet my new project: Image Converter
- Replies: 2
- Views: 6430
Re: Meet my new project: Image Converter
Hello David, I'm jumping in on this some time after you have left your post. Just wondered how you achieved the drag and drop of files aspect in your publication? First was this all written with Neobook? Second Is the drag and drop done via a Neobook Plugin or have you used some VB script? Many Than...
- Tue Jul 30, 2013 4:07 pm
- Forum: NeoBook Action Commands
- Topic: Error while detecting all drives connected to the PC
- Replies: 9
- Views: 5465
Re: Error while detecting all drives connected to the PC
Klaus,
your VBScript option was by far the easiest to add, Good Work!
Did just what I needed and no annoying errors show now.
Many Thanks to all!
your VBScript option was by far the easiest to add, Good Work!
Did just what I needed and no annoying errors show now.
Many Thanks to all!