New topic: 

Can't Hide Anything

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

       Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic         Author  
Message       gregoryor           Post subject: Can't Hide AnythingPosted: Sun 
Oct 25, 2009 11:10 am                        
Joined: Sun Oct 25, 2009 11:02 am
Posts: 1              I'm trying to create a simple window that plays some 
sounds and shows an image labeling that sound.  I've tried several different 
methods, but can't seem to trigger any change in the window as my sounds play.  

The sequence is triggered by a "Play" button, so the code is all in the Action 
event of my PlayButton.

Originally, I tried an imagewell that would change images before each sound is 
played:

imagewell.image = imageA
  soundA.play
  
  i = Ticks
  while ticks-i<isi
  wend

imagewell.image = imageB
  soundB.play
etc.

Then I tried making two imagewells and changing their visibility

imagewellA.visible = true

Then I tried both of the above using a Canvas, and then a Pushbutton.

Nothing I put in the PlayButton Action event has any impact on the screen.  Is 
there a solution out there?

Thanks,

Gregory   
                            Top                jefftullin           Post 
subject: Re: Can't Hide AnythingPosted: Sun Oct 25, 2009 11:27 am               
         
Joined: Wed Nov 15, 2006 3:50 pm
Posts: 870              Quote:Nothing I put in the PlayButton Action event has 
any impact on the screen.
But the sounds play?
Nasty, but you could try


Code:imagewell.image = imageA

while soundA.IsPlaying( )
  app.doevents
wend

imagewell.image = imageB
soundB.play
while soundB.IsPlaying( )
  app.doevents
wend

   
                            Top           Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]     
-- 
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