| Welcome to Webforumz.com. |
|
Apr 14th, 2008, 14:54
|
#1 (permalink)
|
|
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 104
|
firefox problem
hello,
can someone tell me why loadMovie works alright in IE and not at all in firefox? and is there a fix for it?
thanks in advance,
MArieke
|
|
|
Apr 14th, 2008, 15:46
|
#2 (permalink)
|
|
Chief Moderator
Join Date: Oct 2007
Location: UK
Posts: 715
|
Re: firefox problem
Could you post the code you're using?
If you're using the base attribute, try removing it and see if that fixes anything.
__________________
|
|
|
Apr 14th, 2008, 16:22
|
#3 (permalink)
|
|
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 104
|
Re: firefox problem
Hi,
Im not sure what you mean by base attribute:P,but i'm using a rather simple code: I've used it before without problems..only difference now is its a swf i made out of an flv..which i had to upload aswell
- Code: Select all
loadMovie("http://www.gotoandflash.com/sanderbeenen/video1.swf", rnd3_mc);
and on the stage theres a mc called rnd3_mc
|
|
|
Apr 14th, 2008, 16:28
|
#4 (permalink)
|
|
Chief Moderator
Join Date: Oct 2007
Location: UK
Posts: 715
|
Re: firefox problem
Sorry, I meant the HTML code you're using to embed the swf.
__________________
|
|
|
Apr 14th, 2008, 16:36
|
#5 (permalink)
|
|
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 104
|
Re: firefox problem
uhm i never manually changed the html..i published the html from within Flash cs3. it works alright in IE,but heres the html code,hope it sheds a light:
- Code: Select all
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>website_apr14</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<center>
<body bgcolor="#000000">
<!--url's used in the movie-->
<!--text used in the movie-->
<!--
99%
-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '1024',
'height', '768',
'src', 'website_apr14',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'website_apr14',
'bgcolor', '#000000',
'name', 'website_apr14',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'website_apr14',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/s...ersion=9,0,0,0" width="1024" height="768" id="website_apr14" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="website_apr14.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="website_apr14.swf" quality="high" bgcolor="#000000" width="1024" height="768" name="website_apr14" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</body>
</center>
</html>
Last edited by ahwell; Apr 14th, 2008 at 17:07.
|
|
|
Apr 14th, 2008, 16:36
|
#6 (permalink)
|
|
New Member
Join Date: Apr 2008
Location: London, UK
Age: 25
Posts: 8
|
Re: firefox problem
I know there is an issue when it comes to Javascript/swf in Firefox at times, are you using JSP pages?
|
|
|
Apr 14th, 2008, 16:43
|
#7 (permalink)
|
|
New Member
Join Date: Apr 2008
Location: London, UK
Age: 25
Posts: 8
|
Re: firefox problem
Sorry, cannot edit my posts. My thought is that your AS-code could refer to files via a '\'.
IE can handle '\', but Firefox (and some versions of Opera) will require all paths to be specified as '/'
Hope that helps?
|
|
|
Apr 14th, 2008, 17:04
|
#8 (permalink)
|
|
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 104
|
Re: firefox problem
ok im lost here. Im not using JSP pages (at least i dont think so) and I dont know what you mean by referring to files via a '/' or '\'..I've never used a '\' ..( I had to search for it on my keyboard just now)
I think the problem lies in the flv file. FF has troubles reading it into the SWF or so..
|
|
|
Apr 14th, 2008, 17:15
|
#9 (permalink)
|
|
New Member
Join Date: Apr 2008
Location: London, UK
Age: 25
Posts: 8
|
Re: firefox problem
Hiya,
What I meant was: if you are loading external files into a movie then you would normally use something like this:
- Code: Select all
loadMovie("content/your_content.swf","movie_you_are_loading_content_into");
However, if you are using
- Code: Select all
loadMovie("content\your_content.swf","movie_you_are_loading_content_into");
Then this will not work in FFox and some versions of Opera.
Other ideas:
1) Is the flv on the same site as the swf? If not then you need to enter the full (absolute) path
2) It could be that the FLVplayback component is not working correctly. Try to drag the FLVPlayback component onto the stage (different layer so that you can remove it if it doesn't work), and give it an instance name, say "moviePlayer".
Now try:
- Code: Select all
on(release) {
moviePlayer.contentPath = "mymovie.flv";
moviePlayer.play();
}
Does that help?
|
|
|
Apr 14th, 2008, 19:13
|
#10 (permalink)
|
|
New Member
Join Date: Apr 2008
Location: London, UK
Age: 25
Posts: 8
|
Re: firefox problem
Quick update on the situation: I had a chat with ahwell, and it turns out that the flashfile as looking for a connection to the same path within 2 files at the same time (once in the main movie to load the video and twice in total in the main movie and the video movie. Firefox classed this as an unsafe 'connection', but disabling absolute paths and having the video movie in the same folder as the main movie seems to have fixed the issue 
|
|
|
Apr 14th, 2008, 19:17
|
#11 (permalink)
|
|
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 104
|
Re: firefox problem
Thanks ! Im gonna enjoy a very pleasant evening now!
|
|
|
Apr 17th, 2008, 11:44
|
#12 (permalink)
|
|
New Member
Join Date: Apr 2008
Location: Sunderland
Age: 20
Posts: 2
|
Re: firefox problem
Im having problems with flash in firefox too. It seems to be alright to start with and then when one part of the swf file doesnt work, all the actions in the file stop working. any help?
|
|
|
| Thread Tools |
|
|
| Rate This Thread |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|