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

  • Home
  • SEARCH
  • 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 8520203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:28:11+00:00 2026-06-11T06:28:11+00:00

jQuery Tools includes a flashembed API which accepts many parameters. Is there one which

  • 0

jQuery Tools includes a flashembed API which accepts many parameters. Is there one which accepts callback function and fires after the success state of the flash player load event?


playerdiv.flashembed(url+'/VIPlayer.swf','knds_player',300,250,'8.0.0',false,flashVars);

Information: official website.

Note: This is possible in Google swfobject library as below:


swfobject.embedSWF(url+'/VIPlayer.swf','knds_player',300,250,'8.0.0',false,flashVars,callBack);

function callBack(event){
event after successful display of code
}

But I need to use only flashembed. Can you please help me here?

Thanks in Advance 🙂

  • 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-06-11T06:28:12+00:00Added an answer on June 11, 2026 at 6:28 am

    The flashembed method has an onFail argument which takes a callback as a value:

    $("#flash").flashembed({
       src: flashSWF,
       version:[10,0],
       id:"flashObj",
       width: 500,
       height: 300,
       wmode: "opaque",
       cachebusting: "false",
       allowscriptaccess: "always",
       api: "false",
       scale: "noscale",
       menu: "false",
       onFail: flasherror("#flash")
       })
    

    It inadvertently fires on both success AND failure. Search for the , character to distinguish between the two states. On error, it shows up as the delimiter in the version string, such as 11,0 rather than 11.0:

    function flashError(domnode, newtext){
    
    function failState()
      {
      if ($(domnode).html().search(/,/) !== -1) //player failed to load
        {
        newtext = $(domnode).html(); // store default error string
        $(domnode).empty();
        $(domnode).append(newtext.replace(/,/g,".")); // replace comma with period
        if ($(domnode).hasClass("flashmsg") === false)
          {
          $(domnode).addClass("flashmsg"); // add class to custom error element
          }
        }
      else
        {
        //success logic
        }        
    }
    
    // observer constructor
    var cursor =
    typeof window.hasOwnProperty === "function" ?
      window.hasOwnProperty("WebKitMutationObserver")
        ? new WebKitMutationObserver(startValidation)
        : window.hasOwnProperty("MutationObserver")
          ? new MutationObserver(startValidation)
          : false
            : false
      ;
    
    //Use observer event if it exists
    if (cursor)       
      {
      //Bind observer event to text child of the dom node
      cursor.observe($(domnode).get(0), { childList: true } );
      return;
      }
    //Use mutation event as a fallback
    else if (!!document.addEventListener)
      {
      $(domnode).get(0).addEventListener("DOMNodeInserted", failState, false); 
      }
    //Use readystatechange event for legacy IE
    else
      {
      $(domnode).get(0).addBehavior("foo.htc");
      $(domnode).get(0).attachEvent("onreadystatechange", failState);
      }
    

    References

    • FlashEmbed Configuration

    • Migrating mutation and property change events to mutation observers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've inherited a project that includes a minified version of jQuery Tools . The
I am using the jQuery Tools Scrollable plugin - http://flowplayer.org/tools/scrollable.html#navigator I have created a
I used jquery tools tooltip and i positioned icons 30 px under flash banner
I am using jQuery Tools v1.2.7 and jQuery v1.7.2. I have the following code:
I've working with the slideshow from jQuery Tools, as I have a dozen times
I am working on a small app and am using jQuery Tools Tooltip (
I'm having an issue with the date input from jQuery Tools. When I click
I am working with a touch based slideshow for the iPad using Jquery tools
what tools do you use for writing jquery code and testing/debugging your code?
i'm doing an application with ajax using jQuery and some other tools, and in

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.