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


Similar Posts:


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 :: 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

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

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 - 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

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

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

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

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

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 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

ActionScript 3.0 :: Control A Flash Video Player With External Javascript Commands Using 'ExternalInterface.addCallback'

Mar 26, 2009

I'm trying to control a Flash video player with external Javascript commands using 'ExternalInterface.addCallback' but I'm not having any success. Here is the HTML code:

[Code]...

View 1 Replies

Javascript :: Looking For Wii Compatible Javascript Flash Mp3 Player?

Oct 24, 2009

I am looking for a flash mp3 player that will work within the Opera-based browser on the Wii. The player needs to be javascript enabled (support methods like play, stop etc.) The mp3 tracklist will be built dynamically using ajax on the same page as the player so it must trigger an event when a track finishes playing (or at least provide functionality of some kind to indicate that it's time to start the next track). Does anyone know of such a player?

[Code]...

View 4 Replies

User Interface - Continuous Flash Music Player While Navigating Site

Jun 16, 2010

I have a site that includes a Flash music player integrated into the layout. I want users to be able to navigate around the site without interrupting the music. I've done plenty of research and thinking and the following are the options I came up with (keeping in mind I want to be as SEO friendly as possible).

AJAX: I set up a version that changes the main content div to whatever nav link they click, thereby not interrupting the Flash player. I set it up in the proper search-engine-friendly manner with direct links and JQuery/Ajax functions. If someone goes to site.com/ and clicks the Contact nav link, it loads what's in the main content div on site.com/contact.php into the main content div and changes the URL bar to site.com/#Contact. The same goes for if they go to site.com/contact.php and click About in the nav, it loads the About content and changes the URL bar to site.com/contact.php#About. Obviously this opens up a whole new can of worms with AJAX and hash navigation/history issues, and I would end up with people possibly linking to things like site.com/contact.php#About (which I think looks terrible and can't be too great for SEO). Store the Flash player vars somewhere and reload them with the page: I'm not sure how to go about this, but I thought about keeping my regular navigation without AJAX and have it so when a user clicks a nav link, before it changes pages it stores the Flash player vars (current song and song position) somewhere, then loads them into Flash when the new page loads. Something with an iframe? Good alternative to a Flash player that will work for this type of application?

View 4 Replies

ActionScript 3.0 :: Loaded External MP3 Player, StartDrag Not Working

Oct 23, 2010

all of the other buttons on an external movie are workign but the volume slider is not...

when i load the external file (the mp3 player) it works fine.

Code:
/* volumeStartDragging(event:MouseEvent):void
* Returns a mathematical value that we can use to adjust the volume
* the value is the relation of the volume ball to the line

[Code].....

View 1 Replies

Actionscript 3 - Flash Player Is Not Working In Domain / But Working If I Provided IP

Oct 14, 2010

I have developed a player in AS3. It is working if i provide the IP of the website. But, it is not working when i provide the full domain name. Even, i provide the crossdomain.xml for global access.

View 1 Replies

ActionScript 3.0 :: Looking For Flash To Function Calling External Interface Using It?

Aug 18, 2010

I am looking for flash to javascript function calling external interface using AS3[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

AS3 :: Flash - Remove External Interface Callback During Loading?

Oct 12, 2011

I have a series of 10 external interface callbacks that are called through javascript and load mp3 files. The problem is, someone is able to click these while my pre-load function is running and it causes multiple files to load. Is there a way to disable the callbacks while the pre-load function is running?

ExternalInterface.addCallback("receiveText1", receiveText1);
function receiveText1(value:String):void {
channel.stop();
channel2.stop();

[code]....

View 1 Replies

ActionScript 3.0 :: External Interface Support For AIR(HTML) To Flash?

Feb 14, 2009

Normal Externalinterface methods do not work if i wrap my swf(html) in AIRpackage.Javascript to flash vice versa.Anyone have a workaround to make it work?

View 3 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 :: AJAX Or Something Else For A Web-based Demo Interface?

Dec 3, 2009

My company has some software which we use to acquire data and interact with some hardware. If we wanted to put a mockup on a website which allows the user to get a feel for the UI (gather some data, change some settings etc.), what are some good methods to do so?I'm thinking either some clever javascript or flash. I've done some JS before but only to style elements of a page. I did some stuff with flash about 8 years ago and found it really fiddly.

So my questions; Are javascript/flash reasonable solutions for this or is there something better. What is likely to be the simpler/quicker route? Is there a better way to achieve the end result?] The demo doesn't need real data, just some fake/dummy example stuff is fine.

View 3 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

ActionScript 3.0 :: Flash - Access Player.x And Player.y From External Class?

May 8, 2011

I am trying to put together a simple game and have been doing really well until I decided I am going to have to create a new class to handle enemies.What I have so far is a player walking around on random terrains and I am up to the point where I have placed x amount of enemies on stage at appropriate times. I have written their class which will hopefully eventually handle their behavior and it outputs simple trace("BOO!").

Where I face the problem is that I obviously would like to make these enemies follow the player to attack. But when I try to access the .x or .y attributes of the player, it throws an error: 'call to a possibly undefined property with static type Class'?I have tried accessing the .x using the following ways (where badger is my player instance and Main is my class definition within the properties of the FLA):

Main.badger.x
Main(root).badger.x
Stage.badger.x

I have also tried to access other vars and still nope..My class code is this:

Code:
package
{
import flash.display.MovieClip
import flash.display.Stage

[code]....

View 1 Replies

ActionScript 3.0 :: [CS3] Flash Interface For Client To Control Play Order Of External Swfs?

Jan 14, 2009

My client has approx 12 different presentation .swf's all with a beginning, middle and an end (phew!). I need to build an interface that views those 12 individual presentations as thumbnails on a single page and allows my client to click and drag whichever ones they wish to use into a separate little container above and in-doing so create a new required running order (left to right) each time they use my interface... so that once they have decided that running order they can somehow use the result for their required presentation. They will be using this interface ongoing throughout the year for various presentations all that will require maybe just a few of those individual swf's in different orders.

View 6 Replies

ActionScript 2.0 :: Flash Player 6 Code Not Working In Flash Player 10?

Mar 16, 2009

I would like to know how the following ActionScript, that only works in Flash Player 6, can be updated to work in a Flash Player 10 file.[URL]As it says, "On Publish Settings set Flash Player version on Flash Player 6, or this movie will not work."It works fine published as FP6 but not as FP10 as I need it to be. This AS is added to a movie symbol that contains a button for a rotating menu effect.

onClipEvent (load) {
hx = 300/2;
hy = 400/2;
r = 100;

[code]....

View 3 Replies

Flash :: Php - MP3 Player With Javascript Controls?

Jan 14, 2010

While the question may seem fairly basic I seem to be at a loss to actually find anything that fits my needs, which are:

Skinnable (although not 100% required) Controllable through javascript (start, stop, change track)Event triggers for custom functions (on track finish mainly) Actual documentation - rather that 'it can do this, but we wont tell you how' I've tried many of the free and quite a few demo's of the pay for ones. Wimpy Wasp seemed to be the closest to what I need but there is an obsession there with using a custom Windows app to set it up which is impossible as the files are provided dynamically by the sites users and it doesn't look like they want you to be able to create the code yourself.

View 2 Replies







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