INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

button to replay a .swf file

button to replay a .swf file

(OP)
Good morning!

I have an swf file that is embedded into an asp.  Once it stops its animation, I want the reader of the asp to be able to click a button to "Replay" the animation if they wish.  I have no clue how to call this procedure using a button.  Any ideas on what code I could use to accomplish this?  Here is the code that plays the animated file:

<tr>
    <td align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shock...; width="400" height="400">
    <param name="movie" value='Condenser4.swf'>
    <param name="quality" value="high">
    <embed src='Condenser4.swf' quality="high" pluginspage="http://www.macromedia.com/go/getflashpla...; type="application/x-shockwave-flash" width="400" height="400"></embed></object>
</td>

Thanks in advance for your time and efforts!

Christine

RE: button to replay a .swf file

add to your object tag:
"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shock...; width="400" height="400">
    <param name="movie" value='Condenser4.swf'>
    <param name="quality" value="high">
    <embed src='Condenser4.swf' quality="high" pluginspage="http://www.macromedia.com/go/getflashpla...; type="application/x-shockwave-flash" width="400" height="400"NAME="myMov"></embed></object>


on your button put: onclick="myMov.Play();"

RE: button to replay a .swf file

(OP)
Thanks, ConeHead....what appears to be a very simple solution isn't working for me.  I'm sure it's something I'm doing, as I am SO inexperienced.   This is the whole page, minus all of the text...What am I doing wrong?

<table border="0" cellpadding="2" cellspacing="0" class="bees">
<td>
<tr>
</tr>
</td>
<tr>
    <td>TEXT GOES HERE</td>
</tr>
<tr>
    <td align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shock...; width="400" height="400">
    <param name="movie" value='Condenser4.swf'>
    <param name="quality" value="high">
    <embed src='Condenser4.swf' quality="high" pluginspage="http://www.macromedia.com/go/getflashpla...; type="application/x-shockwave-flash" width="400" height="400" NAME="myMov()"></embed></object>
</td>
</tr>
<TD><input type="button" value="Replay" onclick="myMov.Play();">

</table>

RE: button to replay a .swf file

hmmm you might need to reset your movie to frame one... you could try to do that via the .fla ... at the end reset it back to the beginning... or maybe this:

<input type="button" value="Replay" onclick="myMov.GotoFrame(0); myMov.Play();">

RE: button to replay a .swf file

(OP)
Shoot...that didn't work either.  Does it help to know that the error message is: 'myMov' is undefined.  This I don't understand, since it clearly is.....does it need to be defined somewhere else?

RE: button to replay a .swf file

add this also:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shock...; width="400" height="400" id="myMov"></>
    <param name="movie" value='Condenser4.swf'>
    <param name="quality" value="high">
    <embed src='Condenser4.swf' quality="high" pluginspage="http://www.macromedia.com/go/getflashpla...; type="application/x-shockwave-flash" width="400" height="400"NAME="myMov"></embed></object>


sorry...

RE: button to replay a .swf file

(OP)
Hurray for ConeHead! Has anyone told you lately that you are AWEsome!  That did it!  Thank you ever-so!!!

Christine

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close