Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6363637
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:03:46+00:00 2026-05-25T00:03:46+00:00

Is it possible to have a flash/html5 video on a webpage, and when the

  • 0

Is it possible to have a flash/html5 video on a webpage, and when the video is done, it will run a PHP script?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:03:46+00:00Added an answer on May 25, 2026 at 12:03 am

    You’d have to do a check inside both the html5 player and the flash player to determine if the video has stopped playing and then you should be able to call a php script through several ways. Let’s say you have a php file called ‘test.php’ then in html5 you’d do the following:

    <script>
        var video = document.getElementsByTagName('video')[0];
    
        video.onended = function(e) {
                    $.post(
                        "test.php", 
                        function(data) {
                            /*Do stuff here!*/
                        }, 
                       "json"
                    );
        }
    </script>
    

    In flash it’s a bit different and you could try doing something like the following in actionscript3:

    stream.addEventListener(NetStatusEvent.NET_STATUS, statusChanged);
    
    function statusChanged(stats:NetStatusEvent) {
        if (stats.info.code == 'NetStream.Play.Stop') {
            // create a new loadvars variable
            var lv:LoadVars = new LoadVars();
            lv.load("http://www.myurl.com/test.php");
            // now define what you want to do with the loaded data:
            lv.onLoad = function(){
               /*Do stuff here!*/
            }; 
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How would it be possible to have a HTML page play a flash animation
Is it possible to clear a Flex flash.utils.Dictionary ? I have a Dictionary that
I'm not sure if this is possible (complete non-flash developer speaking), but we have
I have an html page with a flash object that provides video chat using
I want to display videos using Flash (for older, non-HTML5 video browsers). This is
I have a flash video player and I am just testing to see if
I have to decide whether I should choose a Flash or a HTML5 presentation
I am developing a simple flash arcade application but have run into a snag.
Is it possible have two projects with the same name in flex builder? Here
is possible to have a separator between elements of a GridView? Thanks

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.