Solved

LoadMovie problem in Mozilla Firefox

Posted on 2004-10-20
18
2,161 Views
Last Modified: 2008-03-10
Hey,

When testing my Flash web app in FireFox it doesn't work (i.e. works in IE)

The problem I know is associated to loading external SWF files when using a base folder.  Here is some syntax I use:

[On Frame 1 of the base SWF, one frame before the preloader frame:]

....
_root.customerData_mc.loadMovie("FlashFiles/CustomerData.swf", "GET");

Note: This file never gets loaded into the BaseApp.swf.  The object html tag looks something like this:

<OBJECT....
 <PARAM NAME=movie VALUE="http://www......./flashapp/FlashFiles/BaseApp.swf">
<PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
 <PARAM NAME=="BASE" VALUE=="http://www......./flashapp/FlashFiles/">
  <EMBED src=""http://www......./flashapp/FlashFiles/BaseApp.swf" menu=false quality=high bgcolor=#FFFFFF  WIDTH="512" HEIGHT="384" NAME="FW_Game" ALIGN=""
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE=""http://www......./flashapp/FlashFiles/"></EMBED></OBJECT>


What's the easiest resolution to get it working in FireFox as well as IE?

Let me know if you need any other info, many thanks.



0
Comment
Question by:fakram
  • 7
  • 5
  • 2
  • +2
18 Comments
 
LVL 16

Expert Comment

by:vickerleung
ID: 12365770
fakram,

A method you may try
I am not sure if it works

1. Inside Flash
all the URL use absolute address
i.e. FlashFiles/CustomerData.swf change to http://www......../FlashFiles/CustomerData.swf

The reason behind is that Mozilla will prefer absolute path =.=""

Vicker
0
 

Author Comment

by:fakram
ID: 12365967
Doesn't seem to work either, but can you clarify what you think the Object should be (i.e. the Base parameter)?
I tried absolute and relative combinations with no luck :(
Any other ideas?

0
 

Author Comment

by:fakram
ID: 12365995
...I mean the the OBJECT PARAM tags
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 16

Expert Comment

by:vickerleung
ID: 12366274
fakram,

I am sorry that my method don't work
But I do have some concern on the syntax you are using

<PARAM NAME=="BASE" VALUE=="http://www......./flashapp/FlashFiles/">
Is this necessary to be double = ?

<EMBED src=""http://www......./flashapp/FlashFiles/BaseApp.swf" menu=false BASE=""http://www......./flashapp/FlashFiles/"></EMBED></OBJECT>
Why double "" is these lines??

Vicker
0
 

Author Comment

by:fakram
ID: 12366303
Sorry, I actually edited that object tag and put in double quotes accidently they are actually single quotes in the actual web page.  Basically syntax is fine.

0
 
LVL 16

Expert Comment

by:vickerleung
ID: 12366980
0
 
LVL 5

Expert Comment

by:badrulnm
ID: 12367439
The only problem I can think of right now is the syntax is wrong. Please post the <EMBED> tag.
0
 

Author Comment

by:fakram
ID: 12368207
vicker - the page doesn't refer to the BASE parameter which is the crux of the problem here.  I should have emphasized that the Flash app works in both browsers when there is no BASE parameter and all SWFs are placed in the same folder as the launching web page.

badrulnm - the syntax I am using is the same as that shown below, I have just substituted the names of the path for privacy reasons.

....
<EMBED src="http://www.clientwebsite/flashapp/FlashFiles/BaseApp.swf"  menu=false quality=high bgcolor=#FFFFFF  WIDTH="600" HEIGHT="400" NAME="BaseApp" ALIGN=""
 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer" BASE="http://www.clientwebsite/flashapp/FlashFiles/"></EMBED></OBJECT>
0
 

Author Comment

by:fakram
ID: 12368281
Is it possible to increase the number of points this question is worth, it is already 500 points?  I can add another 500 points if possible!
0
 
LVL 16

Expert Comment

by:vickerleung
ID: 12372334
fakram,

Try one more

That is keep embed base only
Remove the param base

Usually using just one of it is already enough

Gd luck :)
Vicker

(Sorry if I posted too much unwork answers.... T__T )
0
 

Author Comment

by:fakram
ID: 12372495
It's fixed now - no worries and the param base is there.  Actually it doesn't make sense to remove it because the OBJECT tag and it's PARAM tags are not read by Firefox.  Hey man I ain't a newb :)  Thanks anyway.

However, I am not sure what i did to make it work!
0
 
LVL 5

Expert Comment

by:badrulnm
ID: 12377061
fakram,

You're right the syntax is fine. Glad it's fixed. It could be browser caching.
0
 

Author Comment

by:fakram
ID: 12377082
Actually the syntax was the issue.  Browser caching caused me to think the problem had gone away LOL

For all people searching for a fix this is what to do:

DO NOT use the BASE attribute in the EMBED tag.  Remove it completely if you use relative URLs in a LoadMovie.
Then it will work with Firefox!

Who do I assign points to, myself? :)

Let me know if you think you deserve some.

0
 
LVL 16

Expert Comment

by:vickerleung
ID: 12377296
fakram,

Haha, you are an expert here~~!!

Maybe you can simply open another account to collect those points :p

Vicker
0
 

Expert Comment

by:AKERS_76
ID: 13238825
It would seem I answered my own question, so I would like a refund please :)
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 14451998
PAQed with points (500) refunded

DarthMod
Community Support Moderator
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Can't find all of the preferences on Flash Pro 2 488
Video sharing with user login 3 205
YouTube video issue 28 115
flash professional 3 11
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question