ActionScript 3.0 :: Use ExternalInterface Without Server?

Jan 18, 2012

I'm doing a simple flash application. I'm going to run my swf in an sdk. the sdk doesn't have apache server.. So i've to call javascript using externalInterface without server (even local server).

View 9 Replies


Similar Posts:


Javascript :: ExternalInterface. Addcallback Works Locally, But Not On Server?

Nov 9, 2010

Mainly because I have it ALWAYS working locally, when I test in a browser, but the moment I deploy to a server it stops working.

I've added trace commands and confirmed that ExternalInterface is in fact available before adding the callback, and an alert command in the javascript method correctly identifies the flash object. I also checked and allowscriptaccess is set to 'always'.

Could it have something to do with the flash being served on a remote server?

View 1 Replies

CS4 - ExternalInterface & FireFox V3.013?

Aug 19, 2009

I've spent about a day on this... Publishing a swf for AS3/FP9, following the example in the ActionScript 3 documentation to get two-way communication between a SWF and javascript. Works great in IE.

I've sifted through what seems like a million posts on the subject, with people getting the same result... the function I/they are attempting to call doesn't exist.

In the documentation example, there's a function to find/return either the SWF as an object or embed tag depending on which browser you're viewing the page in.

[Code]...

View 1 Replies

ActionScript 3.0 :: ExternalInterface On IE?

Dec 1, 2009

I'm trying to use ExternalInterface to expose functions of my as3 code to javascript. It is working very well, following the Flash CS3 help on Firefox and Chrome browsers, however on IE 8 things are getting hard...
 
At my HTML page I used the help-suggested functions to confirm the connection between js and as:

[Code]...

View 3 Replies

ExternalInterface To Work With VB.NET?

Apr 15, 2012

I just had this conversation with a colleague and I am now turning to the SO community to provide evidence based on fact, not opinion, as to which tool would be ideal to grow into in the current programming environment. Director or Flash?I am deciding if I should stick with Flash or bother learning Director 11.5. He want to know if he should stick with Director or learn Flash. No, we don't work together. Hehe..

EDIT:

I've gotten ExternalInterface to work with VB.NET, hence the need for Director in the context of its ability to do File System IO and "non-flv" video are eliminated. No if only VB could do the kinds of animation that Flash could do, I could turn towards being a "real" programmer...

View 4 Replies

ActionScript 1/2 :: ExternalInterface With Grabbing URL?

Nov 13, 2009

I have a flash menu that needs to play a different scene depending on which page it is embedded into. So I need the it to grab the URL of the html page it is on and do some simple test on it to figure out what scene it should be on. *For the record, I tried to do it without scenes but the frame jumping started doing some cracked out things

Code: (on a single empty frame in Scene 1) import flash.external.ExternalInterface; var urlPath; urlPath = ExternalInterface.call("window.location.href.toStr  ing()"); getURL("javascript:alert('"+urlPath+"');"); if (urlPath == "http://www.awesome.com/Portfolio/portfolio.html"){ gotoAndPlay("Scene 3", "portfoliopage"); } else if (urlPath ==

[code]....

Somehow, my urlPath isn't getting the correct value, and therefore the if-else latter isn't functioning appropriately. I am posting the website on my test server, so the http addresses are correct, and the if-else latter functions perfectly when I just change the conditions to 'true'/'false', so neither is the problem. The problem is that the alert shows me that the value of urlPath is undefined, and so then all conditions in the latter evaluate to false.

View 5 Replies

ActionScript 3.0 :: ExternalInterface Not Working?

Jul 21, 2011

I'm using Flash Professional CS5 with AS3. I have this line of code:ExternalInterface.call("alert", ev.target.data);Nothing happens. I've tried IE7, FF5, Opera and Safari. Nothing.My import is: import flash.external.ExternalInterface;If I use trace(), I get the proper feedback (but only in my test movie, NOT my swf).

View 10 Replies

Flash ExternalInterface.call In IE

Feb 21, 2010

I am having an issues with ExternalInterface.call to return a value in IE. It is working fine in Firefox. Eventhough I changed the "allowscript access" to "always", still it is not working. Is there any thing that I need to change in Flex or the HTML to make this work? or this is a security setting in IE?

View 1 Replies

Javascript :: Flash - Get A VAR With ExternalInterface?

Nov 5, 2010

I am trying to use the ExternalInterface.call function in my ActionScript(2.0) to get a javascript var value set in the wrapping document. The following seems to work in FireFox and in Chrome but, naturally, it does not work in IE(8). getting the value stored at this variable?

var linkPath = ExternalInterface.call("function(){return window.customLinkLocation;}", null);

[Code].....

View 5 Replies

Flash :: Way To Use ExternalInterface Locally

Oct 11, 2011

The problem is this: I have an swf embedded in an html. I must call a js function in the page from the swf via ExternalInteface. Ok. But it must work locally, for any user, without doing nothing. That's because this thing must be distributed in cdroms.

View 4 Replies

Javascript :: ExternalInterface Not Working In Ie9

Feb 6, 2012

I am having problems with External interface and IE9. The swf objects play fine but none of the information input is transferred to the cookies that should be set. I have seen that there are other questions similar to this but have not been able to solve my problem using them. THis is the html we are using

<div id="flashcentre">
<object type="application/x-shockwave-flash"data="http://workingflashlink" width="600" height="450">

[Code].....

View 1 Replies

ActionScript 3.0 :: ExternalInterface And Wmv Player?

Jan 28, 2009

I have a problem in the communication between as3 and javascript: simply I want to use a flash movie in the same page where I included an wmv object player. When I try to invoke a function on JS (from as3) I note that all the normal playstate and commands to handle the wmv player are inverted. (for example the movie is playing the variable document.Player.playstate is set to 2-paused and so on). Even further I figured out I have big problems in fullscreen/set volume commands. Does anyone face this problem too? Where can I find useful links?

View 0 Replies

ActionScript 3.0 :: ExternalInterface.addCallback?

Feb 11, 2009

I have been trying to get this working for a while now and am at the end of any ideas or samples.In 2.0 it was setVariables and was not problem.But now I'm trying to get ExternalInterface.addCallback to work and just can't seem to get it to work.Just want to send a variable from javascript to actionscript class.Ok, here is the javascript:

Code:
function thisMovie(movieName) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];[code]....

I have been trying to get this to work but with no luck.It's in a .Net aspx page. Even stripped the page of everything but this with no luck. And no master page either or ajax.

View 3 Replies

ActionScript 2.0 :: Get Browser URL Using ExternalInterface?

Nov 10, 2009

I am going to use ExternalInterface to get the url from the browser and I wanted to know before I implement it, if there are known issues using this before I implement it?

Here's an example from Adobe but I want to make sure there are no issues as I am on a super tight deadline and cannot afford to come back to this.[url]...

View 0 Replies

ActionScript 3.0 :: ExternalInterface And AC_FL_RunContent?

Jun 25, 2010

ernalInterface in an application to insert data into the swf using javascript.But, I have a problem and I dont know how to face it.The only way that ExternalInterface works is if I use "<object classid=" etc...But I need a way to detect the users flash player, because my app need at least Flash Player 10Flash Player CS4 has an option called "Detect Flash Player". It is perfect. Do what I need but if I use it ExternalInterface doesn't work, because the swf file is embed to the page using the code bellow.

Quote:
AC_FL_RunContent(
'codebase',

[code]......

View 3 Replies

ActionScript 3.0 :: ExternalInterface Not Working In Ie9

Sep 15, 2011

I have a very simple ExternalInterface.call in my flash that isn't working in IE9. I have ever simplified it is just call a javascript alert and it still isn't working. It works great in every other browser. I have IE 9.0.8. Does anyone know if this is this a known bug in IE9, or if there would be a good alternative to ExternalInterface? I can't find anything on the internet that is working.

View 2 Replies

ActionScript 2.0 :: ExternalInterface.addCallback?

Jan 8, 2007

i have a flv movie and i need to be able to stop it through javascript. so i found out that i need to use ExternalInterface.addCallback

View 3 Replies

ActionScript 2.0 :: Closing Swf From ExternalInterface?

Sep 3, 2008

[URL]..Above is a link to a component I'm working on. I've overlayed one swf with another swf which is going to display a sort of advertisement slide. What I'm trying to achieve is that when the adbanner (id="mediabanner") reads an xml file and reads "false", it then calls the ExternalInterface function "hideFlash" and in turn closes the swf so that the swf beneath it can be seen.

Could someone view the page source and let me know what I am doing wrong? The hideFlash function is being called, but its not actually hiding the swf.

View 2 Replies

ActionScript 2.0 :: ExternalInterface.addCallback In IE?

Jan 30, 2009

This is so frustrating...I'm going to do my best to be concise here, so forgive me if I leave too much out.I'm also going to try to simplify so I don't get bogged in details. I have a set of html pages that guide you through a tutorial. The different pages are REALLY just one big page that has divs hide and unhide as you go through the flow via previous and next buttons.

There are 4 pages which play a video clip. Each video clip .swf contains an FLVPlayback component that plays an .flv, and uses an .swf skin file. All these things play fine. If you're watching a video and you click "NEXT" the sound is still playing because of course you're still on the same page. So we looked into it and found out about the whole ExternalInterface.addCallback thing.

[Code]...

View 1 Replies

ActionScript 3.0 :: ExternalInterface.objectID?

Jun 2, 2009

Code:
ExternalInterface.call('alert', 'objectID: ' + ExternalInterface.objectID);
the alert says "objectID: null" --

[code].....

View 8 Replies

ActionScript 2.0 :: Log Every ExternalInterface Call?

Nov 20, 2011

I'm wondering if you guys know a way to log every data coming to a flash 8 swf from its container?

I know that it is a bit weird, but I'm trying to figure this one out. Maybe one of you already faced a similar situation?

View 3 Replies

ActionScript 2.0 :: CS4 ExternalInterface Passing Variable

Mar 4, 2010

i send variables to flash inside the html document:[code]inside flash i can print the variables as dynamic text, its working fine. but now i want to use one of this variables to be sent inside a "ExternalInterface.call" after pressing a button. [code]i tried many ways, but nothing works. i realy wonder how i can pass my variables.is there anyone who could tell me how to set the variables in the right way? in another forum they said its not possible?

View 5 Replies

ActionScript 2.0 :: ExternalInterface And Ajax, Old Xml Loads Not New?

Mar 23, 2010

I've used ExternalInterface.call for an onclick flash event to load some xml with XMLHttpRequest. the xml loads. but if i change the xml file on the server, the old xml file loads for the client, not the new one. i believe the problem is that the browsers are caching the results. i heard that this could usually be fixed by returning false from ur JavaScript onclick handler. but i dont have a JavaScript onclick handler, i have a flash onclick handler.

View 6 Replies

ActionScript 3.0 :: ExternalInterface Always Return Null From IE?

Jun 12, 2009

I copied following code from the ExternalInterface example to my flash:
 
if (checkJavaScriptReady()) {
console.appendText("Javascript is ready.
");
} else {

[Code]....

View 6 Replies

ActionScript 3.0 :: Call C++ Functions Using ExternalInterface?

Oct 20, 2009

I am trying to call a C++ function from actionScript3. using Programming ActionScript 3.0 > Using the external API > Using the ExternalInterface class > Calling external code from ActionScript,  I could call function from JavaScript .
 
it will be good if i could call C++ functions directly from Action Script.

View 2 Replies

ActionScript 3.0 :: ExternalInterface Made Available Offline?

Feb 23, 2010

I am developing a Flash application that will be made available for both online and offline (via DVD).Opening the HTML through the web presents no issues. However, if the HTML file is opened locally, Flash Player security stops the application from communicating with local HTML files unless the Flash Global Security Settings is set.How can I allow the Flash application to run properly locally without setting the Security Settings of the FP.

View 1 Replies

ActionScript 3.0 :: ExternalInterface.call Not Working?

Apr 22, 2010

I am having a problem using ExternalInterface.call to a javascript  function. I have used this method many times in many places and at some  point during this project, it was working, but now it stalls my Flash  file when executed. I have the function: var initialize=function(){ExternalInterface.call("SCOInitialize");statusTxt.text="initializing"; } On my html page, there is a SCOInitialize function that works perfectly  if I call it via the html page: <body onLoad="SCOInitialize()"> ... </body> When I make the call using flash... initialize(); ...the Flash file just gets hung up and it actually wont execute the  second line of code in the function: statusTxt.text="initializing"; What is the deal? I can't for the life of me figure out why it won't

View 7 Replies

Professional :: ExternalInterface To Javascript/Html ?

Aug 4, 2010

AdobeTV showed a way to allow Flash to "talk" to an HTML page via javascript using the ExternalInterface method. There seems to be a catch. You need to use the ID of the swf in the parameters to have it all fit together and you can only put the ID="swf" into the IE section of the Dreamweaver generated javascript or into the non-IE section. Putting it in both didn't work and the author mentioned only putting in one of them specifically.Is there a way to do this that would work in both sets of generated Javascript?

View 3 Replies

ActionScript 3.0 :: Using SWF For Photoshop - ExternalInterface Error

Nov 28, 2010

I'm using a swf in an ExtendScript for Photoshop. I've written this with CS3 on WinXP and it worked no problem. Now with Win7 and CS4, I'm getting the error:
Error #2067: The ExternalInterface is not available in this container.
ExternalInterface requires Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime. Is there some special ActiveX plugin for IE8 that I need? I've checked to make sure activeX control was inabled in my browser.

View 5 Replies

ActionScript 3.0 :: Passing In Arguments From Js --> Via ExternalInterface?

Jun 17, 2011

Is it possible to use javascript to call a method in as3 and pass in an object argument?This would act as a setter in some sense.

View 4 Replies







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