Firefox SearchSelectionElement for embed or object

  •  10-29-2008, 10:10 AM

    Firefox SearchSelectionElement for embed or object

    Hi
     
    We are trying to make it easier for our users to alter existing flash videos in HTML by creating a GUI that when clicked will show the current selected flashvideo and parameters and allow them to change them.
     
    I have this working fine in IE, but when trying it in Firefox i have a problem.
     
    I have a line

    var em = ed.SearchSelectionElement('EMBED');

    In IE this finds the embed no problem and allows me to extract and update the params, but in firefox it doesnt find anything. On further investigation it appears its because in Normal view all flash stuff is shown as a graphic (cetempFlash). When i use code to get the selection I get this graphic not the <embed> i was expecting. Do you have a function that can get at the correct code? You obviously somehow link this graphic to the correct HTML, because when you switch to the HTML view you see the HTML you are expecting i.e. <embed>........</embed>.
     
    So in Firefox is there a function that gets the selected flash object and not the representative image?
     
    thanks
     
     
     
     
View Complete Thread