Page 1 of 1

Utter New Boy

Posted: Sun May 31, 2009 11:39 am
by Damlimey
Hi all,

Utterly new to Revolution so please allow for my ignorance. I am trying to develop an audio application, to play various formats by essentially having a page of buttons. Each button can be loaded with a music track, and pressing the button plays the track.

Is this something that I can create with Revolution Studio and if it is, how do I get started?

Thanks in advance,

G

Posted: Sun May 31, 2009 1:12 pm
by Klaus
Hi G
(Damlimey = funny name or self-awareness? :-D Just kidding!)

this sounds pretty straightforward!
Create as much (invisible?) player objects as you need and two buttons
for each player "Load..." and "Play", know what I mean?

Script of btn load:

Code: Select all

on mouseup

  ## Show file dialog with only the defined filetypes!
  answer file "Select an audio file:" with type "Soundfiles|aif,aiff,wav,au,mp3|"
  if it <> empty then
    set the filename of player "Your player here" to it
  end if
end mouseup
Script of btn "Play"

Code: Select all

on mouseup
  start player "Your player here"
end mouseup
Hope that helps.


Best from germany

Klaus

Thank you

Posted: Sun May 31, 2009 5:17 pm
by Damlimey
Thank you for that Klaus, damlimey comes from years of working in the States, always getting called "that damn limey!" From your reply, am I right in thinking that I need a player external to anything in revolution? Is there a recommended engine for that?

Thank again,

G

Posted: Sun May 31, 2009 5:31 pm
by mwieder
G- No, that's just the QuickTime player object in rev.