| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Feb 2001
Location: montreal, canada
Posts: 9
|
does anyone know a java script that will send the playhead of a flash movie to a specific frame, that will work with internet explorer AND netscape
thank you |
|
|
|
|
|
#2 |
|
New Member
Join Date: Mar 2001
Location: eastcoast
Posts: 42
|
Code:
<script language="javascript">
function goTo(){
var movie = window.document.YourMovieNameGoesHere;
//TGotoFrame is a command that sends the variable
// the "/" tells the script that the var is going to the top level of the movie
// this can be replaced with the instance name of a movieclip
movie.TGotoFrame('/', putTheFrameNumberHere)
}
// don't forget to put the movie name in the object and embed
//tags and that swLiveConnect="True"
</script>
<TITLE>goto</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF" onLoad="goTo()">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0"
ID=YOUR_MOVIE_NAME_HERE WIDTH=550 HEIGHT=400>
<PARAM NAME=movie VALUE="your.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="your.swf" name=YOUR_MOVIE_NAME_HERE quality=high swLiveConnect="True" bgcolor=#FFFFFF WIDTH=550 HEIGHT=400 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
|
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Mar 2001
Posts: 1
|
What modifications to this example need to be made in order to get the movie to start playing at the frame the playhead has been moved to? Also, where would I find information on the "TgotoFrame" command and others like it?
Thanks in advance |
|
|
|
|
|
#4 |
|
New Member
Join Date: Mar 2001
Location: eastcoast
Posts: 42
|
Code:
<script language="javascript">
function goTo(clipName,frameNum){
var movie = window.document.YourMovieNameGoesHere;movieclip
movie.TGotoFrame(clipName, frameNum)
}
</script>
you call the function like this:
<a href="Javascript:goto('put_the_clip_name_here','the_frame_number_here')">gotoFrame</a>
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| calling method from a script in a movie clip | charlee | ActionScript 2.0 | 5 | 06-24-2005 09:11 AM |
| Database simulated with arrays on a cd-rom | lecasn5 | Components | 61 | 09-07-2004 12:40 PM |
| Inherited Properties problem with class hierarchy | Johnathon_apple | ActionScript 1.0 (and below) | 5 | 09-17-2003 01:38 AM |
| Communication between Flash and a PHP script (two directions) | jiuman | ActionScript 1.0 (and below) | 15 | 09-09-2002 09:12 PM |
| java script and pop up | nebraska | Server-Side Scripting | 2 | 05-21-2002 11:50 AM |