Netscape FSCommand, HELP
This function works with IE but its not being called from Netscape 7.1(latest) I even downloaded the latest Flash plugin for netscape but in vain. Is there something that i am doing wrong? Pleas Help!
function index_DoFSCommand(command, args) { alert("initnow"); var indexObj = isInternetExplorer ? document.all.index : document.index; if(command=="loadIt"){ parent.some.document.open(); parent.some.document.clear(); parent.some.document.write(args); parent.some.document.close();
} if (command=="sleep"){
parent.sleep(); }
}
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 03-19-2004, 01:51 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
FSCommand In Netscape 6
I heard that FSCommand in Netscape 6 doesn't work. So how can I send variable from Flash to JavaScript?!
Please help
Thank you
P.S. I tried with getURL("javascript:myfunc(myVariable)") but it doesn't work
Fscommand And Netscape
I have been pounding my head against the wall for a couple hours now. I am trying to utilize the fscommand to close the popup window for my flash app. I have created a "Close" button on the app and I have placed a fscommand behind it. I have published the flash app for fscommand use so I have the Javascript in my html page as needed. The Javascript code for closing the window is as follows:
if (command == "close") {
window.close(this);
}
This works perfectly using IE. This "close" button on the flash app does not work using Netscape 4.75 or Opera 5. Does anyone have any ideas as to what I am doing wrong or something I am forgetting?
Thank you,
Ken
Netscape And The FSCommand
In IE6 and Netscape 4.75 this command from Flash MX will work:
fscommand("messagebox", "Goodbye " + strName + ", and thanks for visiting our website!");
In Netscape 7 it will not work. I have not tested it in Netscape 6 though. If you take the concatenation part out of the string it will work in Netscape 7. Also you cannot have any line breaks (/n) in the command when using it with Netscape 7.
Why is this and how can I work around it?
Thanks.
Selfminded
Netscape FSCommand, HELP
This function works with IE but its not being called from Netscape 7.1(latest) I even downloaded the latest Flash plugin for netscape but in vain. Is there something that i am doing wrong?
Pleas Help!
function index_DoFSCommand(command, args) {
alert("initnow");
var indexObj = isInternetExplorer ? document.all.index : document.index;
if(command=="loadIt"){
parent.some.document.open();
parent.some.document.clear();
parent.some.document.write(args);
parent.some.document.close();
}
if (command=="sleep"){
parent.sleep();
}
}
FSCommand And Netscape 6.2
Hello,
Can anyone tell me what the heck this Javascript error means, encountered in Netscape 6.2 (the Javascript code was generated from Flash 6 using the FSCommand Template in the Publishing Options)... The idea behind the code is that when a user clicks on a button in the flash movie, an mini-browser window pops up with a message in it. It seems to work fine in Internet Explorer 6.
Here's the Javascript error that Netscape produces (I've substituted the actual domain name with mydomain.com):
Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMJSWindow.open]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://mydomain.com/chat/WindsorChat.php :: popup_DoFSCommand :: line 383" data: no]
Source File: http://mydomain.com/chat/WindsorChat.php
Line: 383
Here's the Flash Javascript Code that I'm using (line 383 has a comment just before it - in the last 'if' block):
<script LANGUAGE=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function popup_DoFSCommand(command, args) {
var popupObj = InternetExplorer ? popup : document.popup;
if ( command == "popup" ) {
window.open( "../flash_popup/message.php?ID=" + args, "popupWindow", "width=300,height=300" );
}
}
// Hook for Internet Explorer
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<SCRIPT LANGUAGE=VBScript>
');
document.write('on error resume next
');
document.write('Sub popup_FSCommand(ByVal command, ByVal args)
');
document.write(' call popup_DoFSCommand(command, args)
');
document.write('end sub
');
document.write('</SCRIPT>
');
}
var MM_contentVersion = 5;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words)))
continue;
var MM_PluginVersion = words;
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.appVersion.indexOf("Win") != -1)) {
document.write('<SCR' + 'IPT LANGUAGE=VBScript>
'); //FS hide this from IE4.5 Mac by splitting the tag
document.write('on error resume next
');
document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))
');
document.write('</SCR' + 'IPT>
');
}
if ( MM_FlashCanPlay ) {
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ID="popup" WIDTH="1" HEIGHT="1" ALIGN="">');
/***** This is line 383 *****/
document.write('<PARAM NAME=movie VALUE="../flash_popup/popup.swf?userid=cp1234&usertype=loan_officer">');
document.write('<PARAM NAME=quality VALUE=low> <PARAM name=userid value=cp1234>');
document.write('<PARAM name=usertype value=loan_officer> <PARAM NAME=bgcolor VALUE=#000066>');
document.write('<EMBED src="../flash_popup/popup.swf?userid=cp1234&usertype=loan_officer" quality=low bgcolor=#000066 WIDTH="1" HEIGHT="1" swLiveConnect=true ID="popup" NAME="popup" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
document.write('</OBJECT>');
}
//-->
</SCRIPT>
Flash 5, FSCommand And Netscape 6
Hello all
I'm trying to run some JavaScript using the FSCommand, but it seems that Netscape 6 does not run the DoFSCommand function as generated by Flash 5.
I recently discovered that the FSCommand does not work on IE on the Mac . . . is there a similar problem with Netscape 6 or is it more likely that I am doing something wrong?
Would appreciate any help . . .
FSCommand Disfunctional With Netscape 7
I'm coding a form in flash, validating with flash, and passing an FSCommand to the users browser to display errors in a Javascript alert messagebox. The way in which I'm using the FSCommand to do this is the exact same way the Actionscript Dictionary shows in Usage 2 (calling a message box).
The following line of code will NOT work in Netscape 7; however, it WILL work in any IE and oddly enough, Netscape 4.75:
fscommand("messagebox", "Thanks for visiting our site " + strName + ".
Please come back soon!");
There are two reasons it will not work in Netscape 7. The first is that you cannot concatenate and the second is that you cannot pass it the "
" command which is for inserting a line break in a Javascript alert box. An fscommand, being used with Netscape 7, without these two characteristics will execute just fine. The problem is that it's very limited; you can only pass a string. Boooooo!
Does anyone know of a way in which I can get around this? It's very vital to the web application that the FSCommand is able to execute a Javascript alert box to show the user their errors. Thanks.
Selfminded
FSCommand Disfunctional With Netscape 7
I'm coding a form in flash, validating with flash, and passing an FSCommand to the users browser to display errors in a Javascript alert messagebox. The way in which I'm using the FSCommand to do this is the exact same way the Actionscript Dictionary shows in Usage 2 (calling a message box).
The following line of code will NOT work in Netscape 7; however, it WILL work in any IE and oddly enough, Netscape 4.75:
fscommand("messagebox", "Thanks for visiting our site " + strName + ".
Please come back soon!");
There are two reasons it will not work in Netscape 7. The first is that you cannot concatenate and the second is that you cannot pass it the "
" command which is for inserting a line break in a Javascript alert box. An fscommand, being used with Netscape 7, without these two characteristics will execute just fine. The problem is that it's very limited; you can only pass a string. Boooooo!
Does anyone know of a way in which I can get around this? It's very vital to the web application that the FSCommand is able to execute a Javascript alert box to show the user their errors. Thanks.
Selfminded
Trouble With Netscape (Damn Netscape 4.7)
http://eservices.no-ip.com/clients/abcfood/
Pls check the link above with netscape
There is a spacing above the 2 flash animation (not developed yet)
I'm wondering if anyone can help me
How Do You Get Pdf Fscommand Script Into Fscommand
I'm trying to link to a pdf file. I have viewed others messages about creating a .dat file, but it mentions about making sure this is in the fscommand folder. Please can someone detail how this complete process should be done?
If this wont work on a Mac, then that leaves me with the GetUrl command only. As I want this to be a CD Rom not web page I need to link to the html pages offline (if this is my only option) and I have a projector file, where should these htm files be?
Thank you.
Netscape
Hello,
I've created a flash application that is running at
http://www.enerworks.com/discover.asp
The problem is, when it's viewed in netscape, the movie just runs right through and doesn't stop at any of the stop frames. Does anybody know why this is happening?
Thanks, MLE
IE Vs Netscape
any ideas on why this site totally doesnt work on netscape?
the flash version is fine on IE - but of you look at the IE version of the page on netscape, its totally messed up. So i ended up having to start making an html version for netscape.
any ideas? thanks http://www.cus.commerce.ubc.ca
Not Netscape
Does this param tag not work Netscape browsers.
If not, any solutions to using a behaviour in DW to redirect the home page to a non flash page
Plz Help Me With That F*?ing Netscape Bug
Hi yall!
I do have a problem with Netscape (4.5 and newer):
When I send a fscommand that is caught by by the xxx_DoFsCommand-routine of the .htm that hosts the flash, Netscape will do anything I want it to do (via script) but relocate the .htm to another file.
Don`t get me wrong: I donīt want it to open a new browser window that loads the intended file; I want Netscape to open up the new file in the same window the swf (and the script) is in.
Buuuuuuuuutttttttt: That stupid ***** (xcuse my french) won`t do it.
So, is there anybody out there who has a workaround for that bug? Please tell me if so.
thanxx
-----------------------------------------
Besides, your site`s great.
Netscape
I am posting this because I've seen a lot of people wondering about Netscape compatibility with their flash site (and wondered myself)
So I downloaded Netscape 6, tried to view my site and a pop up window appeared to download flash 6 for netscape.
I didn't have any problems viewing my site....
Just to let you know if it can be useful.
IE Vs. Netscape?
I have a simple onClipEvent that plays an externally loaded movie when it hits the frame.
It works in Netscape but not in IE. Both are using the Flash 6 player.
Any ideas???
IE/Netscape
This movie works in IE but not Netscape. What do I need to do?
http://gsmdesigns.com
Thank you,
Andy
Possible Netscape Bug?
Hi all, anyone know of a bug with MX and Netscape that might cause images that are loaded dynamically on a rollover to not show up when being viewed with netscape???
To check for yourself go to http://mechromation.com and check the portfolio section. here is the code i am using for this... maybe theres a problem with it?
loadVariables("gallery.txt", "_root");
function preset(whichOne) {
curPreset = whichOne;
_root.pic.loadMovie(_root["image"+whichOne]);
textHolder.curCatagory = _root["catagory"+whichOne];
textHolder.curTitle = _root["title"+whichOne];
textHolder.curInfo = _root["info"+whichOne];
}
on the buttons this is the code:
on (rollOver) {
_root.gotoAndStop(6);
_root.preset(20);
}
on (rollOut) {
_root.gotoAndStop(5);
}
on (release) {
getURL ("javascript:NewWindow=window.open('gallery files/aelogo.htm','newWin','width=600,height=550,toolbar =0,location=0,scrollbars=0,status=0,resizable=1,fu llscreen=0'); NewWindow.focus();void(0);");
}
anyone see a problem with this? Please let me know...
Thanks
Netscape 4.7 - Php
hi!
a concrete question.
is it generally possible to get content dynamically in a flashsite via php or a texxtfile. this site have to run in netscape 4.7!!! loadVariables and loadVariableoObject, doesnt works. give it a chance? its frustrating.
regards
dex
Mx And Netscape
I made a movie in mx. It displays in IE, but not in Netscape. I had other movies I made work in Netscape, but they were created in Flash 5. So, I saved the MX file as a Flash 5 file and published from there. It displayed in both browsers. One other piece of information. I started from scratch with a new MX file, put some text in it (no animation), published it, and I could view in both browsers. Any help on this?
Netscape
Hi there,
it seems that netscape users can't acces my site, it just runs the preloader and then stops running, it doesn't go to the main scene. Does anyone know more about this??
thanx
EJ
Netscape
www.55-studio.com is my page... can somebody tell me why the page aint showing up under Netscape?? i did a other page and same problem there with netscape ...
please check th HTML code maybe u find out whats wrong
Netscape 4.7 No Go
Please help me figure out why the following site gives me this error after the entry page :
The instruction at "0x004ae720" referenced memory at "0x0000006c" . The memory could not be "read".
It works on higher versions of Netscape and on IE. Please help me out.
The site is: www.wincreps.com
Password = present
Thanks!!
Katy
What The F... Is Up With Netscape 7+?
I've got a flash movie that sits in a layer on my web page. Initially the layer is hidden. When you click the login button, it executes the following code...
Code:
function showLoginBox(){
if (ns4){
document.loginLayer.visibility = 'visible';
window.document.loginbox.TGotoLabel("_level0/","open");
window.document.loginbox.Play();
}
else {
document.getElementById('loginLayer').style.visibility = 'visible';
if (ie4){
window.document.getElementById('loginbox').TGotoLabel("_level0/","open");
window.document.getElementById('loginbox').Play();
}
if (ns6){
window.document.loginbox.TGotoLabel("_level0/","open");
window.document.loginbox.Play();
}
}
}
In IE and NS4, it works fine. Well, NS4 isn't fine, but NS7 is worse. I've gone through all the docs at macromedia about communicating between flash and javascript and I'm doing it the way that they say to do it. In NS4, it will show my container layer and go to the correct frame. But, it will not play. In NS7, it will show the layer and that's it. It won't go to any frame or seem to even load the movie. Can anyone give any ideas on what I could try? Thanks.
Netscape == ?
whats the nn equiv to this javascript statement ??? (that works GREAT in IE)
window.document.moviename.SetVariable('play', 'true');
I know this doesnt work in nn4, what about 7 or whatever version they're on ?
Netscape And IE
When viewed in IE, the frames are smooth and rather quick.
When viewed in Netrape, it is quite a bit slower, but still smooth. The timing with the music and everything are spot on, just slower?
I'm at 30fps. Cache is cleared.
What gives?
Netscape 4.5
Does anyone know why flash files don't seem to work in Netscape 4.5?
My flash file just shows up as a black box?
Mike
Netscape...
I have noticed I am having problems with flash sites when using netscape. I am using Netscape 7.0. When I goto a flash page I uslly just get the bank HTML page, no flash at all. Any ideas?
Thanks... Bubba
Swf In Netscape 7.1
A customer is telling me that an .swf file made from Flash 5 is not loading in Netscape 7.1. It works fine for me. Anyone have a clue as to why others are having problems?
Netscape
hello
i am using Flash MS 2004 and am new to the wonderful world of flash...
i just finished a flash intro for my website..
and included a skip intro button which uses a loadURL actionscript when clicked on
everything works fine and dandy in IE
but in Netscape for some reason when i click skip intro it goes to the next page and loads it all squished up in the top of the browser, i cant seem to explain it and i have tired to export the swf file into different formats but nothing seems to work (mainly cause i cant seem to figure out why its happening)
also.. netscape wont play the audio in the intro (but only on some computers, and with the same version of Netscape.. weird eh?)
any feedback regarding these issues would be very helpful and much appreciated
thank you
Rafiq
Netscape & Co. Really Sux
This is really a disapointment.
I have this site where I need to make some user checking, and in a particular section of the site, I need to pass a parameter to the Flash movie, from a PHP script just like this:
print "<param name="movie" value="members.swf?Response=granted">";
Well the situation is simple: either Netscape, Mozilla and Firefox ignores the parameter passed to the movie, while IE accepts it ok. I am not sure if the problem is with the browsers itself or with Macromedia plugin for them.
Now I have this site on line and need to find a detour to this awfull gap, just because there are a lot of people that uses this f***** browsers.
Well, point for Microsoft. This kind of thing just shows why MS is really the biggest one in the world, and why people have so much resistence to join to their competitors.
Humm.... forget the cheap philosophy!
If anyone knows the solution for this problem I erally would apreciate if it could be shared.
Thanks!
Netscape
I have a dynamic, 3-D flash chart. Every time a user changes a value in one of four text boxes the chart changes to reflect the new values.
The page has four default values in the text boxes when the page loads. The problem is in Netscape the chart won't conform to the original 4 values when the page loads. Once a user types in a new value or hits the 'refresh' button the chart works fine and it also works perfectly in IE from the get go.
Why won't the page recognize the variables onLoad in Netscape? Is it a swonking problem?
Thanks,
Amber
Netscape And IE
hello.
I am having trouble with my site. It works fine in IE, but Netscape doesn't show the new files I uploaded to my server and constantly says "tranferring data" in the bottom of the browser.
Does anyone know what's wrong? I use MX, and am cetain I updated to Flash Play V7 on Netscape, but IE might still have V6. Could that be the problem?
I don't think so because all I did was add an extra library-linkable MC to the site, and it reads the other 10+ linked MC's fine.
can somebody check to see if they work fine in both on their computer?
http://custardbelly.com
thanks.
Get Url In Netscape 4.79
Ok I've got a swf movie with 5 buttons that, when clicked on, use the "getURL" function to goto other html pages. The buttons work fine in Internet Explorer but do squat in Netscape 4.79. Anybody know whats going on here. Heres the code I used. Anybody have any ideas????
on (release) {
getURL("agent5.htm","_self");
}
on (rollover) {
gotoAndStop(32);
}
on (rollOut) {
gotoAndStop(3);
}
Netscape 7 Please Help
ok, thought I would start to make my new site work with netscape7.
FSCommand - works fine but cant get the following to work
window.open to call a popup
or
SetVariable - to return a value to flash.
Now if this really is a problem - why are flash developers still using netscape when it is so full of bugs..
I donloaded it 3 days ago and it didnt even have the most uptodate player..
I new there was a reason I like IE. everything works the way it is supposed to.
Anyway any AS Developers have an answere please help so I can make my new site cross browser compatible.
Get Url In Netscape 4.79
Ok I've got a swf movie with 5 buttons that, when clicked on, use the "getURL" function to goto other html pages. The buttons work fine in Internet Explorer but do squat in Netscape 4.79. Anybody know whats going on here. Heres the code I used. Anybody have any ideas????
on (release) {
getURL("agent5.htm","_self");
}
on (rollover) {
gotoAndStop(32);
}
on (rollOut) {
gotoAndStop(3);
}
Netscape 7 Please Help
ok, thought I would start to make my new site work with netscape7.
FSCommand - works fine but cant get the following to work
window.open to call a popup
or
SetVariable - to return a value to flash.
Now if this really is a problem - why are flash developers still using netscape when it is so full of bugs..
I donloaded it 3 days ago and it didnt even have the most uptodate player..
I new there was a reason I like IE. everything works the way it is supposed to.
Anyway any AS Developers have an answere please help so I can make my new site cross browser compatible.
Netscape And IE
Because I have heard the Flash isn't transparent in Netscape, is there anyway I can have my site detect what browser the user is using and the right page show up?
I have two webpage versions one uses flash other doesn't.
thanks,
lmarshall
Netscape 4.7 Bug
Hi,
I made a drop down menu with flash in my index page. It works well in the IE. But in Netscape 4.7, when I click on the sub menu "Academic Credits", it says "The requested object does not exist on this server. The link you followed is either outdated, inaccurate, or the server has been instructed not to let you have it. " It really bugs me.
Does anyone have a clue? The URL of my website is http://uofmpt.memphis.edu/minghui
Thanks.
IE Ok NETSCAPE Ko
Hi all.
How is possible that my pixelfonts are visualized correctly in Internet Explorer and not correctly in Netscape??
I can't understand...
Thx for all answers...
GetURL And Netscape 4.7
Hi *,
does anybody of you know why this two doesn't work:
foo = "1";
getUrl("test.php3?foo=" + foo);
or
foo = "1";
getURL("test.php3", "_self", "GET");
but this one does:
getURL("test.php3?foo=1");
This issure takes place when using NETSCAPE 4.7.
Thanks for help,
Kamil (who just spent 8 hours at that problem).
IE / Netscape Compatibiblity?
Hey. I just finished work on a full-feature site made completely in flash. My problem regards the way it functions in IE vs. Netscape. It seems to run fine in IE, but in Netscape, none of the buttons work correctly (i.e. instead of perfoming the correct action, they just cause the entire movie to re-start itself when clicked). I have only tested the site out on a mac, so I don't know if the pc versions will be any better/worse. The site is quite heavily actionscripted, but Im not sure if this has anything to do with it. Does anybody have any information regarding how netscape & IE interpret flash actionscripting? is there a particular line of code that tends to be buggy in one or the other? Any information would be greatly appreciated.
cheers
john
Devil Netscape...
I don't know whether this is the right board for this question but then I don't know the root of the problem!
Can any one tell me why this site doesn't work on Netscape
(I've downloaded the flash player etc). It works fine on IE
http://www.casalia.co.uk
It just says Movie not loaded when I right click it. Is this something obvious?
Thanks in advance.
*argh* Netscape
I have a problem with a movie clip that contains a "loadmovie" not showing up in Netscape? I've had this problem in the past...works fine in IE (of course).
Anyone have any suggestions?
Thanks
No Sound In Netscape
I have embedded (wav) and (mov) sounds in my Flash 4.0 movie that play great in IE but not Netscape.
Any suggestions or code snippets that can resolve this browser issue?
Netscape Issues?
Hello --
thanks for your time.
I created a simple little flash object that has two buttons to go back and forth between two scenes. Each scene has a dynamic text box that loads variables from an external .txt file.
Here's the url: http://www.es.com
Problem is, I think that there are some real netscape issues right now. The text doesn't display properly, and the buttons don't work. If you want to download the .fla and the .txt to check them out, here's the link: http://www.cinegraff.com/infoTabs/
thanks a lot --
Brig.
Borders In Netscape
Does anyone know how to get rid of annoying borders around flash movies in Netscape.
I've set margins to 0, and made the movie dimensions 100% but I still get an ugly border in Netscape. I then tried adding marginwidth=0 and marginheight=0 and that got rid of the top and left border but it's still there at the bottom and right.
To demonstrate the problem if you open http://www.casalia.co.uk in Netscape and click the availability button the calendar pop-up has a border which ends up cropping the movie and making the calendar unusable.
Needless to say, this all works fine in IE.
Thanks in advance.
---asfunction & Netscape---
I've been using "asfunction" to call functions from text in a dynamically loaded xml document. However, it seems that there is a problem with the "asfunction" working in Netscape (i'm using 4.72). For example, if I try to load a movie like this:
function loadClip(url) {
loadMovie (url, "_level2");
}
and try to call that function from a text link like this:
<a href="asfunction: loadClip, myMovie.swf">Click here.</a>
it works fine in IE, but in Netscape, the movie does not load at all.
I know it's not a problem with the function call because I created a dynamic text field to display the "url" parameter and it displays fine.
I thought it was a problem with the fact that the parameter is not a string. But when I added quotes to it, or tried the String() function, it still didn't work.
Any help would be greatly appreciated.
|