1 2 Previous Next 59 Replies Latest reply: Oct 18, 2014 11:38 AM by Steve L Go to original post RSS
      • 40. Re: Flash CS5 code hinting not working?
        DigitalChristian Community Member

        I found an interesting behaviour in CS5 regarding parameters hints not showing in a method:

         

        Say, if you had a class something like this:

         

        package

        {

             public class MyClass

             {

                  public function MyClass(hello:String = "world"):void {}

             }

        }

         

        In your flash IDE, type out this var myClass:MyClass = MyClass(

         

        The resulting code hint would be: MyClass() where it should show MyClass(hello:String = "world")

         

        The Solution? Remove THAT :void from the method..

        • 41. Re: Flash CS5 code hinting not working?
          Tareq AlJaber Employee Hosts

          @DigitalChristian

          I was actually able to reproduce in both Flash Pro and Flash Builder. The reason i mentioned Flash Builder is because Flash Pro somewhat using the Flash Builder code hint engine. I am going to go ahead and file a bug against both products. Thanks for reporting it.

           

          Tareq

          • 42. Re: Flash CS5 code hinting not working?
            Orpical

            Just want to report that I had this problem and deleting the cache following the instructions from Nivesh in post #12 fixed the prob immediately. THANK YOU!

            • 43. Re: Flash CS5 code hinting not working?
              DigitalChristian Community Member

              I'm experiencing same problem too, and it's quite frustrating. Sometimes it works, and sometimes it doesn't work for no apparent reason. It wastes our development time, and this bug should be a high priority. Forget all your 'look and feel' enhancements to the product which we, customers, don't really care. It is the reliability of the software which matters.

               

              So for example, I had two .fla in the same directory - and they both had same actionscript source path settings. The code hint would work with one .fla but won't work at all for the other .fla (even the in-built library). One other time, I had a project where the code hint would work prefectly fine - and then the next day, it no longer work. Furthermore, sometimes the built-in library would work while my custom library didn't.  I can't even begin to explain why, as it's just totally random.

               

              I have even tried clearing out the code cache and restarted my computer multiple times. This doesn't help.

               

              I had my flash project located in a folder that contains other flash projects and various files such as .bmp, .zip, .txt, .csv and so on and placed all my class files inside a folder called 'scripts' which contains ONLY AS3 class files. There was about 150 classes within 40 subfolders. The code hint won't work until I placed the same flash project inside 'scripts'.

               

              I have prepared a video to show you what I was experiencing. The proof is right there in the video.

               

              http://screencast.com/t/OfrlzF0pUUAW

               

              Funny thing. I even tried creating a new folder and placed the problematic project inside it. Still the same problem.

               

              I am more than glad to assist you tracking down this bug. I'm an experienced computer user, so don't be shy to ask me for technical stuff.

              • 44. Re: Flash CS5 code hinting not working?
                Tareq AlJaber Employee Hosts

                Could you please try this and let me know if that solve your issue

                 

                http://flashauthoring.blogspot.com/2010/05/code-hints-is-unable-to-build-code.html

                 

                 

                Thanks,

                tareq

                • 45. Re: Flash CS5 code hinting not working?
                  DigitalChristian Community Member

                  Hello Tareq,

                   

                  Thanks for the suggestion, but I have already tried that. I even tried using a value of 5000.

                   

                  Regards,

                  Joshua.

                  • 46. Re: Flash CS5 code hinting not working?
                    socalfish-fDJTBM Community Member

                    Tareq,

                     

                         Sorry no go. I read somewhere about this. Tried it once and it didn't work. My system crashed a couple weeks back so all my settings were lost. But I did add this per the link. It appears that Adobe never really had code hints on objects with reserve wording "_mc" for movie clip. In CS4 worked but CS5 is all new functions and has been removed. The only way to display code hints using a object is to declare the object... IE var ClipName:MovieClip then you can use the name and it brings up code hinting. Miss the code hinting though!

                     

                     

                     

                     

                     

                    Jim Crawford

                    Web & eLearning Developer

                    714.625.5365

                    jc2media.com

                    • 47. Re: Flash CS5 code hinting not working?
                      Tareq AlJaber Employee Hosts

                      Hi Jim,

                       

                      Yes, Adobe Flash CS5 code hint model does not provide code hints for "_mc,_btn,etc..".

                       

                       

                      Thanks,

                      tareq

                      • 48. Re: Flash CS5 code hinting not working?
                        socalfish-fDJTBM Community Member

                        All good. If you use the Ctrl + Spacebar then you can get code hints up. I had forgotten about this until I went back in and read my old posts.

                         

                        Good try though!

                         

                        Jim

                         

                         

                         

                        Jim Crawford

                        Web & eLearning Developer

                        714.625.5365

                        jc2media.com

                        • 49. Re: Flash CS5 code hinting not working?
                          DigitalChristian Community Member

                          Hello Tareq,

                           

                          Any luck on finding the cause of the problem as shown in the video? When can we expect a Flash CS5 patch?

                           

                          Regards,

                          Joshua.

                           

                          Edit: Unbelievable, I managed to find the solution. In Actionscript 3.0 source path settings, I re-added '.' (dot) and code hinting worked beautifully within my flash application. Prior to this, I only had the path to the root of my class package defined. Who would have thought that removing '.' would screw up code hinting..

                          • 50. Re: Flash CS5 code hinting not working?
                            Tareq AlJaber Employee Hosts

                            the "." is your current working directory. Code hint engine won't look in your current working directory if the "." is not there.

                             

                            Thanks,

                            tareq

                            • 51. Re: Flash CS5 code hinting not working?
                              DigitalChristian Community Member

                              I know that.

                               

                              If you exclude the '.' from your source path settings, no code hint works within flash application (i.e. its timeline)

                               

                              For example,

                               

                              1. Create a brand new Flash CS5 application

                              2. Modify Actionscript Settings, and remove '.' from the source path.

                              3. On layer one of the movieclip timeline, click on the first frame and press F9 to bring up Actionscript panel

                              4. Start typing in --> import flash.

                               

                              Result - no code hint.

                               

                              The confusing part here is that 'my working directory' has nothing to do with flash or fl packages.

                               

                              I should be able to remove '.' because the working directory could be too large, i.e. full of other old .fla or class files. So, that is why it is useful to specify a folder in which flash code engine will only look in.

                              • 52. Re: Flash CS5 code hinting not working?
                                Gatoooman

                                I recently had the same blue arrow problem when writing an .AS file.

                                 

                                After cursing for an our i noticed that I had an AS2 fla opened, and my .as was set to compile that fla, instead of the AS3 fla I wanted it to compile.

                                 

                                That was the problem.

                                 

                                What i did is simply select the correct fla on the drop down menu placed below the file flaps, and press ctrl+enter (compile).

                                 

                                Then the codehint worked perfect

                                • 53. Re: Flash CS5 code hinting not working?
                                  Ninarama Community Member

                                  Thanks for that link!

                                   

                                  Just to give some positive feedback here.

                                  In my case, code hinting also stopped after some time, NO yellow warning sign, but it just didn't kick in.

                                   

                                  I followed the instructions on the link you provided:

                                  http://flashthusiast.com/2010/06/04/tips-for-code-hints-in-flash-cs5/#more-369

                                   

                                  ...and this got it all working again!

                                   

                                  Reading this thread I almost had the impression that nothing would work, but this just worked like a charm.

                                  • 54. Re: Flash CS5 code hinting not working?
                                    Tiago Roldao

                                    For OSX:

                                     

                                    Well, this worked for me (but I haven't the slightest idea why): I had folders with non-roman characters in the path to the .fla's folder. After extensive trial-and-error saving, I realized that the problem (in my case) was due to that, and now it works like a charm!

                                     

                                    I tried this AFTER adding the project file cap line to the prefs file, and (again, NO IDEA why) files already saved to my computer on non-roman titled folders are working as well (files not saved in a MAC, but in a Windows computer - ANY file I save in a folder with non-roman characters on ANY of the folders in it's path doesn´t work, even if it is a blank file with just stop() on frame 1)

                                     

                                    Hope this works for you!

                                    • 55. Re: Flash CS5 code hinting not working? - Deleting CodeModel folder worked
                                      thepopoman Community Member

                                      Deleting the “CodeModel” folder worked for me. 

                                       

                                      However the location of this folder is not where someone said it was for me on my mac.


                                      Applications–>Adobe Flash CS5 –> Common –> Configuration –> CodeModel

                                       

                                       

                                      Even if this is the fix … why does this work?… and how do I prevent this from happening again?

                                       

                                           Dave

                                      • 56. Re: Flash CS5 code hinting not working?
                                        thepopoman Community Member

                                        I didn't realize that this path mentioned above does exist. It's just that OS X 10.7 hides the ~Library. I deleted the CodeModel folder under my Flash Application and it seemed to fix the code hints problem.

                                         

                                        I have not tried deleting this ~Library CodeModel folder yet but if I encounter more code hint problems I will delete this CodeModel folder path shown below:

                                         

                                        CodeModelPath.jpg

                                        • 57. Re: Flash CS5 code hinting not working?
                                          asiabackpacker Community Member

                                          Try going into your preferences, and turning code hinting off, close preferences, then reopen preferences and turn code hinting back on. That worked for me, and now I'm happy again

                                          • 58. Re: Flash CS5 code hinting not working?
                                            egonrp_ptbr

                                            Hi, everyone!

                                             

                                            Deleting "C:\Users\<user>\AppData\Local\Adobe\Flash CS5\<language>\Configuration\CodeModel" subfolders worked for me!

                                            Configuration: Flash Professional CS 5.5 PT_BR (11.5.1.349)  / Windows 7 - 64 bits 

                                             

                                            Reference:

                                            12. Jul 16, 2010 2:02 PM (in response to matteosistisette)

                                             

                                            Thanks, Nivesh!

                                            Egon

                                            • 59. Re: Flash CS5 code hinting not working?
                                              Steve L

                                              Hi All

                                               

                                              I may have figured something out regarding code hinting.

                                               

                                              Overview: I am testing a simple interaction with ExternalInterface and one button (movieclip) on the stage. The movieclip has one event listener and calls one function. I am using the Flash IDE to create everything. No external AS files just a down and dirty old school Flash test.

                                               

                                              Condition: I created the mc and gave it an instance name and 2x checked in the lib that it WAS a movieclip - yet when I opened the actions panel - no code hinting.

                                               

                                              i.e. btn_0.add... does not bring up a code hint for addEventlistener nor does typing MouseE bring up a code hint for MouseEvent and so on

                                               

                                              Solution: However when I *CAST* the movieclip on the stage as a movieclip and assign it to a var like the following

                                               

                                              var btn:MovieClip;

                                                   btn = this.btn_0;

                                               

                                              Code hinting starts working as expected.

                                               

                                              Hope this helps someone out there.

                                              1 2 Previous Next