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 7674679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T16:47:32+00:00 2026-05-31T16:47:32+00:00

how to get the time which tooks the flash object to load inside the

  • 0
  • how to get the time which tooks the flash object to load inside the browser, from the creation of the object untill it’s ready state ?
  • 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-31T16:47:33+00:00Added an answer on May 31, 2026 at 4:47 pm

    If you just want to measure the loading time of the Flash object, you can just use FireBug. But if you want to know when a Flex application is completely ready for usage (i.e. all RSL’s loaded; all initial data loaded), I think there are two approaches. One within the app, using a custom preloader to start timing and stop timing when your conditions are met. The other through JavaScript and ExternalInterface. Of which I reckon the latter will give you the most accurate result, because there will probably already be a delay before the preloader is loaded.

    JavaScript and ExternalInterface

    I have never done this so I’m just going to explain my thoughts. In Javascript you create a ‘date’ object when the Flash object starts loading. You’re probably using SWFObject to inject the Flash object into the page, so you can probably hook up somewhere in there. Then inside your Flex application, when the necessary conditions are met (you define what those are), you use the ExternalInterface.call() to tell JavaScript that the Flex app is ready. Make a new ‘date’ and subtract the first ‘date’, and you have your loading time.

    More info on using ExternalInterface can be found in the docs: http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7cb2.html

    more detail

    Create the JavaScript function that we’ll call when the app is ready:

    function onFlexAppReady() {
        var end = new Date().getTime();
        var loadTime = end - start; //in ms.
    }
    

    Now in the code that was generated by FlashBuilder, add the start time before the swf is injected:

    var start = new Date().getTime();
    swfobject.embedSWF(
                "MyFlexApp.swf", "flashContent", 
                "100%", "100%", 
                swfVersionStr, xiSwfUrlStr, 
                flashvars, params, attributes);
    

    Lastly, in your Flex app, when the right conditions are met, call the JavaScript function:

    ExternalInterface.call("onFlexAppReady");
    

    Again, this is all untested code, but it should get you started.

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

Sidebar

Related Questions

I want to store the current date & time which can be get by
How to get the time value in a stored procedure from a DateTimePicker value?
What object/method would I call to get current time in milliseconds (or great precision)
I want get the time used for a case so I can create an
My code: $.get('ajax/time_menus.php', { shift: $('#shifts').val() }, function(data) { //load the array into a
How can I get current time (I need hours, minutes, seconds) crossplatform in c++?
Is there any way to get the time down to the Millisecond in MySQL?
Is there a way to get the time separator symbol ':' in Java? Is
I am using the following method to get the time of the video with
I'm writing a silverlight app which does some real-time charting. Basically, I just have

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.