Solved

Call javascript after FLV's done playing

Posted on 2009-05-15
1
496 Views
Last Modified: 2013-11-11
Hi,

I have an flash flv player that needs to call a javascript function after the flv is finished playing.

Please help.

Zip file attached.

Thanks in advance:)

Note: ** please change the scrubber1.txt to scrubber.fla ,148173681.txt to 148173681.flv,player.txt and scrubber.txt to *swf's, swfobject.txt to swfobject.js, index.txt and finished.txt  to *.html
sunny-flash-player.zip
0
Comment
Question by:sunny72
1 Comment
 
LVL 22

Accepted Solution

by:
rascalpants earned 500 total points
Comment Utility
without downloading the 3.7mb of files and looking over all of them, here is what you would need to do to call a method when an FLV is done...


http://www.experts-exchange.com/Software/Photos_Graphics/Web_Graphics/Macromedia_Flash/Q_24322811.html


basically, you are looking for the onStatus event handler to return "NetStream.Buffer.Full"...  


and from there you can use ExternalInterface to call a javascript function

take a look at the below code to see the AS and Javascript needed...



rp / ZA

//  AS code

import flash.external.ExternalInterface;

 

ExternalInterface.call("helloWorld","rascalpants rocks");

 

 

 

//============

 

<script>

 
 

function helloWorld( value ){

   alert( value );

}

 

</script>

Open in new window

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

New Relic: Our company recently started researching several products to figure out what were the best ways for us to increase our web page speed and to quickly identify performance problems that we may be having. One of the products we evaluated wa…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now