Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Press Spacebar or Enter to activate and use this control

Posted on 2006-06-07
10
Medium Priority
?
8,296 Views
Last Modified: 2012-05-05
Is there a way to keep my user from having to deal with the "warning" that comes up when they encounter a swf file. It interrupts the experience and unless you know that it's no big deal, your prone to think it's a problem.

Is there a way around it or is that just part of the Windows environment?
0
Comment
Question by:brucegust
  • 6
  • 4
10 Comments
 
LVL 7

Expert Comment

by:Ramy_atef
ID: 16857577
To fix the problem, please follow these steps:

1) Just below the last <object> in your HTML page, insert the following Javascript:

<script type="text/javascript" src="ieupdate.js"></script>

2) Open a new document in Notepad or your HTML editor, and copy & paste the following content into it:

theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}

3) Save this file as ieupdate.js

4) Upload both files to your webserver, and the problem should be solved.

0
 
LVL 7

Expert Comment

by:Ramy_atef
ID: 16857582
0
 

Author Comment

by:brucegust
ID: 16858169
Heres' what I did:

<OBJECT id="roppage" height="715" width="800" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000">
      <script type="text/javascript" src="../ieupdate.js"></script>
      <embed src="Birthday.swf" width="800" height="715"
      Loop=falseQuality=high" bgcolor="#EFD6D2"
      type="application/x-shockwave-flash"> </embed>
      </OBJECT>

I've got the "ieupdate.js" file uploaded, but there's no change in the performance of the page.

What am I missing?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 7

Expert Comment

by:Ramy_atef
ID: 16859623
NO.. u don't do it like that :)
it should be like this

<OBJECT id="roppage" height="715" width="800" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000">
     <embed src="Birthday.swf" width="800" height="715"
     Loop=falseQuality=high" bgcolor="#EFD6D2"
     type="application/x-shockwave-flash"> </embed>
     </OBJECT>
<script type="text/javascript" src="../ieupdate.js"></script>
0
 

Author Comment

by:brucegust
ID: 16860226
Still ain't working...

We're close, but something's still awry...
0
 
LVL 7

Expert Comment

by:Ramy_atef
ID: 16860292
Hi,
I've noticed that u wrote
<script type="text/javascript" src="../ieupdate.js">

are you sure that the ieupdate.js are there in the parent folder of this html ?
0
 

Author Comment

by:brucegust
ID: 16860316
Yep, and just to be sure I just did a quick test by putting the js file in the same directory, then altering the default page to refer to it as opposed to the file in the home directory.

Same thing... it's not working.

My ieupdate.js file looks like this:

theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}

Do I need a header or something like that to preface the code?
0
 
LVL 7

Expert Comment

by:Ramy_atef
ID: 16860333
would u send me the swf, the html please
0
 

Author Comment

by:brucegust
ID: 16860351
<%@ Language=VBScript %>

<%

set DBConn = Server.CreateObject("ADODB.Connection")
DBConn.Open session("dbConn_ConnectionString")
set rsCustomer = Server.CreateObject("ADODB.Recordset")
sql = "select TOP 6 * from PerfectPictures where List = 'Birthday' AND Display='Landscape'"
rsCustomer.open sql,dbconn,3,3

set conn=nothing

%>

<html>
<head>
<title>The Perfect Party Birthday Party Page</title>
<link rel="stylesheet" type="text/css" href="../style.css">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function formHandler(theSel){
  var URL = theSel.value;
window.location.href = URL;
}
// End -->
</SCRIPT>

<SCRIPT LANGUAGE="JavaScript">

function popItUp() {
    var newWindow = open("Gallery.asp", "secondWindow", "scrollbars, width=350,height=250");
}

</SCRIPT>

</head>

<body background="../Images/swirlbackground.jpg">

<table width=100% border="0" cellspacing="0" cellpadding="0" align="center" height=100%>
<tr>
<td colspan="3">
<IMG SRC="../Images/spacer.gif" height="25">
</td>
</tr>
<tr>
<td>
<IMG SRC="../Images/spacer.gif">
</td>
<td valign="top" align="center" width="800">
      <table border="0" align="center">
      <tr>
      <td align="center">
      <OBJECT id="roppage" height="715" width="800" classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000">
      <embed src="Birthday.swf" width="800" height="715"
      Loop=falseQuality=high" bgcolor="#EFD6D2"
      type="application/x-shockwave-flash"> </embed>
      </OBJECT>
      <script type="text/javascript" src="ieupdate.js"></script>
      </td>
      </tr>
      </table>
</td>
<td>
<IMG SRC="../Images/spacer.gif">
</td>
</tr>
<tr>
<td>
<IMG SRC="../Images/spacer.gif">
</td>
<td width="800">
      <table>
      <tr>
      <td>
      Parties should be full of fun, not stress.
      <P>
      Allow us to take care of every detail for your next event. Our custom Birthday Parties are nothing short of sensational.
      <P>
      <b>Catering...</b><BR>
      Our full service planning allows you to enjoy your event to the fullest. Careful consideration is given to both taste and             presentation when choosing a caterer for your event.
      <P>
      <b>Creative Detail...</b><BR>
      Finishing design touches create a special flare for your event.
      <P>
      <b>Venue Selection...</b><BR>
      Indoors or out, your space will be uniquely you.
      </td>
      <td valign="top" width="250" align="center">
            <table align="center" width="250">
            <tr>
            <%
            ct=0
            Do Until RSCustomer.EOF
            %>
            <td align="center" valign="center">
            <% if RSCustomer("Display") = "Landscape" then
            width = "100"
            height = "71"
            else
            width = "71"
            height = "109"
            end if
            %>
            <A HREF="../Images/Photos/<%=RSCustomer("URL") %>" target="_blank">
            <IMG SRC="../Images/Photos/<%=RSCustomer("URL") %>" width="<%=width %>" height="<%=height %>" border="0">
            </td>
            <%
            ct = ct+1
            if ct >= 2 then
            ct = 0
            %>
            </tr>
            <tr>
            <%
            end if
            RSCustomer.MoveNext
               Loop
                %>
            </tr>
            <tr>
            <td colspan="2" align="right" class="Menu">
            Click <a href="#" title="Gallery" onclick="popItUp();return false" class="Menu">here</a> to view more photos...&nbsp&nbsp&nbsp&nbsp
            </td>
            </tr>
            </table>
      </td>
      </tr>
      </table>
</td>
<td>
<IMG SRC="../Images/spacer.gif">
</td>
</tr>

      
</table>
            

</body>
0
 
LVL 7

Accepted Solution

by:
Ramy_atef earned 2000 total points
ID: 16860393
things looks good to me ..

mmm here are an automatic way to do it from flash itself..

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=7c29e252

you won't need to write anything yourself..

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

578 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