ActionScript 3.0 :: External Interface / Javascript Call Working In IE / Safari Not FF / Chrome

Apr 24, 2011

I'm hitting a brick wall here, and it's driving me mad. Used to use ExternalInterface to call Flash functions from Javascript all the time, and now under CS5 (and the way it uses object id's instead of embed in html) it's stopped working for me in certain browsers. I put together a really simple program that has the person click a link in the browser that activates a javascript function that simply sends some text in to Flash to display in a TextArea. Here's the as3 code:

[Code]....

View 9 Replies


Similar Posts:


ActionScript 3.0 :: Call Javascript Function With JSON Through External Interface?

Jun 6, 2010

I need to call a function in JS that's expecting a JSON object. Can I do this from External Interface? The company's example (after the include file url) in HTML looks like this:

//there's an js include URL earlier//
Shopwithme.Initialize({
"id":"prod1234",

[code]...

But, I need to dictate these vars through Flash. How do I call this function using External Interface?This is my EI code, but I'm obviously off base, since it's not working:

ExternalInterface.call("Shopwithme.Initialize",[{ "id":"prod1234",
"type":"2","URL":"http://www.somelink.com"}]);

What do I need to do to call this javascript?

View 2 Replies

JavaScript :: External Interface On Flash Player Not Working On CDN

Oct 5, 2010

I have a flash player with an external javascript interface: reloadData() I'm calling that function via Javascript when editing information on the page - basically to keep data on the page and in the player in synch. The reloadData() function works fine when the player is hosted locally. When we move it to the CDN (Amazon Cloudfront), the player loads successfully, but the external javascript interface no longer works - console.log(player) reveals the following:

<object type=,"application/x-shockwave-flash" data="[our_cloudfront_url].swf" width="920" height="404" id="player" style="visibility:visible;">
Uncaught TypeError: Object #<an HTMLObjectElement> has no method 'reloadData'

I know there are a lot of things that behave differently when working with items on a CDN, but we're using a CNAME to point to the cloudfront distribution
(buildid.ourdomain.net => distributionid.cloudfront.net)

View 1 Replies

Javascript :: External Interface Calls To Flash Not Working In IE9?

Jan 31, 2011

We have a flash game embedded in a web page (using SWFObject v2.2) and there are some links on the page that call into the flash in the following manner:

window.document["flashObjectId"].flashMethod();

This has worked great on all browsers we have tried including IE7 and 8, however on IE9 it generates the following error: "SCRIPT438: Object doesn't support this property or method".

It does work in compatibility mode so I tried adding a meta tag to tell IE9 to use compatibility mode by default, however that didn't work because our game runs in an IFrame within Facebook.

I have tried referencing the flash object every way I could think of in the Javascript but I always get that same error message in IE9.

View 3 Replies

ActionScript 3.0 :: Flash Site Not Working Fully In Chrome And Safari?

Sep 1, 2010

I produced a website a year ago now, and up until now it has been working fine. My client brought to my attention today that there are suddenly problems when viewing the site in chrome, IE and safari. You cannot get past the landing page as the 'enter' button is not there despit the graphics being in the right place.I have updated to flash player 10.1, and opened, published and uploaded the flash file in a newer version of flash to see whether that helped, but no go.

AS3 on 1st frame:

Code:
stop();
addEventListener(Event.ENTER_FRAME, loaderFF);
function loaderFF(e:Event):void{

[code]....

View 6 Replies

ActionScript 2.0 :: Flash Site Not Working In Google Chrome Or Safari

Jan 25, 2012

I had designed and setup a flash website for a client a while ago and just recently they emailed me saying their website doesn't work in Google Chrome or Safari. I have SWF Object 2 on the website and that doesn't seem to help. The flash component of the website doesn't show up at all yet works fine in IE and FF. What could be the issue here?

View 2 Replies

ActionScript 2.0 :: Addressing Flash Objects In Safari (external Interface)?

Jun 2, 2008

Working on a site that uses external interface to control the appearence of a number of buttons, setting color and text. The whole deal works fine in Firefox and IE (after vigorous debuggging), but I can't seem to address the objects correctly in safari. The swfs are hard coded in and I'm using a function to find the reference to the object and then using an EI addcallback to set the values.Here some javascript for the main functions:

Code:
function getMovieName(movieName) {
if (window[movieName]) {

[code].....

View 2 Replies

Javascript :: Sending A Array Not Working In Safari For Windows

Jan 28, 2011

I am sending over a JavaScript Array to ActionScript. The JavaScript code is as follows:

[Code]....

When I run this on Safari for Windows, arrayInput is null. However, this method works fine in Safari for Mac, IE, FF, Chrome, and the variable holds the actual array.

View 1 Replies

Javascript :: GetElementById Not Working In Google Chrome Extension For <embed>

Mar 8, 2011

In my Google Chrome extension content script I have the following:

[Code]...

I'm using Chrome version 10.0.648.127 on a Mac, but I also tried it on a PC with the same results

View 2 Replies

ActionScript 3.0 :: External Interface Call Doesn't Work With Function That Is On External JS File

Apr 17, 2012

I am using in AS3 "External Interface ". When I call the JS function that is on the same page as swf everything works fine.

I added a link in the html page to an external JS file, when I move the JS function to the external JS file the website crushes.

I would prefer to have all my JS functions on an external file so I can use them in the future in other project and it also makes it easier for me to update the site.

how to call a JS function that is on an external file from AS3?

View 6 Replies

Javascript :: External Interface And Swfobject.js?

Dec 15, 2011

Several months ago for a project at work i developed a video player using flash, external interface and swfobject.js. I used external interface to facilitate communication between javascript and actionscript. This works great. Currently I am working on an extension to this that requires me to extrapolate logic from what i already written. I am using the same swf file in both applications, but in the extension i can't get the flash object to recognize my calls. Since i am using the same swf object i know that my problem is in the javascript, i just don't know where. I am using the JQuery Library. Without further adieu here's my code.

[Code]...

View 4 Replies

Professional :: AS 3.0 - Using External Interface Call To Open PDF

Oct 7, 2010

Using Flash - AS 3.0: I am trying to use ExternalInterface.call to open a .pdf file - but it is not working - nothing is happening...

ExternalInterface.call ("window.open","diagrams/v1/crh.pdf", "WindowName", params);
But this line DOES work - call an .html file to open.
ExternalInterface.call ("window.open","m5_quiz/v1/quiz.html", "WindowName", params);

I can't find any information that says this should or shouldn't work - it seems to me it should open it. To get around this - I have been using 'navigateToURL' to open the pdf file - but that triggers the pop-up blocker - using the External Interface call does not.

View 4 Replies

ActionScript 2.0 :: SWF Object / External Interface Call

Jul 26, 2007

I am currently just finishing a project and I am having a big time problem with an ExternalInterface call. My application runs fine but when the javascript call is being made from flash using external interface, IE is going from the "Done" message, to showing the "!" icon, with "error on page" as the message. There is no error that is showing up in Firefox.

The current error I am seeing is an 'Unterminated String Constant', which wouldn't be a problem except for that it appears on line 1... which is [URL]

View 1 Replies

Javascript :: External Interface Callback Not Listening?

Jul 14, 2011

I'm trying to get javascript to talk to flash, but I haven't been able to get it to work.I've gotten flash to talk to javascript, but not the other way around. It seems as thought flash isn't listening to the javascript, or I'm doing something wrongPart of the AS3 to initially call the js:

ExternalInterface.call("showGal", slastSelectedNumber);

The js i'm trying to use is:

function showGal(dPicture) {
document.getElementById('fullsizegallery').style.display = 'block';
document.getElementById("flashGalleryContent").someFunctionName(dPicture);

[code].....

View 1 Replies

Dom :: Call Dynamically Created Flash External Interface In IE?

Jan 28, 2010

What I have:A swf exports a function via ExternalInterfaceJavascript creates new embed object and adds it to the documentCalling flash functions works fine in other browsersCalling flash functions will fail in IE 8Example of exporting functions in swf:

flash.external.ExternalInterface.addCallback("isActive", ...
Example of creating the embed object:
var b = document.createElement('embed');

[code].....

View 4 Replies

Flash - IE Popup Alert When Using External Interface Call

May 30, 2010

Everytime I try to do even an
ExternalInterface.call('alert','abc');
(Which will work on every browser) I get an
object doesn't support this property or method
After the alert appears. It even happens in the HTML generated by flash without me touching it...

View 1 Replies

ActionScript 2.0 :: Call A Window.close With External Interface?

Oct 14, 2009

Currently I'm trying to call a window.close with external interface. It works fine, however, I also have a window.beforeunload call in my javascript so the close button ends up calling two windows. One is the "this page is trying to close...blah blah blah" and the other is the custom one i wrote.

Is there anyway to call onbeforeunload combined with window.close from external interface so that i only get one warning?

View 2 Replies

Flex :: Listening To Events In Javascript Without Using External Interface?

Jul 6, 2011

I need to register events in flex and listen to them in java script. Is there any way other than using external interface.

View 1 Replies

Javascript :: Is External Interface In Flash Async Or Sync

Jan 10, 2012

I will call flashObject.httpRequest to complete a http request via flash. The problem is there is no reference about httpRequest is an async method or sync. It is important for my application.

private function httpRequest (uri:String, param:String="", method:String="GET"):void
{
var

[Code]....

View 1 Replies

Javascript :: Call An External Javascript On Frame Action/change?

Aug 26, 2011

i have a flash movie with 2 frames. and i would like to call an external javasscript function on frame action.

[Code]...

View 2 Replies

ActionScript 2.0 :: External Interface - Call A Popup Window On A Button

Sep 3, 2009

I am trying call a popup window from actionscript on a button and am having trouble I am using following: import flash.external.ExternalInterface; Then on the button in Flash: on (release) { ExternalInterface.call("myPopup.start", "#contactForm"); } but I don't know if ExternalInterface will properly call the start() method.... am a little lost The page is @ [URL] and the link at the bottom "CLICK HERE FOR FORM" is what needs to be incorporated into a flash button on the SWF.

View 0 Replies

Actionscript :: Way For Javascript To Command Flash Right When Its External Interface Is Ready?

Jan 22, 2011

Is there a non-polling way for Javascript to command Flash right when its external interface is ready? In Actionscript, I've registered a function for Javascript to call:[code]SWFObject lets you run code when Flash has been successfully embedded through a callback. I attempt to run $ ('flash Player'). doStuff in this callback, but it claims it's undefined. It seems that Flash needs some time to boot up its external interface. So I've been using a polling hack to find out when the external interface is ready:[code]There's a visually perceptible delay in the execution of doStuff and it makes my overall code structure muddy.

View 1 Replies

ActionScript 3.0 :: External Interface: Pass Variables To Flash Using Javascript?

Sep 6, 2010

I am looking for a simple and straightfoward example of how I can pass the value of a variable into flash using javascript.Specifically, I'd like to use javascript to pass the filename of an external video file that I would like to load into my flash movie.I'd also like to call a function in the SWF that plays the movie once the filename as been passed to the flash movie.External Inferface looks like the way to goI've found a few decent AS2.0 examples, but converting them to AS3.0 has proven difficult and many of the examples are much too complex for what I am trying to do.

View 4 Replies

ActionScript 3.0 :: External Interface Not Working In IE7?

Sep 16, 2009

I'm having a problem with Flash and Internet Explorer. I'm trying to close out a browser window with
 
//as code ExternalInterface.call("closeWindow");[URL].. Of course this works in all other browsers except IE, the error that I am getting is:'null' is null or not an object

View 9 Replies

ActionScript 2.0 :: External Interface Call - Apply Code To Multiple Buttons

Sep 29, 2009

completing the code to get a return value from JavaScript to flash, but all the code was in a frame. My issue is I need to apply this code to multiple buttons, and then have them navigate to the appropriate frame. I thought I could put some of the code on the buttons themselves, or possibly I could call each button and keep all the code in frame one.....the external interface call function and the button functions....btn1, btn2; etc......I am not to verse in code and need to know what and how the best way to do this would be.

[Code].....

View 16 Replies

Actionscript 3 :: External Preloader Working In Flash CS5 But Not In Browser (chrome - Ff Or IE) - Sticks At 100%

Feb 6, 2011

I am using an external preloader (loader.swf) to load the movie (ayproj.swf). The preloader works fine when running the .swf file in flash player and when simulating a download in flash cs5 but when i upload it to the internet and open the index.html in which the flash is in a 100% frame it either sticks on 100% (Ff and IE) or just says "pl" (chrome) - the initial text in the dynamic percentage text box.

[Code]...

View 1 Replies

ActionScript 3.0 :: External Interface - JS > Flash Not Working

Aug 20, 2010

Having a problem trying to get the external interface working with as3. My flash file has 2 input text boxes with instances of 'received_ti' and 'sending_ti' and a button with instance of 'send_button'. My html code has a simple form with 'sendField' and 'receivedField' inputs and a submit with a value of 'Send'.

At the moment i can get the flash file to send text into the html 'receivedField' input but cannot send text from html into the flash file's 'received_ti' text box.

[Code]....

View 1 Replies

Actionscript 3 :: External Interface Callback Is Not Working?

Jun 12, 2011

I have been at it for two days now and have not been able to resolve this issue. I am trying to call an AS3 function from JavaScript via ExternalInterface API which is simply not working at all. If I to call a JavaScript function form html loaded swf, it works beautifully.[code]

View 1 Replies

FLV Not Displaying In Chrome Or Safari But It Displays Okay In Latest IE And Firefox?

Dec 13, 2009

the following page should include two FLV files - one near the top of the page and one near the bottom.

[URL]
 
Works properly in IE8 and Firefox 3.5.5 - however in the latest Chrome and Safari only the topmost FLV displays. FLV embedded with Dreamweaver CS4.

[URL]

View 2 Replies

ActionScript 1/2 :: Unable To Use GetURL If JS Is Disabled In Chrome And Safari?

May 30, 2010

I'm working on a masthead for a site, which uses the simple getURL command to load a page on the same site, code is:
 
on (release) {
getURL("link.html", "_top");
}
 
Now, this works fine in all browser with JS enabled, but when JS is disabled in Chrome and Safari it does nothing. Strangely enough, if the target is "_blank" it works.I've tried all 4 different targets, as well as using a variable to hold the link.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved