- This topic has 4 replies, 2 voices, and was last updated 12 years ago by support-octavio.
-
AuthorPosts
-
fordcaMemberHi there,
I have been using mobione for a while now and I have very little app design knowledge especially in regards to writing codes of even navigating files etc. I have had a look into the discussions about this topic earlier on however I have no idea what it all means and after many failed attempts at understanding it I am still lost.
Therefore I need to know if you could assist me with a step by step process of embedding audio onto a clicked button. I mainly get lost when it comes to finding the custom audio demo custom-js file and what to do from thereons.
Also would it just be possible to have a button that runs javascript using my mp3 file instead and if so would you be able to provide me with a basic javascript that would do such a task in which I could just change the mp3 file I wish to use.
I hope that makes sense and any assistance would be greatly appreciated.
Thanks
support-octavioMemberHi fordca,
This example should be helpful for you: http://www.genuitec.com/support-genuitec/viewtopic.php?f=14&t=2123
fordcaMemberthanks for the quick reply.
I managed to get some of it to work, will let you know if I need further assistance.
thankyou.
fordcaMemberI had one more question,
with the background audio, would it be possible to have it start when you transition onto a new page?
I want to have my audio play when I enter a new page so how would I go about doing that.
Is there any possible way to have the audio on a timer that plays after say 1second of being on that particular page, and if so what sort of code would be needed to do that?Thanks in advance.
support-octavioMemberHi fordca,
You can call your javascript code in phoneui.postPageTransition function and use next condition:
if(newPageId==”#m1-secondScreen”){
playAudio();
} -
AuthorPosts