?
Solved

LoadMovie problem in Mozilla Firefox

Posted on 2004-10-20
18
Medium Priority
?
2,168 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
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.
Suggested Courses

770 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