Solved

LoadMovie problem in Mozilla Firefox

Posted on 2004-10-20
18
2,163 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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

828 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