New topic: 

Working with sound's

<http://forums.realsoftware.com/viewtopic.php?t=37984>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        vassili_zaitsev          Post subject: Working with 
sound'sPosted: Mon Mar 07, 2011 5:33 pm                                 
Joined: Thu Sep 28, 2006 9:16 am
Posts: 156
Location: Belfast, N. Ireland                Hey all, im a bit stuck on this 
one, ive got a sound i want to play, and a canvas image that changes when it 
plays, but i dont know how to automaticly change the canvas image back to its 
previous image when the sound stops at the end of play.

i was trying this

Code:  If lowe.isplaying then
  canvas7.backdrop = ledgreen
  else 
  if lowe.end then
  canvas7.backdrop = ledred
  end if
  end if

Obviously this doesn't work

Code:if lowe.end then

Sorry if I make no sense, To break it down what im trying to achieve is this

If sound is playing, Image goes Green
When sound ends, Image Goes red

Thanks for reading =D

Robin      
_________________
C:\Program Run C:\Program Crash C:\Programmer Quit

Name: Robin
Realbasic level: Newbie  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to