473,394 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Text change is effective only after delay

Here is my what I am trying to do

1. Open a MP3 file (Sound) -- Multiple songs -- roughly 30 seconds per song
2. Dynamically create TEXT Field using CreateText method
3. Show Lyrics for the First song and start MP3
4. When MP3 moves to second song (I trap it based on time) -- I stop the Mp3 using StopALLSounds.
5. Change the Text to new Lyric (second song lyrics)
6. introduce delay -- using multple methods -- like simple while loop for delay
7. Start the song again

******** PROBLEM ******************
The text change even though I do before delay is introduced -- the effect is only after the delay -- I want to stop for 1 second on NEW SONG Lyric before starting the song -- but it is pausing with old lyric


Here is my code
stopAllSounds();
SongNum=SongNum+1;
drawBackground(string(SongNum));
Heading.text = songHeader[SongNum];
Detail1.text = FullSongText[SongNum];
heading_fmt.color = rgbdetailcolor.rgb;
detail_fmt.color = rgbdetailcolor.rgb;
Heading.setTextFormat(heading_fmt);
Detail1.setTextFormat(detail_fmt);

delayFlag = 0
;
while (delayFlag < 10000)
{
delayFlag = delaFlag+1;
}
the_sound.start(the_sound.position/1000);

Please note -- I tried using timer etc -- there is no change in effet
Also please note -- that I have only one Frame
Mar 31 '08 #1
0 1793

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ian | last post by:
I'm wondering if someone can tell me what the best way to do this would be. I have a web page with a table which has some text in and I want the text size to be automatically enlarged when the...
8
by: Dave | last post by:
Hi all, I was wondering if anyone could point me in the right direction of speeding up an ASP.Net application. We converted an old app that ran lightning fast in classic ASP, but now, (after...
6
by: James Black | last post by:
'When my form is submitted, I have onsubmit pointed to the following code snippet. But, the button is not actually set to disabled and the style.visibility changes are not made for several...
0
by: samjam | last post by:
Below is some coding in a program i am using, i would like to know how i can get the text bigger or bolder on my webpage, This is the section of text i would like bigger or bolder (This is a very...
5
by: rn5a | last post by:
Can someone please suggest me a text editor especially for DEBUGGING ASP scripts apart from Microsoft Visual Interdev? I tried using Visual Interdev & created a project but Interdev generates...
5
by: Jure Bogataj | last post by:
Hi all! I have a problem (performance issue) with listview. I have implemented an ItemSelectionChange on my listview and put some code in it (I build some toolbar based on selection and update...
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
16
by: Wayne | last post by:
I've read that one method of repairing a misbehaving database is to save all database objects as text and then rebuild them from the text files. I've used the following code posted by Lyle...
6
by: K Viltersten | last post by:
I have the following button: <asp:LinkButton id="Btn" runat="server" text="Click"> </asp:LinkButton> I have added an action listener in the javascript where I change the text on it:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.