In de javascript I found the following:
 case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];


What is does is setting the name for Object AND Embed-code... So in
firefox this will result in a conflict...

I (quick) fixed it with this:

case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      case "name":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }


Now It is working...

Mail me for feedback: [EMAIL PROTECTED]




--- In [email protected], "moyosaned" <[EMAIL PROTECTED]> wrote:
>
> I traced/alerted the embed-code... It contains a name and id.. soo
> what I'm I doing wrong
> 
> --- In [email protected], "moyosaned" <maikelsibbald@> wrote:
> >
> > It's working perfectly in IE! but Firefox is giving a
javascript-error.
> > 
> > in my html-template:
> > 
> > 
> > function setDirectory(dir) {
> >     var flash = getMovie("${application}");
> >     flash.setDirectory(dir);
> > }
> >                     
> > function getMovie(movieName) {
> >     if ( navigator.appName.indexOf ("Microsoft") != -1 ) {
> >             return window[movieName];
> >     }
> >     else {
> >             return  document[movieName];
> >     }
> > }   
> > 
> > 
> > 
> > /////////////////////// AND MY SWF ////////////////
> > AC_FL_RunContent(
> >     "src", "${swf}",
> >     "width", "${width}",
> >     "height", "${height}",
> >     "align", "middle",
> >     "id", "${application}",
> >     "quality", "high",
> >     "bgcolor", "${bgcolor}",
> >     "name", "${application}",
> >     "flashvars",'historyUrl=history.htm?&lconid=' + lc_id +',
> >     "allowScriptAccess","always",
> >     "type", "application/x-shockwave-flash",
> >     "pluginspage", "http://www.macromedia.com/go/getflashplayer";);
> >
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to