Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
IS SWFOBJECT.js APPLICABLE TO ALL?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ayu  
View profile  
 More options Nov 11 2009, 4:28 am
From: ayu <ayusu...@gmail.com>
Date: Wed, 11 Nov 2009 01:28:58 -0800 (PST)
Local: Wed, Nov 11 2009 4:28 am
Subject: IS SWFOBJECT.js APPLICABLE TO ALL?
I followed everything here:

http://blog.circlecube.com/wp-content/uploads/2008/02/ActionscriptJav...

and it is working in IE now. However, if I apply it to my own swf
(which works fine in FF), it is not working in IE. I get the error:
Object doesnt support this action.

Here's my HTML code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Actionscript Javascript Communication from Circlecube</title>

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

<script language="javascript" >

function recieveTextFromFlash(t) {

        document.getElementById('htmlText').value = t;

}

</script>

</head>

<body>

<table width="100%" border="0" cellspacing="0" cellpadding="0">

  <tr>

    <td width="400"><h1>From <a href="http://
blog.circlecube.com">CircleCube.Com</a></h1>

      <div align="center">Actionscript Javascript

      Communication</div>

      <form id="form1" name="form1" method="post" action="">

      <textarea name="htmlText" id="htmlText" cols="50" rows="15"> </
textarea>

      <br />

      <input type="button" name="sendToFlash" id="sendToFlash"
value="Send Text To Flash" onclick="getElementById('flash').accessKey
(htmlText.value); document.getElementById('htmlText').value = ''" />

    </form>

      Return to the post: <br />

      <a href="http://blog.circlecube.com/2008/02/01/actionscript-
javascript-communication/">http://blog.circlecube.com/2008/02/01/
actionscript-javascript-communication/</a></td>

    <td>

    <script type="text/javascript">

var flashvars = false;

var params = {};

var attributes = {

  id: "flash",

  name: "flash"

};

swfobject.embedSWF("PELTactivity.swf", "swf", "450", "450",
"9.0.0","expressInstall.swf", flashvars, params, attributes);

</script>

    <div align="left" id="swf">

    <!--<embed src="PELTactivity.swf" id="flash" quality="high"
scale="exactfit" width="450" height="450" name="squambido"
align="middle" allowscriptaccess="always" type="application/x-
shockwave-flash" pluginspage="http://www.macromedia.com/go/
getflashplayer"/>-->

    </div></td>

  </tr>

</table>

</body>

</html>

I made some changes in the .FLA file too. But it is working in FF
perfectly so I guess the actionscript is not a problem?

import flash.external.*;

var methodName:String = "accessKey";
var instance:Object = null;
var method:Function = recieveTextFromHtml;
var wasSuccessful:Boolean = ExternalInterface.addCallback(methodName,
instance, method);

function recieveTextFromHtml(t) {
if (t=='f3'){
        ExternalInterface.call("clue(2)");
        gotoAndStop(4);

}

if (t=='enter'){
        ExternalInterface.call("check(1)");

}
}

Please super help me... Im really confused with IE, swfobject, and
javascript.

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aran Rhee  
View profile  
 More options Nov 11 2009, 7:09 am
From: Aran Rhee <aran.r...@gmail.com>
Date: Wed, 11 Nov 2009 23:09:24 +1100
Local: Wed, Nov 11 2009 7:09 am
Subject: Re: IS SWFOBJECT.js APPLICABLE TO ALL?

Wasn't this already answered in your other thread?

If you (still) are confused on what you should do, check out Philip's
tutorial:

http://pipwerks.com/lab/swfobject/ExternalInterface/2.0/index.html

<http://pipwerks.com/lab/swfobject/ExternalInterface/2.0/index.html>Aran


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
aYu-SuiTs  
View profile  
 More options Nov 11 2009, 7:58 am
From: aYu-SuiTs <ayusu...@gmail.com>
Date: Wed, 11 Nov 2009 04:58:48 -0800
Local: Wed, Nov 11 2009 7:58 am
Subject: Re: IS SWFOBJECT.js APPLICABLE TO ALL?

Practising this:
http://blog.circlecube.com/wp-content/uploads/2008/02/ActionscriptJav...

was already done. Now, I tried replacing it with my own file and it is not
working in IE again;.  Thanks for the tutorial. Ill check.

--
aYu-SuiTs

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google