All Very New!

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
nccs
Posts: 1
Joined: Mon Jun 27, 2011 2:08 pm

All Very New!

Post by nccs » Mon Jun 27, 2011 2:15 pm

Hi: Just testing the (trial version) and I was wondering if this is what I need to do our project. Our Charter School
wants to create an iOS App for our Native American Langauge (Ojibwe). We simply want a scrolling list of words that
when touched you would hear the Ojibwe language version of the word. We have the individual words saved as .wav files.
Can anyone lead me in the starting direction or provide me an example.

Thank you,

Kent

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: All Very New!

Post by Klaus » Mon Jun 27, 2011 4:01 pm

Hi Kent,

I would create a list in this format:
Word TAB filename of the sound
(TAB = tabstop!)

Example:
Flower TAB flower.wav
Tree TAB tree.wav
etc...

Then you can create a LIST field, set its TAB stops to a value greater
that the visible part of the first word, so in the field only the WORDS are visible

Then you can script this for the field:

Code: Select all

on mouseup
   ## We need to extract the filename from the clicked line
  set itemdel to TAB

  put the selectedtext of me into tSelText
  put item 2 of tSelText into tFilename

  ## Presumed you copied ALL of your sound files intot he standalone:
  play (specialfolderpath("engine") & "/" & tFileName)
end mouseup
Get the picture?


Best

Klaus

Post Reply