Skip navigation

Flash CS5 code hinting not working?

May 1, 2010 10:47 AM

  Latest reply: egonrp_ptbr, Nov 14, 2011 6:19 PM
Replies 1 2 Previous Next
  • Currently Being Moderated
    Sep 13, 2010 2:19 AM   in reply to the_lambinator

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

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 13, 2010 1:34 PM   in reply to DigitalChristian

    @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

     
    |
    Mark as:
  • Currently Being Moderated
    Oct 9, 2010 12:44 PM   in reply to nrajbhan

    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!

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 6, 2010 12:27 AM   in reply to matteosistisette

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 6, 2010 11:02 AM   in reply to DigitalChristian

    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-bui ld-code.html

     

     

    Thanks,

    tareq

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 6, 2010 11:59 AM   in reply to Tareq AlJaber

    Hello Tareq,

     

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

     

    Regards,

    Joshua.

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 6, 2010 1:18 PM   in reply to Tareq AlJaber

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 6, 2010 1:45 PM   in reply to socalfish-fDJTBM

    Hi Jim,

     

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

     

     

    Thanks,

    tareq

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 6, 2010 1:52 PM   in reply to Tareq AlJaber

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 2, 2011 12:48 PM   in reply to Tareq AlJaber

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

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 4, 2011 10:48 AM   in reply to DigitalChristian

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

     

    Thanks,

    tareq

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 4, 2011 7:19 PM   in reply to Tareq AlJaber

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 11, 2011 3:30 PM   in reply to matteosistisette

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 17, 2011 6:56 AM   in reply to kglad

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 17, 2011 7:14 PM   in reply to the_lambinator

    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!

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 31, 2011 11:11 PM   in reply to the_lambinator

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 1, 2011 7:47 PM   in reply to the_lambinator

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 26, 2011 7:33 AM   in reply to the_lambinator

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 14, 2011 6:19 PM   in reply to the_lambinator

    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

     
    |
    Mark as:
1 2 Previous Next
Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points