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[..].

Similar Messages

  • 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[..].

  • Bookmark keyword search doesn't work on Firefox for Android

    If I create a bookmark and assign it a keyword, it does not show in the results when I type the keyword into the address bar.
    Is this a known issue? I use bookmark keywords on Desktop and it works fine.

    Its working fine for me.
    Could you Close the firefox completely from the background too.
    Restart your mobile and give a try.
    Try with Beta version also
    *https://play.google.com/store/apps/details?id=org.mozilla.firefox_beta

  • 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?

  • 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?

  • 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.

  • 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

  • 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

  • I can't sign into iCloud because my Apple ID doesn't work there.  For some reason it gave me a .mac email and I don't remember the password.  When it gives me the option to reset my password, it's my Apple ID password which I don't want to do.

    I can't sign into iCloud because my Apple ID doesn't work there.  For some reason it gave me a .mac email and I don't remember the password.  When it gives me the option to reset my password, it's my Apple ID password which I don't want to do.  I have ended up chaning my Apple ID 3 times lately and I still can't get to my cloud management.  What do I do?

    Check if your Data and Time, and Time Zone are set to automatically: OS X Yosemite: Set the date and time on your Mac
    Is this issue also appearing on new user account:
    Isolating an issue by using another user account - Apple Support
    Mac OS X: How to troubleshoot a software issue - Apple Support
    Is this issue also appearing in safe mode: OS X: What is Safe Boot, Safe Mode? - Apple Support

  • IMac 24" iMac  (iMac7,1), Intel Core 2 Duo 2,8 GHz  Ram 4 MB running OS 10.6.8: impossible upgrade to Mac OSX Mavericks. Already created second account, according to apple online support, but still doesn't work. Thanks for help.

    iMac 24" iMac  (iMac7,1), Intel Core 2 Duo 2,8 GHz  Ram 4 MB running OS 10.6.8: impossible upgrade to Mac OSX Mavericks. Already created second account, according to apple online support, but still doesn't work. Thanks for help.

    Your Mac is definitely one of the supported models? http://www.apple.com/uk/osx/specs/
    If so, what happens when you try to download? Is it a case of nothing happens? If so, take a look at the suggestions under 'Stalled Download' in this link:
    http://www.wired.com/gadgetlab/2013/10/mavericks-issues-and-fixes/#slideid-23477 1
    Also, some usrs have found that logging out of the Mac App Store and then back in again and starting over has kick-started the download. It seems that the 5+gb download can take a long time to give any feedback as to what's happening.

  • Hi I am using iphone 4, since last few days i am facing problem in touch screen at times it doesn't work at all for 5-10 mins and then it works out itself. Can anyone pls suggest what the problem is and how it can be sorted out?

    Hi I am using iphone 4, since last few days i am facing problem in touch screen at times it doesn’t work at all for 5-10 mins and then it works out itself. Can anyone pls suggest what the problem is and how it can be sorted out?

    Did you recently updated to 7.0.4? Even for me same also issues.

  • 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.

Maybe you are looking for

  • How to read the contents of Uploaded File Data?

    Dear Experts, I want to develop one webdynpro application in which the iview contains the FileUpload option.and after uploading i need to read the contents of the file. Can you plz guide me how to achieve this? its very much helpfull if u have any sa

  • From MacBook to TV in streaming...

    I'm just passed from my old PC on a world with only Mac (sorry for my English, is not my mother language), now I have one MacBook, one Ipad and One old AppleTV. I have a lot of file .avi on my Macbook (or better they are on an external HD), if I want

  • How to select iPhone as main speaker? (Stuck on a dock connecter)

    I have a Logitech dock connector that I sometimes connect my iPhone to play on. When connected, my iPhone's speaker output switches to 'dock connector' and when I disconnect it it turns back to the default 'iPhone' speaker. It now becomes stuck on th

  • Configuration of loans

    Hi, We have a simple requirement: The Company code takes some loans from the bank. They need to be maintained and tracked in the loans management along with the relevant details. Can some one please guide the configuration path for the same. Thanks A

  • HT201276 How to unfreeze Mac in Force Quit Applications? Only mouse isresponding.

    Mac desktop was frozen in Firefox. I used the option-command-esc and this did not unlock. Also, shut down with on-off switch, unpluged, and held on-off for over 1 minute. Rebooted and now getting a file with question mark flashing. Any ideas out ther