Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Server-Side Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-28-2001, 05:12 PM   #1
govinda
Registered User
 
Join Date: Feb 2001
Location: montreal, canada
Posts: 9
Default

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
govinda is offline   Reply With Quote
Old 03-01-2001, 03:35 AM   #2
edeveloper
New Member
 
Join Date: Mar 2001
Location: eastcoast
Posts: 42
Default

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>
[Edited by edeveloper on 02-28-2001 at 09:38 PM]
edeveloper is offline   Reply With Quote
Old 03-05-2001, 03:51 PM   #3
aatwater
Registered User
 
Join Date: Mar 2001
Posts: 1
Default Javascript and flash

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
aatwater is offline   Reply With Quote
Old 03-05-2001, 04:18 PM   #4
edeveloper
New Member
 
Join Date: Mar 2001
Location: eastcoast
Posts: 42
Default

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>
you can get the info at macromedia
edeveloper is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 10:12 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.