Deep mysteries of javascript/Flash

I have a menu system which employs both Flash and a
javascript popout. See it here:
www.embracethefuture.org.au/test.
Clicking an item in the flash menu calls a javascript function to
open the relevant pop-out menu. Whent he user's mouse moves out of
the menu area, the menu is hidden by js, then a callback is made to
Flash to reset the appearance of the menu (the illuminated white
arrow has to go back to yellow). It works just fine and dandy in
Mozilla etc, and I'm pretty sure it was working in IE6, but in IE7,
Flash cannot add the callback function. I get a javascript error
that there is no such element as 'sidemenu'. I thought it might
have to do with the fact that the flash content is written in by
javascript (to avoid the need to activate controls), but the error
still occurs when I hard code the flash.
I'm not posting any Actionscript or Javascript because I am
almost certain there is no fault there. I was wondering if any guru
out there knows of this problem with Javascript callbacks in IE7
and a solution to it.

I solved this. The problem was that I had converted to
ASP.NET and the flash was embedded in a server form, which created
problems for IE. I found a workaround. Cheers.

Similar Messages

  • Javascript flash intercommunication.

    Hi All,
    I am a new to flash. Hence i am not sure how to ask these
    questions. But let me try my best.
    I have to actually show a banner ad after a flash movie has
    been completed.
    The banner ad is currently served using javascript.
    Here are the questions:
    1. I need to know somehow that flash movies is complete. Is
    there a way i can from javascript figure out that the flash movie
    has ended? I understand that i can call javascript function from
    ActionScript. I don't have have control over flash code, then what
    is the right way to identify the completion of flash.
    2. Is it possible to detect click on the flash component and
    pass control to javascript. Again without embeding any code in to
    flash. That is, will the click on the flash bubble up to the HTML
    container holding it?
    3. Is it possible to force completion of flash movie from
    javascript?
    4. What is the platform support for javascript flash
    intercommunication. I don't see Linux in the support list.
    5. If i cannot do away without having hooks in the flash
    code, please point me to best practices and other articles that's
    there.
    6. What the are points that has to be kept in mind while
    doing this?
    Currently our banner ads render fine in most browsers and in
    most of the platforms. So i need the support on Major browsers and
    platforms.
    Any pointers or information in this regard will he very
    helpful.
    Thanks in advance.
    Cheers,
    Vijay.

    Hi folks,
    I haven't got any response. Did i ask something very silly or
    am i asking in the wrong forum? I need information for evaluation.
    Response even to any one question will be very useful. Any leads
    will also be great. If what i have asked in not feasible kindly let
    me know.
    Cheers,
    Vijay

  • Deep sleep/wake black flash problem of normal?

    When my imac is coming out of a deep sleep such as an hour or more. When the screen wakes and the password screen comes on, it flashes off or black for a quick second then back to password screen. It does not do this during use or a quick sleep just coming out of a long sleep.
    How do I fix this? Is this a major problem worth taking the imac to an apple specialist? Is it a hard drive failure.
    Is this normal please help. Imac is a late 2012 27 inch model with fusion drive.

    Hey there. I am having the same issue with the same computer. Sometimes my screen will stay black longer or flash multiple times as well. I have lugged it to an Apple store twice with video proof of the events happening and after multiple extensive testing the techs say they cannot find out what is causing it or reproduce the effect. For me, it does it when waking from sleep after at least 2 hours. I told them this but apparently it didn't do it in store. After much head scratching and frustration they told me they are going to replace the logic board and ram. No idea if it will work but I'd definitely contact Apple about your situation. If anything changes I'll try to post back here about it.

  • offtopic javascript + flash

    the evil content people are asking me evil questions which i must direct to you:
    is it possible for a flash file embedded on a page to call a javascript function?
    does flash even know about the page it is executing in?
    the problem is that certain links need to popup a div that asks the user "do you want to leave this page?". we have that fully working using javascript, but the links on the flash are not triggering our JS.
    let the flames begin!

    You need to adjust your allowscriptaccess tag, at the least.
    And it's certainly possible that we missed something. If you can
    repro after reading the following then please open a support case.
    Do read "Security changes in Flash Player 9" (
    http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html)

  • Javascript, Flash and Bookmarks

    We are using Captivate 8 to create our courses.  On slide 3 through 12 I have one web object per slide which brings up a web page containing a streaming video player that points at a video hosting company that we rent space on.  Our website is hosting the HTML containing the steaming video player used for each slide.
    On each of these slides (3 through 12) I have some JavaScript (upon page load) which is trying to set the suspend data and making sure that the current slide is being bookmarked.  I have tried calling the suspend data call and even the set Bookmark call and both have the same results:  Nothing happens.
    I am testing it out on a PC running Flash and am using Fiddler to watch the transactions.  Once the videos have started (starting on slide 3), I do not detect any activity to update the bookmark information going back to our LMS.
    Once the student is past all of the slides containing the video web objects, then the bookmarking seems to start working correctly again.
    It appears that Captivate is converting the slides to a Flash Movie with iframes used to display the video itself.  But it appears that while the flash movie is playing the slides with the videos, no communication goes on between the course and the LMS.
    The videos on each slide is only about 5 to 10 minute long.
    We are having more and more students who get somewhere past the 3rd video slide and then their session times out for some reason (usually inactivity) but when they attempt to restart the course, they taken back to the first video slide again.
    We are not ready to go exclusively HTML5, so I need our bookmarking to work with the Flash-version of our course.
    Any help or advice would be greatly appreciated.
    Thanks

    I have used 2 different approaches and neither one seems to work.
    The first was:
    /* Calling a self-invoked function to not pollute the global scope and immediately destroy the scope chain */
    (function(){
      var KeepItActive = {
      checkComms: function() {
      this.showConsoleLogs = 'no';
      try {
      this.currSetExitResult = SCORM2004_CallSetValue("cmi.exit", SCORM2004_SUSPEND);
      if (this.showConsoleLogs == 'yes') {
      console.log("Result is type of " + typeof this.currSetExitResult);
      console.log("Set Exit to Susspend worked =  " + this.currSetExitResult);
      if (this.currSetExitResult || this.currSetExitResult == 'true' ) {
      this.currSlideName = SCORM2004_GetBookmark();
      if (this.showConsoleLogs == 'yes') {
      console.log("Current Slide Name =  " + this.currSlideName);
      } else {
      if (this.showConsoleLogs == 'yes') {
      console.log("Set Exit to Susspend Failed");
      }  catch (err) { //otherwise assume failed.
      if (this.showConsoleLogs == 'yes') {
      console.log("The Catch of the try-catch feature was activated");
      KeepItActive.checkComms();
    The second was:
    /* Calling a self-invoked function to not pollute the global scope and immediately destroy the scope chain */
    (function(){
      var KeepItActive = {
      resetBookmarks: function() {
      try {
      var strBookmark = null;
      var callReturn = null;
      strBookmark = this.SCORM2004_GetBookmark();
      callReturn = this.SCORM2004_SetBookmark(strBookmark);
      }  catch (err) { //otherwise assume failed.
      if (this.showConsoleLogs == 'yes') {
      console.log("The Catch of the try-catch feature was activated");
      SCORM2004_GetBookmark: function () {
         SCORM2004_ClearErrorInfo();
         return SCORM2004_CallGetValue("cmi.location");
      SCORM2004_SetBookmark: function(strBookmark) {
         SCORM2004_ClearErrorInfo();
         return SCORM2004_CallSetValue("cmi.location", strBookmark);
      KeepItActive.resetBookmarks();

  • Pop up Javascript + Flash

    I have a doubt in a syntax error, somebody can help me?
    The script is:
    on(release){
    getURL("javascript:void(window.open('
    http://www.flashmasters.com.br','FlashMasters',
    'width=800,height=600,top='+(window.screen.height/2-600/2)+',left='+(window.screen.width/2 -800/2)+'
    ,scrollbars=yes,toolbar=no,menubar=no,status=no,location=no,resizable=no'))");
    My e-mail: [email protected]
    thanks

    Are you attempting to use javascript to open a file?
    I just want to make sure I understand....
    If that is what you want to achieve, try this
    getURL"javascript:NewWindow=window.open('somefile.html','newWin','fullscreen=Yes');NewWind ow.focus();void(0);");
    Hope this helps
    Doug

  • Flash inserted via Javascript not working in IE.

    I am having issues viewing flash that has been inserted via
    javascript in Internet Explorer. I had to uninstall my flash about
    a week ago. I've since reinstalled flash and reinstalled flash
    player for all my browsers. All flash shows where it hasn't been
    inserted via javascript (ie. youtube.com) but javascript flash is
    not showing at all in IE. Firefox is working fine. Any help in
    resolving this issue for IE would be greatly appreciated.
    Duncan

    I'm having the same exact problem. I've uninstalled,
    reinstalled, the works. Flash works great in my alternate browser,
    Opera, but not with IE.

  • Running javascript .jsx from cs panel under Flash Pro environment?

    Hi!
    To my great surpise I found out I can run .jsx scripts from cs extension panel on Flash Pro.
    Are there any documentation on javascript flash-specific objects exists in the universe (of Adobe)?
    Thank you!

    It seems like I found the answer
    The documentation is here -
    http://help.adobe.com/en_US/flash/cs/extend/index.html
    just need to replace the fl. object to app. when using jsx

  • FlashVars/Javascript Integration -- Neither Working

    A client asked to have a short intro swf on his homepage, at
    the end of which is the main navigation for the site. He also wants
    to be able to jump back to the homepage and SKIP the whole intro,
    just go straight to the navigation in the swf. I tried this first
    using flashvars and then using javascript/flash integration, and
    both are giving me problems. Nothing so far has worked on firefox
    mac, only sometimes on ff pc, never in IE and usually in Safari.
    Can anyone tell me what I'm doing wrong??
    here's the flashvars
    version
    here's the javascript
    version
    in the first frame of the swf, i have the following
    code:

    Yes, beer hurts. Obviously my, 'dont write too much because
    people don't like to read' policy was wrong.
    What I want to do is have an intro in the swf that plays when
    you load the page normally, but can also be
    automatically skipped, if say coming from one of the pages
    deeper in the site. I'm sure there's a simpler way to do this, and
    im all ears, but what i tried to do is have a variable inside the
    swf that is basically a boolean for whether or not to skip the
    intro, that is what the
    if(loc == 'nav'){
    gotoAndStop('links');
    is for. In other words, if the variable loc has the value
    'nav' then skip the intro and go right to the navigation menu.
    Now, in order to set the variable i tried two methods, the
    first was to use flashvars/url query (as in
    src="intro.swf?loc=nav"). that can be seen here:
    flashvars/query
    the second attempt was using js/flash integration, which can
    be seen here:
    js/flash integration
    the thing is neither of them are consistently working. hence
    the 'nothing so far has worked' business....does that
    clarify?

  • Sending Email using flash

    Hello friends,
    I am right now stuck with a deep problem with this flash..
    Please anyone out there who can give me a solution please help..
    Here I am directly stepping into my problem..
    I have a mailer, which is build in flash, which consists of
    the fields, Senders Name, Senders Email, Friends Name, Friends
    Email, and Message. The User will complete all the fields, and when
    clicking on the send button, the email will be delivered. I dont
    know PHP so that i am right now confused how to make it.. anybody
    out there, please help..
    the example of the work i am doing is in www. toneskincare.
    com Please open the link FEARLESS FW and please see how it works..
    i need it in the same way.. so please be kind to help me out in
    this..
    Regards
    Neeraj Bhas

    Neeruttan wrote:
    > Hello friends,
    > I am right now stuck with a deep problem with this
    flash.. Please anyone out
    > there who can give me a solution please help..
    > Here I am directly stepping into my problem..
    >
    > I have a mailer, which is build in flash, which consists
    of the fields,
    > Senders Name, Senders Email, Friends Name, Friends
    Email, and Message. The User
    > will complete all the fields, and when clicking on the
    send button, the email
    > will be delivered. I dont know PHP so that i am right
    now confused how to make
    > it.. anybody out there, please help..
    >
    > the example of the work i am doing is in www.
    toneskincare. com Please open
    > the link FEARLESS FW and please see how it works.. i
    need it in the same way..
    > so please be kind to help me out in this..
    >
    > Regards
    > Neeraj Bhas
    Check
    http://www.kirupa.com/developer/actionscript/flash_php_email.htm
    Or if this one is not clear enough, just google for "flash
    php forms".
    Lots of tutorials with step by step explanations and source
    file samples.
    Best Regards
    Urami
    "Never play Leap-Frog with a Unicorn."
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Invisible Flash?

    Hi guys I am trying to figure out if its possible to overlap two flash files in one html page and not have the background showing in the foremost swf? almost like a png with transparent background?
    Cheers, Oli.

    Another alternative is to use the HTML attribute, WMODE, for the <object>/<embed> tags. (In professional contexts, I use SWFObject (free JavaScript Flash Player detection lib at http://swfobject.googlecode.com) to specify any and all Flash SWF params in HTML. Set WMODE to "windowless" on the topmost SWF and its background will drop out to show anything (HTML elements, including another SWF) behind it. Beware, however, that this behavior places additional burden on the user's computer processor.
    HTH.
    -Robert
    Robert Reinhardt
    Creator, videoRx.com
    Author, Flash Bible series and Video for Adobe Flash CS4 Professional Studio Techniques
    Adobe Community Expert
    http://blogs.flashsupport.com/robert

  • Flash player not working for facebook game "resort world"

    Windows 7, 64bit
    Flash Player ver. WIN 10,1,85,3
    I'm having trouble with the specific game on facebook called "resort world", everytime i try to access it, the page just keeps refreshing itself non-stop.
    I ran the uninstaller, restarted my computer and installed a fresh copy of the flash player again and I still have the same problem. I've also checked http://www.adobe.com/software/flash/about/ and the flash works fine. Also to mention, other games on facebook do work, I have tried this game on internet explorer 32bit as well as 64bit, google chrome and mozilla firefox and they all do the same thing. I have friends with 32bit windows 7 and 64bit windows 7 and the game works just fine. Anyone can help me find a solution to this problem? Thanks

    I was playing YouTube videos for an hour last night then YT says JavaScript/Flash Player Error. So I installed the new version w/o uninstalling the old one & I'm still getting the same error (in Firefox 3). Then I went to Control Panel in Win XP Pro and uninstalled 2 items of Adobe Flash so there were none left. Rebooted. Reinstalled the new version of Flash Player & I get no improvement. I've griped at YT Help, now I'm griping here. I can see YT videos embedded in MySpace Forums. I can watch the 2 videos in my YT Video Log at full screen even but the HQ/Normal button is missing for some reason). But if I try to play any other YT video, I get the JavaScript/Flash Player error message and no video box. I can hardly navigate around my YT channel at all now. I can't do much of anything but log in, log out and look at two video log videos.

  • Flash Player not working for Youtube

    I have Windows Me (yes im very old school) and am using Internet Explorer and for some reason flash player 9.0 will not work for youtube. I was just on youtube, watching some video, listening to music and it was working perfectly fine. I clicked on another video and got a message that 'javascript might be turned off or I got a old version of flash'. I downloaded flash again and youtube still will not work. The weird thing is if I go onto different video websites, I can get videos to work, just not youtube.
    If anyone has any suggestion or things I can do to get youtube to work again, I'd appreciate it a lot. Thanks guys!

    I was playing YouTube videos for an hour last night then YT says JavaScript/Flash Player Error. So I installed the new version w/o uninstalling the old one & I'm still getting the same error (in Firefox 3). Then I went to Control Panel in Win XP Pro and uninstalled 2 items of Adobe Flash so there were none left. Rebooted. Reinstalled the new version of Flash Player & I get no improvement. I've griped at YT Help, now I'm griping here. I can see YT videos embedded in MySpace Forums. I can watch the 2 videos in my YT Video Log at full screen even but the HQ/Normal button is missing for some reason). But if I try to play any other YT video, I get the JavaScript/Flash Player error message and no video box. I can hardly navigate around my YT channel at all now. I can't do much of anything but log in, log out and look at two video log videos.

  • Workaround for Flash Player 10 crash bug

    My company develops Flash based e-learning modules, we've
    been building modules based on our current codebase for a few years
    now without problem. In our most recent project we've run into a
    new bug where the Flash Player completely stalls the browser - this
    has happened to 8 out of 20 users in our trial - seems to be
    specific to WinXP / IE6 / FP10. It happens at different points
    within the module.
    So far we have been unable to reproduce this on any of the
    computers in our office - I've have tried IE6, FP10.0.12.36 and
    FP10.0.22.87. I've even tried testing with a debugging proxy and
    throttled the connection down to 56kb.
    Our code is using the Javascript Flash gateway, the original
    Macromedia code which communicates via GetUrl and LocalConnection.
    I have a hunch that the bug could be triggered during
    communications.
    Does anyone here know about any bugs in FP10 that could be
    triggering this - and more importantly does anyone know of any
    workarounds that I could use to solve the problem. Downgrading the
    Flash Player version at the client's site is unfortunately is not
    an option.
    Advice appreciated,
    Greg.

    We're using the Macromedia Flash Javascript Gateway - we've
    been using it for years without problem.
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=194&threadid=1429543&fo rumid=15
    Is there a new way to do two-way communication between flash
    and javascript?

  • Can I bundle flash player with a free downlodable gaming service that requires flash? Or can I download it for the user without making users to step out  from my product to a completely different flow?

    We have a free downloadable gaming service that requires flash player in order to operate properly.
    I am trying to figure our how can I make users who don't have flash to download it, but I don't want these users to leave my service and start a different download flow in a different website (adobe's) .
    I thought about several different options but don't know what would be considered legal or legit:
    1. download flash along with my product- this means I will have to add another offer screen to my installation? if so, it will damage my conversion.
    2. downloading flash for the user without consent- probably will result with AV alerts
    3. open an iframe for users who don't have flash where I'll ask users to download flash--> that still will redirect users to adobe website to complete the process, which will damage my usage...
    any comments on the above or additional ideas?
    Thanks
    Tom

    Unfortunately, I don't think that our license currently grants the rights that you're looking for.  We do allow for the inclusion of original installers on physical media to address the situation of installation where an Internet connection is not guaranteed to be available; however, the Adobe download center serves an important role in the cost-recovery efforts for the continued development, maintenance and distribution of Flash Player, which is a tremendously expensive undertaking. I think it's unlikely that we would agree to allow the inclusion of Flash Player installers in scenarios where the host installer requires an internet connection.
    Here is a brief summary of the rights granted by this license:
    Licensee is permitted to distribute Adobe Web Players to multiple clients in a closed intranet environment.
    Licensee is permitted to distribute Adobe Web Players to multiple end-users by including the Player installers on CDs, DVDs or other physical media.
    Usage of Adobe Web Players is only permitted for supported platforms; usage rights on non-PC devices or embedded systems are not granted by this license.
    Licensee must use the installers as-is without modification.
    Licensees, at their discretion, are entitled to display the Flash Enabled and/or Shockwave logos on products or intranet sites according to the Style Guide.
    On the plus side, you don't have to worry about serving your users outdated or vulnerable Flash Player versions, and keeping those embedded copies constantly updated would be a lot of overhead.
    Chrome and Internet Explorer on Win8+ always have Flash Player built-in, so those users are generally going to be in good shape (and you shouldn't redirect them to the download anyway, because we'll just give them a message about it already being installed).  IE11 eliminates JavaScript support for conditional comments and various other methods for fingerprinting and targeting IE with IE-specific logic, so you'll want to pay attention to that experience, particularly on Win8+ (i.e. your detection logic might need to be tweaked on this config, if it's depending on isMSIE to do the correct thing... there is a lot of busted Flash detection in the world on this target at the moment...)
    For NPAPI browsers (Safari, Firefox), users are going to have to close the browser to complete the install process, so I don't think that offering the download in an iframe is going to buy you much, and would probably make it more difficult to complete the installation steps, ultimately doing more harm than good. 
    In the case of Safari, the installer re-launches Safari at the end of the installation process, and it does so without reopening all of the previously opened tabs.  I'm hoping that we won't have to live with that issue much longer, but I want to be transparent about the impact to your user experience.  Safari users are going to lose the tab with your site in it during the installation process no matter what. 
    There's also an install mechanism called Express Install, which you can invoke automatically when you detect that Flash Player is not installed, or is below the version that you require.  Off the top of my head, I don't know exactly what happens in every possible install scenario (patch update vs. feature update, by OS and browser).  I think some configs require you to restart and others like IE on Windows don't.  It's all dictated by browser limitations, which are constantly moving targets. 
    In short, we recommend that everyone use SWFObject2 for detecting Flash from JavaScript, and they make it pretty easy to invoke upgrades via ExpressInstall.
    SWFObject: Javascript Flash Player detection and embed script | deconcept

Maybe you are looking for

  • Images will not display in website please help

    im using dreamweaver cs5. My custom images created in photoshop and saved as jpg will not upload into my website. i get a white box with a red x on the corner. I do have my images  in my images folder in my loca files and in my local image folder. It

  • CRMXIF_ORDER_SAVE update and delete

    dear all, i am trying to understand how to use the CRMXIF_ORDER_SAVE to make changes to orders (edits and deletes). it appears there is an old and new style of using this function module. i only have the documentation on the structure passed to the d

  • Problem with GetCustomListTemplates

    Hi I have a  Problem with the follwoing part of code: SPListTemplateCollection listTemplates = siteCollection.GetCustomListTemplates(web);                 SPListTemplate myTemplate = listTemplates[curItemTemplate]; it is showing only in listTemplates

  • Function module to convert date form yyyy/mm/dd to dd/mm/yyyy format

    Can any one tell me Function module to convert date form yyyy/mm/dd to dd/mm/yyyy format?

  • Do's and Dont's of ABAP Programming

    Can anybody give me the list of Do's and Dont's of ABAP programmings