Help with code please 
Author Message
 Help with code please

Greetings

Any help you can give with the following problem would be much appreciated
as I really cannot get to grips with this and have tried so many different
routes and got nowhere.

PROBLEM:    Play a .ra sound at a specific moment in the timeline.  However
I load the <OBJECT> relating to Real Player, it insists on starting to play
immediately the page starts loading.

I have tried putting it in a layer and calling the layer and also simply in
a div and calling the div.  As it stands at the moment in the script below,
it is sitting in a single cell table in "Pic7"

Not all of the script is here, but, essentially, I am trying to get the
sound to
AUTOSTART at 12 seconds into the presentation.  I do not want any start or
stop buttons, nor for the sound to loop.

Any help most gratefully accepted

Kind regards
{*filter*} Rosser

<HTML><HEAD><TITLE>Sync Sound</TITLE>

<SCRIPT LANGUAGE="VBScript">
<!--
Sub Window_onload()
 Call Seq("1").Play
End Sub

Sub Seq_OnInit()
 Call seq("1").at(1.000, "pic1_show", 1, 0.000, 1)
 Call seq("1").at(3.000, "pic2_show", 1, 0.000, 1)
 Call seq("1").at(5.000, "pic3_show", 1, 0.000, 1)
 Call seq("1").at(7.000, "pic4_show", 1, 0.000, 1)
 Call seq("1").at(9.000, "pic5_show", 1, 0.000, 1)
 Call seq("1").at(11.000, "pic6_show", 1, 0.000, 1)
 Call seq("1").at(12.000, "pic7_show", 1, 0.000, 1)
 Call seq("1").at(15.000, "pic1_hide", 1, 0.000, 1)
 Call seq("1").at(15.250, "pic2_hide", 1, 0.000, 1)
 Call seq("1").at(15.500, "pic3_hide", 1, 0.000, 1)
 Call seq("1").at(15.750, "pic4_hide", 1, 0.000, 1)
 Call seq("1").at(16.000, "pic5_hide", 1, 0.000, 1)
 Call seq("1").at(16.250, "pic6_hide", 1, 0.000, 1)

 End Sub

Sub pic1_show()
 pic1.filters(0).apply()
      pic1.style.visibility = "visible"
      pic1.filters(0).play()
End Sub
Sub pic2_show()
 pic2.filters(0).apply()
 pic2.style.visibility = "visible"
 pic2.filters(0).play()
End Sub
Sub pic3_show()
 pic3.filters(0).apply()
 pic3.style.visibility = "visible"
 pic3.filters(0).play()
End Sub
Sub pic4_show()
 pic4.filters(0).apply()
 pic4.style.visibility = "visible"
 pic4.filters(0).play()
End Sub
Sub pic5_show()
 pic5.filters(0).apply()
 pic5.style.visibility = "visible"
 pic5.filters(0).play()
End Sub
Sub pic6_show()
 pic6.filters(0).apply()
 pic6.style.visibility = "visible"
 pic6.filters(0).play()
End Sub
Sub pic7_show()
 pic7.filters(0).apply()
 pic7.style.visibility = "visible"
 pic7.filters(0).play()
End Sub

Sub pic1_hide()
 pic1.filters(0).apply()
 pic1.style.visibility = "hidden"
 pic1.filters(0).play()
End Sub
Sub pic2_hide()
 pic2.filters(0).apply()
 pic2.style.visibility = "hidden"
 pic2.filters(0).play()
End Sub
Sub pic3_hide()
 pic3.filters(0).apply()
 pic3.style.visibility = "hidden"
 pic3.filters(0).play()
End Sub
Sub pic4_hide()
 pic4.filters(0).apply()
 pic4.style.visibility = "hidden"
 pic4.filters(0).play()
End Sub
Sub pic5_hide()
 pic5.filters(0).apply()
 pic5.style.visibility = "hidden"
 pic5.filters(0).play()
End Sub
Sub pic6_hide()
 pic6.filters(0).apply()
 pic6.style.visibility = "hidden"
 pic6.filters(0).play()
End Sub
-->
</SCRIPT>

<style>
#pic1 {position: absolute;top: 0;left: 0;}
#pic2 {position: absolute;top: 0;left: 0;}
#pic3 {position: absolute;top: 0;left: 0;}
#pic4 {position: absolute;top: 0;left: 0;}
#pic5 {position: absolute;top: 0;left: 0;}
#pic6 {position: absolute;top: 0;left: 0;}
#pic7 {position: absolute;top: 0;left: 0;}

#add {
position: absolute;
left: 10;
top: 325;
z-index: 1;

Quote:
}

</style>

</HEAD>
<BODY bgcolor=cornsilk>

<div id="pic1" style="position: absolute; left: 95; top: 50; z-index: 1;
visibility: hidden;
 filter:blendTrans(duration=2.00)"><IMG SRC="images/what.gif"
BORDER=0></div>

<div id="pic2" style="position: absolute; left: 95; top: 130; z-index: 1;
visibility: hidden;
 filter:blendTrans(duration=2.00)"><IMG SRC="images/does.gif"
BORDER=0></div>

<div id="pic3" style="position: absolute; left: 95; top: 210; z-index: 1;
visibility: hidden;
 filter:blendTrans(duration=2.00)"><IMG SRC="images/success4.gif"
BORDER=0></div>

<div id="pic4" style="position: absolute; left: 95; top: 290; z-index: 1;
visibility: hidden;
 filter:blendTrans(duration=2.00)"><IMG SRC="images/really.gif"
BORDER=0></div>

<div id="pic5" style="position: absolute; left: 95; top: 370; z-index: 1;
visibility: hidden;
 filter:blendTrans(duration=2.00)"><IMG SRC="images/mean.gif"
BORDER=0></div>

<div id="pic6" style="position: absolute; left: 95; top: 450; z-index: 1;
visibility: hidden;
 filter:blendTrans(duration=2.00)"><IMG SRC="images/toyou.gif"
BORDER=0></div>

<div id="pic7" style="position:absolute; width:379px; height:127px;
z-index:1; left: 307; top: 73; visibility: hidden;
filter:blendTrans(duration=2.00)">
  <table border="4" width="100%">
    <tr>
      <td height="118" align="center" valign="top">
<OBJECT ID="Sound1" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"
HEIGHT=1 WIDTH=1>
<PARAM NAME="src" VALUE="Sounds/thebest.rpm">
</OBJECT>
</td>
    </tr>
  </table>
</div>

<!--Sequencing Object-->
<OBJECT ID="Seq" CLASSID="CLSID:B0A6BAE2-AAF0-11d0-A152-00A0C908DB96">
</OBJECT>

</BODY>
</HTML>



Sun, 02 Jun 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. API callbacks - need help / example code - PLEASE PLEASE!!!

2. HELP: Debug Code (please)

3. Help writing code please

4. Help With Code Please...

5. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

6. PLEASE HELP PLEASE HELP PLEASE HELP

7. Someone Please Help Me - I Help You in Any Software Queries/Programming/Coding

8. Can anyone HELP me PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE

9. Stop, Stop, Stop..... Please HELP (code included)

10. Please help, coding problem

11. Executing code - PLEASE HELP

12. Help me with my code please

 

 
Powered by phpBB® Forum Software