How to detect if my SWF was successfully retrieved or not?

Hi All,
We have a full-viewport Flex app that is integral to our business.  "Full-viewport" means that there is nothing else on the page--the Flex app uses the entire viewport.
The app was developed in Flash Builder 4, and we're using the default HTML/JavaScript that Flash Builder provides for the host page that SWF lives on.  This is using SWFObject.
From time to time, we get calls from customers who try to use our Flex app and instead get a completely blank page. The only way I can replicate this myself is if I do something to prevent the SWF from downloading.  E.g., if I change the name of the SWF so that SWFObject gets a 404.
The best guess I can give as to why customer's might get this behavior is that they've got some kind of security software that is blocking SWFs, or at least blocking this particular SWF.
I am wondering how I can tell, in JavaScript, whether or not the SWF was successfully loaded by SWFObject.  I would like to display a notice to the user saying that the Flash file failed to download, and giving them some suggestions on how to get it to download (e.g., check security software settings, unblock Flash, etc.).  I would then also send a notification to myself notifying me that we had a "blank screen" incident, along with some debugging information about the client's browser.
If there was a way for me to know in JavaScript the results of the SWFObject embed attempt, I think I could do this.  Suggestions?
  -Josh

Well, an issue I've run into is that since my Flex app is full-viewport, there's nowhere for me to display an HTML message.  The Flash move displays on top of everything as usual.
So, even if I were able to work out a way to determine if the SWF failed to load, I wouldn't be able to display it.  But I suppose I could redirect the user to another page where I gave them some useful troubleshooting information.
Any any rate, this got me thinking--why is Flash movie displaying on top of everything--even if I delete the SWF file, so there is no Flash movie to download.  Hmm... right click on the big white viewport, and you get "Movie not loaded" in the Flash Player context menu.
So, even though the Flash move is not loaded, the Flash Player did start.  Which leads me to ask... is there a way to interrogate the Flash Player directly, and see if it loaded the movie or not?
Clearly the Flash Player is aware that the SWF failed to download.  It tells me right in the context menu, "movie not loaded."  The question is, can I programmatically interrogate the Flash Player from within JavaScript?
Suggestions?
p.s., I'm aware that I could change the WMODE to transparent to try and let my HTML message show through the SWF, but I want to avoid doing that at all costs :-) I've had too many problems in the past with subtle (and frustrating) errors when I change WMODE away from the default value of Window.

Similar Messages

  • How to detect whether browser's java script  disabled or not from server

    How to detect whether browser's java script disabled or not from server side

    I would use a hidden parameter created by a javascript. if this is null, javascript is disabled...

  • How to detect whether a database was created by Restoring (from SQL Server Enterprise Manager) or by Attaching (from SQL Server Enterprise Manager)

    Ours is a SQL Server Express Edition 2008-R2 - Windows Forms based application. We have a backup/restore utility provided with our software which performs some logical checks before restoring a backup to ensure that the backup is functionally valid.
    However, our clients often use the SQL Server Enterprise Manager utility to 1) Restore backups or 2) Attach data files (kept aside before formatting) directly. This type of action bypasses all our functional checks and allows the user to restore an invalid
    backup.
    We want to detect that a database was restored/attached and may be we will stop the software from loading if such a thing happened. We think that this information (attach/restore) should be available within some table of SQL Server itself but don't know the
    right location/query.
    If any change is required in our software to achieve the above, we are ready to do the same too, e.g. may be we need to store some data at some point of time to make the detection happen, please advise.
    So, how can we detect that
    A database backup was restored using SQL Server Management Utility
    (Note: MSDB.Restorehistory may not be a good option as we have often found this table blank for unknown reasons even after backup was restored and just in case user restores the MSDB from MSDB backup or MSDB template due to a data corruption, may be due to
    abnormal shutdown of system, then the RestoreHistory table data is gone)
    A database was created by attaching a data/log file using SQL Server Management Utility
    Any help in this regard is highly appreciated.
    Rajarshi
    ProjectServer 2007 Beginner

    Hi,
    For Enterprise edition, we can enable Auditing to audit BACKUP_RESTORE_GROUP in a server audit specification. However, SQL Server audit (fine-grained auditing) feature is not available for the SQL Server Express.
    Features Supported by the Editions of SQL Server 2008 R2
    http://msdn.microsoft.com/en-us/library/cc645993(v=sql.105).aspx
    When a database is attached, SQL Server ERRORLOG will record “Starting up database 'DBNAME'.”
    Using ALTER DATABASE OFFLINE and ONLINE will re-open the database files under the SQL Server, the SQL Server error log also contains the following informational message: “Setting database option ONLINE to ON for database 'DBNAME'.”
    Additional information:
    SQL Server Audit (Database Engine)
    http://msdn.microsoft.com/en-us/library/cc280386.aspx
    Tracy Cai
    TechNet Community Support

  • Bannerads.swf published successfully but banner not rotating in website

                                      ROBERT LEAHONG
    My bannerads.swf published successfully and the actionscript was approved by somebody
    at this forum.but the banner is not showing much less rotating.  It works with an ASP program
    (BANNERADS.ASP) and a affiliate Advertisement Access DAtabase (BANNERADSDBF.MDB).
    the same asp program used to rotatte bannerads in a frame. I removed the frame and let
    the program ( bannerads.asp) send information to flash swf file instead. well it is not working.
    what must I do , any help appreciated.

    Show the code that you are using and explain what you changed about it. Als, if the banner is not showing up at all, you should provide a url to the banner.

  • Was updating Flash drive says it was successful but will not work on daily games

    was updating flash drive & it said it was successful, but willnot work

    To help troubleshoot we'll need the following system information:
    Operating system
    Browser
    Flash Player version
    When reporting issues with video or audio, it's also helpful to get your system hardware and driver details.  Instructions for finding this information can be found here:
    Windows
    Mac
    Finally, sometimes video and audio problems are caused at a lower level and not directly related to Flash Player.  I recommend trying both of the links below to see how they perform.  If the problem exists with both, then Flash Player is most likely not the culprit as the HTML5 video link does not use Flash Player when playing.  You can verify the user of HTML5 by right clicking the HTML5 video and looking for the words "About HTML5" at the bottom of the context menu.
    HTML5 video
    Non-HTML5 video

  • How can detect certain text (String) was input in a JTextArea?

    Hi friends,
    while trying to simulate a telnet shell, i create a JTextArea and put all the input and output text (from telnet) in it. I want to do some info updating in another JPanel when user logs in. Hence I need to detect if user correct logged in, say, a prompt will appear in JTextArea, such as :
    [remote host]>
    I need here a Listener for detecting, could someone tell me how i can do it, or which Class or Interface or Methods i should use? Many thanks in advance!!!
    eedych

    I found something that I hope helps:
    The java.awt.TextArea could be monitored for changes by adding a TextListener for TextEvent's. In the JTextComponent based components, changes are broadcasted from the model via a DocumentEvent to DocumentListeners. The DocumentEvent gives the location of the change and the kind of change if desired.
    Example code :
    DocumentListener myListener = ??;
    JTextArea myArea = ??;
    myArea.getDocument().addDocumentListener(myListener);
    Just use the DocumentListener like any other listener. :) Good luck.

  • HT1766 how can I tell if I was successful in backing up my phone. Where do I find the information on my computer

    How can If I successfully completed backing up my phone.  Where on my computer do I find the backed up information.

    A backup is only for use in restoring your iphone. It does not contain all info like Contacts, itunes content,etc.  You cannot go look at the backup information.
    You should, be syncing with your computer regularly.
    iOS: About iTunes backups.

  • How to verfiy whether weblogic nodemanager is successfully started or not.

    I started the node manager using the below format.
    startNodeManager.sh pebblz10 3001
    Could any one tell me whether it is succesfully started or not.
    The log file which is generated after executing is also listed below.
    FYI ::
    chicago% pwd
    /wlsuite/om/cm/apps/BEA/SunOS5.10/wls10mp1/wlserver_10.0/server/bin
    chicago% startNodeManager.sh pebblz10 3001
    CLASSPATH=/ipf/tools/SunOS5.8/bea/wls10mp1/patch_wls1001/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/ipf/tools/SunOS5.8/bea/wls10mp1/jdk150_11/lib/tools.jar:/ipf/tools/SunOS5.8/bea/wls10mp1/wlserver_10.0/server/lib/weblogic_sp.jar:/ipf/tools/SunOS5.8/bea/wls10mp1/wlserver_10.0/server/lib/weblogic.jar:/ipf/tools/SunOS5.8/bea/wls10mp1/modules/features/weblogic.server.modules_10.0.1.0.jar:/ipf/tools/SunOS5.8/bea/wls10mp1/modules/features/com.bea.cie.common-plugin.launch_2.1.2.0.jar:/ipf/tools/SunOS5.8/bea/wls10mp1/wlserver_10.0/server/lib/webservices.jar:/ipf/tools/SunOS5.8/bea/wls10mp1/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/ipf/tools/SunOS5.8/bea/wls10mp1/modules/net.sf.antcontrib_1.0b2.0/lib/ant-contrib.jar::/ipf/tools/SunOS5.8/bea/wls10mp1
    + export CLASSPATH
    + export PATH
    + cd /ipf/tools/SunOS5.8/bea/wls10mp1/wlserver_10.0/common/nodemanager
    + set -x
    + [ 3001 !=  ]
    + [ pebblz10 !=  ]
    + /ipf/tools/SunOS5.8/bea/wls10mp1/jdk150_11/bin/java -client -Xms32m -Xmx200m -XX:MaxPermSize=128m -Xverify:none -Djava.security.policy=/ipf/tools/SunOS5.8/bea/wls10mp1/wlserver_10.0/server/lib/weblogic.policy -Dweblogic.nodemanager.javaHome=/ipf/tools/SunOS5.8/bea/wls10mp1/jdk150_11 -DListenAddress=pebblz10 -DListenPort=3001 weblogic.NodeManager -v
    + set +x
    If started, how can i access the node manager, from which location.
    I see a another nodemanager.sh in WL_HOME/server/bin. Is this script i need to execute the node manager. Please let me know.
    Any response is very helpful to me.

    Log into the weblogic console for one of the domains controlled by that nodemanager. I know there's a page that checks nodemanager connectivity. It's either in the "Server" or "Machine" area, I don't remember.

  • How can I login in to icloud and retrieve a note which I have accidentally deleted on my ipad?

    I Have accidentally deleted a note from my ipad  and I know it has been backed up yesterday onto icloud but I cant seem to login into icloud to retrieve the note? the icloud.com address just throws up Add Icloud to this device, when I know it is already on it!

    You can't use mobile Safari on a device to log into icloud.com.  To get to your data, you must use the associated apps.  For contacts, use the Contacts app.  Only with a computer's browser can you log into icloud.com.

  • How I can examine whether the hardware was successfully installed

    hallo evryone,
    one week ago, i got the testing set of NI and i have installed the software for the hardware (PXI-4110 , PXI-4065, PXI-GPIB), however if I want to use the DMM , I get an error message "NO DEVICE found"
    is there any  possibility  to examine if the hardware was successfully installed or not
    thank you in advance
    Toni

    Hi Matthew
    i used the measurement & Automation like u told me and i found the name of the 2 Cards with a strange (X) is this normal or i have to reinstall the software again !!!!
    plz take a look at the attached Pic. to understand what  i mean
    thank you
    Toni
    Attachments:
    Pic1.JPG ‏111 KB

  • How to detect is response deliverred to the client?

    Hello everybody...
    I have problem and don't know how to solve.
    My server application runs on apache tomcat 5.5, and deals with some important data transactions.
    After getting the request, server has 5 sec. to send response, after that clients will close their sockets.
    The connection can be very slow, (GPRS), so it is very possible that transaction will not be over in that time.
    I need the way to find out, on my server side, when response isn't get to client in 5 sec.
    Is there any idea how to do that?
    Sorry if my English is not so perfect.
    Thanks

    Yes, but that way of write timeout means that write have 5 sec to send buffer to the underlying protocol.
    I can't know if TCP succeed or not to deliver data in that short time. I think write is asynchron.
    Problem is how to detect when client is disconnect and data are not delivered.
    Once again, sorry if my English is not so good.

  • How to ensure whether the row is successfully inserted

    HI All,
    Is there any means of ensuring whether the row was successfully inserted or not?
    I want to insert a row into a table and if it is successfully inserted I want to return the return code as 0 else some error code.
    Also I am selecting a value into a variable from the join of 3 records and the select is supposed to return a unique value.
    What I want to ensure is if at all it is returning a row of not and if not then pass other value(say null)
    What I have done is I have taken the result into a cursor and I loop through it because I know that the cursor proceeds if it finds a null as the resultant row. But I know it is not a good method.
    What else can I do?
    Regards,
    Amit

    a basic example would look something like this
    Create Or Replace Procedure Your_Procedure_Name (pErrNum Out Number) Is
    Begin
      Insert Into Your_Table_Name
       (col1, col2, col3)
      Values
       (pCol1, pCol2, pCol3);
      -- return 0 means successfull
      pErrNum := 0;
    Exception
      When Others Then
        -- return the errorcode
        pErrNum := SQLCODE;
    End;
    /

  • How do I tell if a mysql update was successful?

    How do I tell if a mysql update was successful?
    I need to know if an update was run or if the record was not found....  is there some way that coldfusion can use that traps success/fail resoponses from mysql [linda like myquery.RecordCount ]?
    basically I am trying to update a row, if no row was updated - the record must not exist so I then need to do an insert...
    -any ideas?
    -sean

    here is the test query:
    <cfquery name="qry" datasource="#application.dsn#">
         update DISC_CUST set DISC_PriceChange = '222222', DISC_TaxablePriceChange = '2222222'
         where DISC_ProdID = '1129'
    </cfquery>
    <cfdump var="#qry#" />
    the error is "Variable  QRY is undefined."
    if you remove the dump the debug results for the query show:
              Debugging Information
    ColdFusion Server Enterprise
    8,0,1,195765
    Template
    /Assets/Import/index.cfm
    Time Stamp
    19-Jul-10 02:19 PM
    Locale
    English (US)
    User Agent
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;  rv:1.9.2.4) Gecko/20100611 Firefox/3.6.4 ( .NET CLR 3.5.30729)
    Remote IP
    192.168.1.100
    Host Name
    192.168.1.100
    Execution Time
    Total Time
    Avg Time
    Count
    Template
    5 ms
    5 ms
    1
    /data/vhome/xxxl/httpdocs/Assets/Import/index.cfm
    3324 ms
    STARTUP,  PARSING, COMPILING, LOADING, & SHUTDOWN
    3329 ms
    TOTAL EXECUTION  TIME
    red =  over 250 ms average execution time
    SQL  Queries qry (Datasource=dsn, Time=1ms,  Records=0) in  /data/vhome/xxx/httpdocs/Assets/Import/index.cfm @  14:19:19.019
         update DISC_CUST set DISC_PriceChange = '222222', DISC_TaxablePriceChange = '2222222'
         where DISC_ProdID = '1129'

  • How to detect the end of a loaded swf file

    Hello Guys
    This is my first time on this forum, come here with a great
    hope
    I have loaded a picture file (jpeg) and a video file (swf)
    into the main flash file using xml
    on frame 3, I load the picture and on frame 7, I load the
    video, there is a stop action on frame 6
    Now when the flash is executed the picture is displayed ( it
    says "Click here to view the video")
    when the user click the picture , the video is loaded and
    starts to play ---- so far everything is working fine
    now what I want to do is, once the video finishes playing (
    not stoped) I want to display the picture again
    can you tell me how to detect the end of an external loaded
    swf files,
    Please help me
    Thanking You
    Shriram

  • How do I tell if some kind of malware has been installed on my computer? My daughter answered the phone and they had her go to a site for ammyy admin.  I don't think she was successful at doing what they wanted but how do I make sure?

    I don't know how to tell if the phone scam that was pulled on my daughter was successful or not? They had her go to a site for Ammyy Admin. My husband who was home at the time and not at all computer literate thinks that it wasn't successful but how do I tell for sure?
    Thanks!!

    It's not very likely that any harm came of this. It sounds as though they were trying to get your daughter to enter some personal information into the website. If she did not do this then don't lose any sleep over it.
    If she did, just change whatever passwords that might have been associated with the personal information she provided.
    If your computer starts exhibiting some heretofore strange behaviour, pay attention to it so that you might describe what it is. As I say this is unlikely to happen.

Maybe you are looking for