Solved

LoadMovie problem in Mozilla Firefox

Posted on 2004-10-20
18
2,158 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
 
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
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.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now