GetVariable doesn't work in Firefox/Opera

Hi,
I'm trying to get flash object variable via Javascript. But
the code doesn't work for Firefox/Opera but is working well for IE.
Here is an example of JS that I have used:
var movie = window.document.flashMovie;
movie.GetVariable("/obj:variable");
or
movie.GetVariable("_root.obj.variable");
or
movie.GetVariable("obj.variable");
None of them is working.
Thanks for any help.
Michal

Thanks, but this isn't an issue.
The window.document.flashMovie will return the correct flash
object/embed flash movie.
The issue is that the GetVariable method wont return the
object variable. When you try to get an simple variable that is in
the _root timeline, it will return the value. Example:
movie.GetVariable(_url) will return the url of the flash
movie without any problem.
But when you create an ActionScript class with
userName property and then you will create the instance of
it in the _root, you should be able to get it's value. Example:
Flash:
var obj = new SomeClass();
obj.userName = "peter";
JavaScript:
movie.GetVariable("/obj:userName");
or
movie.GetVariable("obj.userName");
This will return
Peter for IE and null for Forefox/Opera.
The same when you use the document.embeds[..].

Similar Messages

  • GetVariable() doesn't work in FireFox for object member variables

    I'm trying to access Flash member variables from Javascript
    using GetVariable. The following line of code works for IE but not
    for Firefox:
    var variable = swf.GetVariable("someObject.someProperty");
    In IE, the GetVariable() function returns the correct value
    for the property. However in Firefox, the GetVariable() function
    returns "null" when trying to access the property. If I just try to
    access the object in Firefox (i.e. swf.GetVariable("someObject"), I
    get a string back (instead of the object that I am expecting). If I
    try to access a variable (such as a string) and not an object using
    GetVariable(), this works in both Firefox and IE.
    Any ideas what I am doing wrong? I suspect that my syntax for
    accessing object member variables in Firefox is incorrect but I
    have not been able to find any documentation on the correct syntax.
    Any assistance would be greatly appreciated.
    Thanks.

    Thanks, but this isn't an issue.
    The window.document.flashMovie will return the correct flash
    object/embed flash movie.
    The issue is that the GetVariable method wont return the
    object variable. When you try to get an simple variable that is in
    the _root timeline, it will return the value. Example:
    movie.GetVariable(_url) will return the url of the flash
    movie without any problem.
    But when you create an ActionScript class with
    userName property and then you will create the instance of
    it in the _root, you should be able to get it's value. Example:
    Flash:
    var obj = new SomeClass();
    obj.userName = "peter";
    JavaScript:
    movie.GetVariable("/obj:userName");
    or
    movie.GetVariable("obj.userName");
    This will return
    Peter for IE and null for Forefox/Opera.
    The same when you use the document.embeds[..].

  • Middle mouse button doesn't work in Firefox

    On my Lenovo Thinkpad the middle mouse button, that scrolls a web page up and down, doesn't work in Firefox only. In all other programs (including IE) the scroll function of the trackpoint middle button works fine, but in Firefox not at all. One solution described at Firefox is to edit a pref for a "ui.trackpoint_hackenabled" parameter, and I did change that value to 1, and restarted Firefox, but NO luck.
    I'm using 4.0.1.

    Nobody got any insights?

  • The wheel of my bluetooth mouse (Thinkpad laser mouse, wireless) doesn't work for Firefox.

    I am using Thinkpad laser mouse (bluetooth). The wheel works for msn, IE etc, but doesn't work for Firefox.
    I have checked with agent via live chat. None of the configuration regarding mousewheel is bold (under about:config), but then there was some problem with internet...
    What should I do? Thanks for the kind help!

    Uninstall the "mouse suite". Worked for me.

  • XML Changer doesn't work in Firefox works in Internet Explorer

    Hi
    Can anyone help me i have a XML Changer doesn't work in Firefox works in Internet Explorer.
    I have posted the page here http://www.endeavourcfl.co.nz/Venues.html as you can see my other flash files work fine, it is only the XML Changer (no pictures appear at all), it was working previously but for some reason it has stopped have tried on many computers, all plugins are up to date and i have FF versions 16 and 17

    Its working fin in latest version of Firefox. <br>
    Update your Firefox <br>
    http://www.mozilla.org/en-US/firefox/all.html
    <br><br><br>
    Please check if all your plugins are up-to-date. To do this, go to the [http://mozilla.com/plugincheck Mozilla Plugin Check site].
    Once you're there, the site will check if all your plugins have the latest versions.
    If you see plugins in the list that have a yellow ''Update'' button or a red ''Update now'' button, please update these immediately.
    To do so, please click each red or yellow button. Then you should see a site that allows you to download the latest version. Double-click the downloaded file to start the installation and follow the steps mentioned in the installation procedure.

  • Firebug 1.6.2 doesn't work on firefox 3.6.13 ; system: winxp 5.01 sp3

    firebug 1.6.2 doesn't work on firefox 3.6.13 ; system: winxp 5.01 sp3
    grayed out firebug icon; browser shows for example in VIEWS menu: firebug.Firebug F12

    i have met the issue, and want to know to know how to solve it?

  • Why the hell ADOBE FLASH PLAYER 10.2 DOESN'T WORK on Firefox 4???

    Adobe Flash Player 10.2 doesn't work on firefox 4. I downloaded 10 times, I installed and again, "Please install ADOBE FLASH PLAYER"

    You appear to have it installed twice. Your system specs show you have both Shockwave Flash 9.0 r28 and Shockwave Flash 10.2 r159 installed.
    What I suggest you do here is to uninstall Flash using Adobe's uninstaller which you can download from here: [http://download.macromedia.com/pub/flashplayer/current/uninstall_flash_player.exe uninstall_flash_player.exe]
    Close Firefox before you run the uninstaller, then reboot.
    Then manually install Flash using this file: [http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player.exe install_flash_player.exe] Close Firefox again before you run it.

  • Babylon 9 Doesn't work in Firefox 4, in Firefox 3.6.17. no problem!???

    Babylon 9 Doesn't work in Firefox 4, in Firefox 3.6.17. no problem!???

    Hi
    I am form Babylon's Technical Support
    To work in all the new browser please update your babylon 9 version using this link
    http://www.babylon.com/redirects/download.cgi?type=100
    We would be glad to help you with any issue that you encountered. Please contact us at [email protected] and we'll help you get sorted out.

  • I have updated to Mac X 10.6.8, now You Tube doesn't work in Firefox; why not?

    Firefox told me for safety reasons I needed to update the OS on my Mac which I did.
    Now You Tube doesn't work in Firefox (though it does in other browsers)
    On line I have have found an add-on which claims to fix the problem, but it comes with warnings that there might be safety issues. (Author not verified)
    My OS system is up to date, as is Firefox.
    Shall I just use another browser?

    Try to update the Flash player.
    *https://support.mozilla.org/kb/Managing+the+Flash+plugin
    *http://kb.mozillazine.org/Flash
    *http://www.adobe.com/software/flash/about/
    *http://helpx.adobe.com/flash-player.html

  • Adobe Flash 11.4 doesn't work on firefox

    I am currently using windows 7 and firefox 14.0.1
    After updating to the latest version of adobe, which is 11.4, anything that requires flash doesn' work. I have tried this on internet explorer 9 and google chrome, which worked perfectly. So, the issue here is that adobe flash 11.4 doesn't work on firefox; also, the browser worked fine before the update. Any help would be appreciated.

    Well, for example: youtube.com, it would say an error occurred; otherwise, those that requires flash would display a white box instead.
    For C:\Windows\system32\Macromed\Flash:
    These are the files within it:
    -FlashInstall- text doc.
    -FlashUtil64_11_4_402_265_Plugin app
    -NPSWF64_11_4_402_265.dll app extension
    C:\Windows\syswow64\Macromed\Flash:
    -FlashPlayerTrust folder
    -FlashInstall text doc.
    -flashplayer.xpt file
    -FlashPlayerPlugin_11_4_402_265 app
    -FlashPlayerUpdaterService app
    -FlashUtil32_11_4_402_265_Plugin
    -mms.cfg
    -NPSWF32_11_4_402_265.dll
    Thanks for your reply to my issue.

  • CpSetValue doesn't work in Firefox and Chrome?

    I've made changes in CaptivateMaintimeline.as as suggested by Jim Leichliter in his blog. And I use the following simple htm:
    <!-- Copyright [2008] Adobe Systems Incorporated.  All rights reserved -->
    <!-- saved from url=(0013)about:internet -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>test</title>
    <script src="standard.js" type="text/javascript"></script>
    </head>
    <body   bgcolor="#F1F4F5">
    <center>
    <div id="CaptivateContent"> 
    </div>
    <script type="text/javascript">
       var so = new SWFObject("test1.swf", "Captivate", "924", "557", "9", "#CCCCCC");
    so.addParam("quality", "high");
    so.addParam("name", "Captivate");
    so.addParam("id", "Captivate");
    so.addParam("wmode", "window");
    so.addParam("bgcolor","#F1F4F5");
    so.addParam("menu", "false");
    so.addVariable("variable1", "value1");
    so.setAttribute("redirectUrl", "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash");
    so.write("CaptivateContent");
    </script>
    <script type="text/javascript">
    //document.getElementById('Captivate').focus();
    //document.Captivate.focus();
    setCaptivateVariable("username", "Ahmet Cetin");
    setCaptivateVariable("useremail", "[email protected]");
    setCaptivateVariable("userid", "58345");
    document.getElementById('Captivate').focus();
    document.Captivate.focus();
    //document.reload;
    //JBL:  Custom Function to set Captivate Vars via Javascript
    function setCaptivateVariable(myVariable, myValue)
    //alert(myVariable + ": " + myValue);
    //alert("");
    document.getElementById('Captivate').jim_cpSetValue(myVariable, myValue);
    </script>
    </center>
    </body>
    </html>
    When I run this in IE8, it works almost! perfectly (when I show $$useremail$$ in label in CP4, it shows only [email protected] - one character missing, but anyway, it is not really important for now).
    The funny thing is this code doesn't work in Firefox or Chrome. But when I enable any of the alert inside the setCaptivateVariable function, it works also almost! perfectly. Any idea?

    Hi Ahmet and welcome to the forums!
    When you use a text caption to display variables in Cp, you also have  the option to choose how many characters get displayed.  The default is  15.  If you know your variable will be larger, set the value  accordingly.  Also, document.getElementById('Captivate') works only for  IE.  document.Captivate works for the rest.  Look at the default.htm publishing  template provided by your Captivate install to see how they detect the  browser.  You can do it their way, but I prefer using jQuery to do the  browser detection.  It's cleaner and easier to implement.

  • Site Advisor doesn't work w/Firefox v5. How can I revert to an earlier revision?

    Your notification said the update to FFv5 was "strongly recommended". If you'd told me siteadviser would be disabled, I'd never have updated.
    Site Adviser doesn't work w/Firefox V5. How can I revert to an earlier revision?
    Thx

    i sympathize. there is absolutely no warning that firefox 4 will not work with my g5, and there is no way to get back to firefox 3.6. hello mozilla!!! what were you thinking?!?!??

  • Java doesn't work on Firefox

    Java works in Internet Explorer but doesn't work in FireFox.
    My installed Java-related programs are:
    Java 7 Update 11
    Java 7 Update 11 (64-bit)
    Java SE Development Kit 7 Update 11
    Java SE Development Kit 7 Update 11 (64-bit)
    I don't have JavaFX or anything else. I need both kits for Eclipse and other things.

    Quote: ''PS Java is obviously working as I visit a site that blocks use of "right mouse click" and that is fine.''
    To avoid confusion:
    *http://kb.mozillazine.org/JavaScript_is_not_Java
    You should see an enabled Java plugin in Tools > Add-ons > Plugins and Java should show on the about:plugins page if Java is installed properly.
    *http://kb.mozillazine.org/Java#Windows_installation_issues
    *http://www.java.com/en/download/help/testvm.xml
    *http://www.java.com/en/download/installed.jsp

  • Firefox crashing AND the scroll feature on my PC finger pad works with other browsers, but doesn't work on Firefox, which just happened since I updated. FRUSTRATING!

    Since I updated, Firefox is crashing daily. The finger scroll feature on my PC works with other browsers, but doesn't work on Firefox. It is also very, very slow, but other browsers aren't. I can't use it anymore until it's fixed.

    To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
    If you see a warning then you can confirm that you want to access that page.<br />
    *Use the Filter bar at to top of the about:config page to locate a preference more easily.
    *Preferences that have been modified show as bold (user set).
    *Preferences can be reset to the default via the right-click context menu if they are user set
    *Preferences can be changed via the right-click context menu: Modify (String or Integer) or Toggle (Boolean)
    *http://kb.mozillazine.org/about:config

  • New version doesn't work on Firefox

    Hello,
    Adobe Flash Player 11.8.800.94 doesn't work on Firefox 23.0.1 ( To view this page ensure that Adobe Flash Player version 11.1.0 or greater is installed)
    but it's ok on Chrome 29.0.1547.66 m . Am I alone why this problem ?
    Thx.

    mmmm also doesnt work for me on Chrome

Maybe you are looking for

  • How can I display my macbook to ipad(s) using mirroring

    There are plenty of times when I want to show the people in a meeting what i'm looking at or doing on my laptop. If they have an ipad, is there a way to "mirror" my macbook to their ipad(s) directly without signing in to skype/google+/any other video

  • Creation of an Old Asset

    Hi All, Our Company had purchased some similar assets about two years back through direct purchase. But the company did not create any asset master record for those assets and even did not calculate the depreciation. But these assets are now under op

  • Photoshop Elements 4.0 on macbook pro?

    Hi! Anyone know if it is possible to install Photoshop Elements 4.0 on macbook pro 10.6.4? Cause when I install it, restart computer, open the application then it says that something is invalid, name, licence nr, ... But I know that everything is cor

  • User exit for creating/deleting vendor master

    Hello Gurus, I have this task that to update this customized transaction we have for the certification list of the vendors. What they want is every time that there is new vendor master to be created or deleted in XK01, the customized transaction we h

  • IPhone 5 doesn't work with Bose sound dock using the 30-pin adapter.

    I just upgraded to iPhone 5.  To my huge disappointment, I can not use it with my Bose sound dock using the 30-pin adapter. That is just ridiculous, after spending so much money!!! I tried using another cable and it works but sound is of poor quality