[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

LoadMovie problem in Mozilla Firefox

Posted on 2004-10-20
18
Medium Priority
?
2,169 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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.

Question has a verified solution.

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

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…
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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.

649 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