ActionScript 3.0 :: Java ExternalInterface Doesn't Communicate With Swf In Firefox & Safari?
Aug 5, 2010
I have two swf files: swf_sender and swf_receiver. The swf_sender controls the swf_receiver via java script.Everything works fine in IE however, the swf_receiver doesn't receive communication from java script if openned by Safari or Firefox.The first part of communication: swf_sender - Java works ok (I tested it with alert() in Java) in all browsers.Here is my Java interface code:
Code:
<script type="text/javascript">
function getFlashMovie(movieName) {
[code].....
View 2 Replies
Similar Posts:
Jul 27, 2011
These issues only appear on Safari and Firefox on Mac.I tested with Opera and Chrome and Windows (inc. IE), but they work fine.
Mac OS 10.6.8
Firefox 5.0.1
Safari 5.1
Flash CS5.5
1 Hiding the original black arrow cursor (Firefox only)When cursor rollovers to an Invisible button (oneBtn), I want to show custom cursor (newCursor) and hide mouse. But Firefox shows the custom cursor as well as the black arrow...
2. Mouse.show doesn't work only on Safari, Mac.When rollout to the invisible button (oneBtn), the custom cursor (newCursor) hides but the mouse doesn't appear. This happens only on Safari.
stop();
Mouse.show();
newCursor._visible = false;
[code].....
View 6 Replies
Sep 6, 2009
The ExternalInterface callbacks on several sites that I've setup have begun crashing the new Safari shipping with Snow Leopard.
View 4 Replies
Feb 21, 2009
Any alternative to ExternalInterface.addCallback() to communicate with the javascript
View 2 Replies
Aug 7, 2010
I know there have been other questions on getting JavaScript / Flex ExternalInterface to play nicely, but I've what I think is a weird one. It works perfectly in every browser except Safari (on a Mac). Chrome, IE, Firefox - all ok, but Safari, nope it just wont fire.I've copied my code below, can anyone see why it doesn't work in Safari pls ?(the 'are you sure' dialog window appears in Safari but the method in the Flex app just doesn't get called)
Flex code :
if(ExternalInterface.available){
ExternalInterface.addCallback("flexShutdownHandler",flexShutdownHandler);
[code].....
View 1 Replies
Jun 3, 2009
When I go back and forth between pages they "blink" in FF & in Safari. For once IE is working how I would like it to and FireFox is not Here is my url: [URL]... I have a .swf file for the "icon rollovers" on the left hand side that I think is causing the problem.
View 2 Replies
Oct 14, 2011
I'm working on a site that allows administrators to upload arbitrary SWFs and embed them on the page. Administrators are in theory trusted, but I still want to protect against potentially malicious administrators or misguided administrators from harming the site.
A part of the functionality of the site is that the SWFs can communicate to the containing browser page when it's finished and for the page to react.
Now, I can think of two ways to do this:
Use ExternalInterface.addCallback to create a global callback named something like isComplete that does logic and returns true or false depending on whether the Flash app is in a completed state. Then, just do something like setTimeout to just call that function repeatedly. I don't think this would require me to open up allowscriptaccess to the movie. Embed the movie with allowscriptaccess and have the movie call something like ExternalInterface.call('done') when it's finished. This option seems like it requires me to open up allowscriptaccess, which is a potential threat since I can't control the SWFs that would be embedded with this directive.
View 1 Replies
Jan 19, 2009
I have a banner container with buttons that rotates multiple banners. Each banner has specific buttons for each with text that changes color when the banner is active.[code]...
The problem: The text color changes in IE, but not in Firefox and Safari. And the weird thing is I tested in other computers and some will work in all browsers and some only works in IE. Everything works ok when tested locally.
View 1 Replies
Nov 19, 2009
when i view my flash file in firefox 3.5.5, it compresses my flash movie smaller and quality looks pretty bad. In Safari, it is fine. I tried publishing as "exact pixels" instead of match movie and set scale at exact fit.
update: now firefox is cropping my flash movie....but safari looks fine
View 1 Replies
Jul 15, 2010
I have a flash gallery I created using Flash CS4 and Actionscript 3. It plays perfectly in FireFox, but in IE and Safari it just shows me a blank space on the page where the gallery should be. As a test I uninstalled Flash Player, and FireFox and Safari showed me the message that a newer version of Flash was needed along with a link to get it, but IE showed nothing. Now that Flash is re-installed, only FireFox actually loads/plays the gallery. With IE it doesn' tmatter if I use the 32-bit or 64-bit, or if compatibility mode is on or off. I tried republishing with Flash 9 set instead of Flash 10, but that made no difference. It fails with the HTML file generated out of Flash, as well as the page I created in Dreamweaver and used the Insert Media command to insert the .swf:
[Code]...
View 1 Replies
Aug 9, 2011
My mouse cursor doesn't change when using mc.buttonMode = true; either doesn't Mouse.hide(); work,
Chrome 12.0 Works
Firefox 5.0.1 Don't work
Safari 5.1 Don't work
View 1 Replies
Sep 18, 2009
i have this problem, the urlloader is supposed to stream some binary data to the server (upload) but it doesn't seem to work with anything except Internet Explorer!
I have tried it with Safari (only on mac!) on Firefox (on mac and on windows!) and on Chrome![URL] and these source is:
[Code]....
View 1 Replies
Mar 4, 2008
I load images from an XML file and sometimes everything would load up just fine, but there are times when flash would stop loading in the middle of my my list...
[URL]
On firefox, all items usually would load up all the time but there are occassions where it would only load 3 out of 8 or some anywhere before it's suppose to finish. If you keep hitting refresh on the link i posted, you'll see. its even worse on safari since it would seldom load the whole thing... never had a problem with IE though.
here is the code im working on
Code:
var productHolder:MovieClip = productHolder_mc;
var bannerHolder:MovieClip = bannerHolder_mc;
var paginationHolder:MovieClip = paginationHolder_mc;
var whatIsaLoading:String = "";
[code]....
View 2 Replies
Jun 24, 2008
On this page there is a login form at the bottom left.
1) Type some text in the username field.
2) Drag-Select this text (from right to left) so that it is highlighted - but DO NOT release the mouse over the swf - keep dragging off of the swf (to the left of the text field).
3) Now move your mouse across the swf and back out to the left again...and you will see that the swf thinks you have never released the mouse.
It seems obvious that a swf running in Firefox or Safari is not detecting "onRelease" events outside of the swf (while IE Does this just fine).My only thought is to capture onRelease events from js and pass into the swf...but jeez - what a pain for something so simple....for something that should just work.
View 1 Replies
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
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
Apr 28, 2010
I have a file upload application I built that uses FLASH as a means to transfer file to/from users directories on a server. Once the file transfer has completed I fire a function that includes a call to a javascript function within my page that executes an AJAX refresh of one of the "div's" on my page.
ActionScript Code:
// COMPLETE FUNCTION
fileRefListener.onComplete = function (fileRef:FileReference):Void {
status_txt.text +="<font size="11" color="#E6E6E6"><b>" + fileRef.name + " uploaded.</b></font>
";
status_txt.vPosition = status_txt.maxVPosition;
filesCompleted++;
[Code] .....
And my JS is:
Code:
function handOff() {
new Ajax.Updater('manage_user_info', '/fileTransfer/manage_user.php?client=' + $('users_to_manage').getValue(), { method: 'get' });
}
This works flawlessly in IE6/IE7/IE8/FF3.6/Opera/Chrome/Safari on Windows Machines but for users on MAC's there seems to be an issue. Any particular reason this wouldn't be working in a MAC environment?
View 0 Replies
Aug 30, 2007
flash menu i have create for my web site it works 100% in microsoft explorer but in fire fox or safari i have a problem. The menu is set to transparent as their are drop down menus from main nav bar, in fire fox you can see the text just below the menu bar but cannot touch any links but in explorer you can no problems.This the code:
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/s...rsion=7,0,19,0" width="990" height="490" style="position: absolute; top: 70px; left: 0px; z-index:1;" >
[code]....
View 4 Replies
Oct 30, 2009
I am having a problem. I found the actionscript 2 code to open a browser window, but it is not working in Safari, or Firefox. I found an old action script 1 file version 5 for the flash player that works just fine, but I am using 8 and actionscript 2 so that doesn't work for me.
View 5 Replies
Jan 15, 2010
I'm creating an Entry Page slideshow here with Flash Cs3 and AS2: [URL] I'd like to be able to click on the whole slideshow (or the "Enter Site" text) to go to another page on the site, which I'm calling "[URL]." I've read various tutorials all day and tried many things, but couldn't seem to apply any "on release" action to the "Enter Site" text that would work. I even created an invisible button (putting a keyframe on just the HIT state and deleting it from the UP state), named the instance "invbutton3", and then typed in this action on the first frame and inserted a keyframe at the end of the show:
[Code]....
View 5 Replies
Apr 5, 2012
How could it be a SWF is not loading in internet explorer chrome on windows but works fine on firefox and safari on osx? I called the file like myhomepage.fr/videoplayer.swf
Does this direct all of swf is non supported on IE?
View 1 Replies
Dec 7, 2010
Can anyone give me a clue as to why this markup works fine in Safari, but not in Firefox?This should load an ugly blue placeholder (which I get in safari) but in Firefox, swfobject just gives me the alternative content.[code]
View 1 Replies
Dec 5, 2011
I have a flash-based ad that displays/hides based on some javascript. It works in Firefox, Safari, Chrome ... but not in Internet Explorer 8. This is for donations to a non-profit during the holiday season,
<div class="grid_12 alpha omega">
<script type="text/javascript">
GA_googleFillSlot("360_dropdown");
[code]......
View 1 Replies
Feb 21, 2010
my site is comprised of several images loaded dynamically and added to the display list. i declare a bunch of loaders on the first frame, and add a preloader progress listener to the largest image to have one preloader for all the assets. I then added a COMPLETE listener to the same image, and add that image, along with all the others in the onComplete function. i have two issue. the preloader doesnt work in Safari. but works fine in Firefox? and i'm totally stumped on what it could be? another compatibility issue that seems to be arising is that one of the galleries of my site which corresponds to the "drawn" link. also does not seem to be working in Safari, but works in Firefox. its a fairly simple xml based image gallery, which loads thumbs on to the stage, and then loads a larger version of each, when the corresponding thumbnail is clicked. the other galleries of the site work fine in safari, and are basically the same code wise.heres my code for the loading and preloader in the first frame
Code:
import caurina.transitions.*;
stop();
[code]......
View 1 Replies
Jul 22, 2011
I'm currently working on a project that need to communicate with java from air without the use of a server like Tomcat. For this i found and use Flerry.Communicating between Java and Air is no problem, as long as I try to send a message from the class that I initially instantiated from Air.What I try to do is subscript to messages from a Message Class in java and use that class to send info and errors to Air from Java.
MessageController.java:
public class MessageController
{[code]....
the infoMessageHandler receives an message containing test message, as it should. How can I dispatch messages from whatever class in Java and catch them on the Air side?
View 1 Replies
Jun 10, 2010
I have an issue with my ExternalInterface. The way it is currently set up is, on the page load up, a boolean is set to true in JavaScript and then checked by ActionScript constructors (using a timer) until it is true. This marks that JavaScript is ready to get calls from AS3.
At this point, AS3 will add the callback and do some internal stuff, and at the end of the constructor I call JavaScript. So far so good. JavaScript will at this point call a function in AS3 (that was defined in the callback described above), and this is where it all messes up.
On IE this works perfectly fine. On FireFox though, it does not. When I debug it, I see that the javascript function is called but when it tries to call AS3, nothing happens. I also tried to add a timer, but for some reason the function STILL executes straight away (in IE).
[Code]...
View 1 Replies
Jan 7, 2011
I am trying to execute an AS3 function from my javascript using the ExternalInterface. Seems to work fine in IE, but firefox is always returning javascript error method undefined.
I have been Googling this for ages and eliminated the following possibilities:
1) Some people say you need to have an embed tag inside your object tag, so added one - no luck.
2) Many people say that you need to make sure that your flash is loaded before calling the javascript. Well my call is after pressing a link on the page. I am always using the flash application first and only pressing the link at the end.
3) Then I thought that maybe it is a security problem so added the following:
try {
ExternalInterface.addCallback("test", testing);
trace("added callback");
[Code]....
I am running the latest Firefox and FlashPlayer 10.
View 2 Replies
Jun 26, 2008
I have set up a function in Flash that i want available to Javascript.
Code:
function OpenBrowse():Void {
...
}
_trace(flash.external.ExternalInterface.addCallback("OpenBrowse",null,openBrowse));
[code].....
View 3 Replies
Jan 22, 2010
I have a banner in actionscript 2, that posts to a URL, and gets a response back. The http header from that is then used to figure out if the posting was successful. This works like a charm i IE, but in Firefox and Safari, the Flash player shomehow interprets the HTTP header as a 0, no matter what the browser actually gets. My guess is that it's what's described here [URL]...
View 1 Replies
Sep 21, 2011
We use a custom Air Install badge to install / launch an Air application directly from the website simillar to
TweetDeck
This normally handles the install of air if the user doesn't have it already installed.
However, after doing some cross broswer testing, it appears that when a user, (using OSX Lion and Safari or Firefox) tries to click yes when prompted to download the required Air they are unable to click either of the yes or no buttons.
I initially thought that it may have had something to do with the positioning so ensured that the z-index in the css was appropriately set but to no avail.
I beleive it may have something to do with the installer itself rather than my implementation as the same thing appears to happen on TweetDeck too.
View 2 Replies