sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Weird bug with WebDialog and Flash

    Scheduled Pinned Locked Moved Developers' Forum
    10 Posts 4 Posters 771 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mocathe1st
      last edited by

      Hello there.

      I've just come across a really strange problem with the SketchUp webdialog and flash applications. I can link a web dialog to my flash based gui html page and at first it appears to work correctly. The problem, however, is that the return key does not seem to work within the webdialog at all. All other keyboard keys work fine but the return key is completely ignored (as if its blocked). I've tried various tests including putting Keylisteners into my flex app to see what keys are recognised (only the esc and return keys aren't). I've also tried creating a new script that only opens a web dialog with a link to an external flash page and I get the same problem with this (so it doesn't appear to be a problem with my code). The external test page I used was: http://examples.adobe.com/flex2/inproduct/sdk/explorer/explorer.html

      I don't know if anyone has come across this before, but it is a real problem for me as I have built the gui for my plugin using Adobe Flex and I have some textareas that I need the users to fill out (which require multi-line input) so not having the return key is a real problem. Using normal HTML textareas seems to work fine and loading up Flex pages in normal Internet Explorer also seems to work fine.

      Any help would be most appreciated.

      Best Regards,
      Malcolm Murray

      1 Reply Last reply Reply Quote 0
      • scottliningerS Offline
        scottlininger
        last edited by

        Mocathe,

        This problem is somehow familiar to me. It's been a while since I did serious flash work in webdialogs, but I do recall having a problem like this. But what I can't remember is what I did to fix it.

        A few questions that'll help me help:

        1. Are you on a Mac or PC? If on a PC, what version of IE do you have installed?

        2. If you bring up a basic HTML form, does the enter key work? Or is it only flash text entry?

        3. Do you see the same problem regardless of what tool you have selected in SU?

        Cheers,

        • Scott Lininger
          SketchUp Software Engineer
          Have you visited the Ruby API Docs?
        1 Reply Last reply Reply Quote 0
        • M Offline
          mocathe1st
          last edited by

          Hi there,

          This problems appears on a PC, I haven't tried it on a Mac yet as there are a couple of Flash security issues that I need to resolve before it loads on the Mac. I'll try it with an external flash site that doesn't need local access though and post my results here.

          Basic HTML TextAreas do seem to work fine so that I can enter new lines etc without any issue. It only seems to be with flash text entry and only from within SketchUp. Opening the same page in the normal IE has no problems at all.

          I've just tried selecting different tools etc and the problem still seem to be there regardless of the tool selected.

          Its really puzzling as to why the enter key would be disabled (the esc key also doesn't appear to work based on the KeyListener test I did) while the other keys work fine.

          Thanks for your help, any ideas as to what is causing this would be most welcome.

          Thanks,
          Malcolm

          1 Reply Last reply Reply Quote 0
          • scottliningerS Offline
            scottlininger
            last edited by

            Malcolm,

            Would you be able to share a minimal script + swf that demonstrates the problem? Then I could load it on my various test setups and see if there's a pattern.

            Super-hacky workaround idea: one might be able to set up an onKeyPress event listener at the HTML level, and then pass the captured enter key to flash via javascript. (What I don't remember is if the window even receives key presses when focus is on the Flash movie...)

            Cheers,

            • Scott Lininger
              SketchUp Software Engineer
              Have you visited the Ruby API Docs?
            1 Reply Last reply Reply Quote 0
            • V Offline
              Viskiz
              last edited by

              Hi!
              I have the same problem with silverlight. The difference is that letter and number keys does not work, but space, backspace, arrow, home and etc. keys work. Does anybody have solution for this?

              1 Reply Last reply Reply Quote 0
              • V Offline
                Viskiz
                last edited by

                Someone?

                1 Reply Last reply Reply Quote 0
                • scottliningerS Offline
                  scottlininger
                  last edited by

                  Viskiz,

                  Unfortunately we haven't yet discovered a reliable workaround for this problem.

                  I assume you're on the mac as well? Or are you seeing this on PC as well?

                  • Scott Lininger
                    SketchUp Software Engineer
                    Have you visited the Ruby API Docs?
                  1 Reply Last reply Reply Quote 0
                  • JD HillJ Offline
                    JD Hill
                    last edited by

                    On Windows, setting <param name="windowless" value="true" /> in your Silverlight object tag (i.e. in your html page) will allow the keyboard to work correctly. The same is not necessary on OSX.

                    Developer - Bella Render

                    1 Reply Last reply Reply Quote 0
                    • V Offline
                      Viskiz
                      last edited by

                      I'm on PC.

                      The problem is solved , thank you, JD Hill!

                      1 Reply Last reply Reply Quote 0
                      • V Offline
                        Viskiz
                        last edited by

                        I've just noticed, that the problem still remains with the 'Enter' key. Though it works in IE, but it doesn't if it's opened via Sketchup web dialog. Any ideas?

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post
                        Buy SketchPlus
                        Buy SUbD
                        Buy WrapR
                        Buy eBook
                        Buy Modelur
                        Buy Vertex Tools
                        Buy SketchCuisine
                        Buy FormFonts

                        Advertisement