Skip to main content
Known Participant
May 11, 2012
質問

Flash CS6 code hinting issue

  • May 11, 2012
  • 返信数 8.
  • 29340 ビュー

Hi everybody,

Yesterday I downloaded Flash CS6 to try it out. Everything went smooth till I fired it up and tried to write some code into the Actions panel.

The code hinting doesn't seem to work for me at all. I cannot call it up manually with keyboard and the automatic is not working either. I tried with different cache sizes, turn it off and on again but nada. It simply did and does nothing.

Then I tried the "classic approach" (as - THANK YOU ADOBE! - you have this code hinting problem since which version!?) - to delete the CodeModel folder which now seemed to move to "Common" folder; as far as I remember it used to be in the "<install_language>" folder. Not quite sure about that. After deleting this folder and starting Flash again it was not recreated. However, I was able to get some limited code hinting, I wrote this code:

var s:Sprite = new Sprite(); //got code hints after typing ":" and "new"

s.graphics.lineTo(100, 100); //got code hints after typing "s." but NO code hints for ".graphics", so I had to type lineTo(100, 100) manually

What the hell.

Also, I cannot see import statements anymore but the code above worked. Is this normal? How do I unable the imports? I couldn't find it anywhere.

Anybody can advice what to do with the code hinting?

Thanks!

F.

このトピックへの返信は締め切られました。

返信数 8

Participating Frequently
October 11, 2014

Well, it's October 11, 2014, and I've experienced this problem using Flash Pro CS6 (trial version downloaded using Creative Cloud). Here's my scenario- I wanted to make AIR for Android app- I noticed that the current version of AIR for Android in Google Play was 15.0.0.249- so I installed the SDK on my machine and added it in Flash using the SDK Manager. Once I targeted that SDK, I lost code hinting. I was only able to get it back by changing the target to AIR 3.2 for Android, closing Flash, deleting CodeModel folder, and restarting. Code hinting works fine now.

I'm very new to this AIR for Android (but not new to Flash Pro), so I just assumed that if my app was going to run on a device that had AIR 15 installed, then it would need to target that SDK- but evidentally not- my app targets 3.2 but still runs fine on my Android, which has AIR 15 installed.

Johninus
Participant
February 6, 2015

Any update? I get the same problem. Now, I have to copy the code to flash builder and copy back until the coding is finished. not good..

September 13, 2013

I've found out that code hinting usually fails when you have certain .SWC files added to your environment. Many .SWC libraries break code hinting so please don't eat your macbook... just yet. This has been a problem with Adobe for many years. I hope this helps someone.

Participating Frequently
April 18, 2013

After days working without code hinting, finally I found a way to get code hinting. At least It worked for me.

I hope it will help others. Let's try:

(Version I'm using: 12.0.0.481)

Delete "CodeModel" folder

Open Adobe Flash Pro CS6

Create new AIR file

Write "import flash.events.Event;"

-> A warning display: "too many files..."

Save file (named "hintFile.fla") to an empty folder (named "hintFolder"). The name of folder shouldn't contain space or special characters

Delete the line "import flash.events.Event;"

Write "import flash.events."

A warning display: "building code hint cache..."

Waits about 2 minutes

Press the "show code hints" button -> code hinting should be displayed

Save file "hintFile.fla"

OK. From now, whenever warning display, you just need to overwrite the file "hintFile.fla" by using "Ctrl+Shift+S" command. And the code hinting should work.

Now, create other fla file and do whatever you want. But note:

- Always declare Type for variables, ex: var str:String;

- Keep your file size as small as possible. Don't import big images to your file (Use "[Embed" tag instead)

- Don't save your file with other AIR version. Use 3.2 only. You can build your file with other version, but don't forget to target back to AIR 3.2.

- If code hinting doesn't work, check your code. For example, the code bellow will turn off code hinting:

(tf as TextField).addEventListener(TextEvent.TEXT_INPUT, onInput);

--> Lines above this line will get wrong code hint

- Shouldn't save your file when code hinting not working. At least, don't save with other AIR version

I will test more and update this guide,

Hope this help.

Inspiring
May 16, 2013

A year later and still not working. Anyone at Adobe paying any attention????

Participating Frequently
May 16, 2013

nope. Flash CC comes out in 3 weeks or so.

Typos courtesy of my iPhone 4S

Inspiring
February 27, 2013

Anything new on this? Still have no code hinting and it has been more than 9 months since I first ran into this. We have had mulitple new Air SDK releases, but core functionality of the editor is still broken.

I am about to start a new project and cannot do much with the editor working the way it is. Not sure if this is related or not, but I also am unable to set a breakpoint successfully -- the debugger consistently reports that there is no executable code at the breakpoint - which is absurd.

Participant
December 17, 2012

So, I was able to find a trick to evade this problem.

The real problem is having too many files in the same folder as the .FLA is. So I do the following and it really works.Nothing technical only logical.

1."Cut" the folders and files(apart from .FLA and directly associated .as file only ).

2.Paste the files (or folders ) in a new destination(u need it permanently if this trick works) .

3.Now start FLASH PRO.

4.Open the .FLA and .as file.

5.Check if code hint works.

6. If Yes, copy all files ,paste in the folder of the .FLA fle.

7.Problem solved.

This is what i do.works for me.Should work by logic.

I think Flash team has done this intentionally(i dont think it is a bug) , maybe to avoid crash.

Note : air version has nothing to do with it.

Participating Frequently
December 17, 2012

I came across this in another post somewhere but it was a buggy fix and still does not answer the question regarding why, even if I have a hundred files in the same folder as my project, flash pro cs4s code hinting works.  Thank you for the imput though.  I'll try this on a couple of different systems again to see if maybe I missed something.  Until then perhaps Adobe will issue a patch to actually fix it.

Thanks for the help.

Participating Frequently
November 5, 2012

You've got to be jokeing Suhas!  There is no "Crash log" for something that does not crash the application.  Please let us know the exact configureation you are using and perhaps one of us can try it.  Please also let us know if you are trying to atempt this on the PC as well as Mac platforms.  I have tried this on several different Dell systems running everything from Xeon to quad core i7s.  Different OSs and varing other applications installed.  Every time Code Hinting is tried IT DOES NOT WORK!!!!!!  Simply put cs4 Code Hinting does work with no issues on cs6 Code Hinting does NOT work or if it does it is only for a few entrys then it stops.  Please just look at what you did to make it work properly in cs4 and go ahead and do that to cs6.  Or at least just start telling people that as a learning tool cs6 is NOT right for them and they should find a copy of cs4 to learn on or build their projects then bring them over to cs6. 

Participating Frequently
October 16, 2012

This is for Adobe only.  Others that have been so kind as to try to solve this... Thank you sooo much.

Code hinting does not work in CS6.  If anyone at Adobe would be so kind as to boot up CS4 and try it there I believe you will find that it is as solid as a rock.  If you would then be so kind as to boot up CS6 and do the same I believe you will find it quite buggy.  I have never been so frustrated at a piece of software or its support in my life.  Typically Adobe support is quite good and will state that if something is not working as it should be and that they will see if there is a bug fix being processed.  In this case however it is not only not being corrected but the "try this" mentality is ony compounding customers frustrations.  Please, if you are going to post a workaround make sure that it works and is at least somewhat solid.

Adobe Employee
May 12, 2012

Hi ,

After ensuring that the "Code Hints" checkbox in the Actionscript section of the Flash Preferences dialog is turned on , please try resetting your code-hint cache as follows:

1. Quit Flash

2. Delete your code-hint cache folder

Win XP:

C:\Documents and Settings\<user>\Local Settings\Application Data\Adobe\Flash CS6\<language>\Configuration\CodeModel

Win Vista/Win7:

C:\Users\<user>\AppData\Local\Adobe\Flash CS6\<language>\Configuration\CodeModel

Mac:

/Users/<user>/Library/Application Support/Adobe/Flash CS6/<language>/Configuration/CodeModel

3. Re-start Flash and try again.

Let me know if this helps.

Thanks and regards,

Sudeshna Sarkar

Adobe Flash Professional Team.

Fygo作成者
Known Participant
May 12, 2012

No, this didn't help. After deleting codemodel and (re)starting Flash, the same thing is occuring.

CodeModel is re-created but I see no code hints.

Ps: Now after playing with it for a while, I saw the following exclamation mark for a moment. However, still no code hints and no more exclamation mark either.

Adobe Employee
May 13, 2012

Hi ,

If code hinting is not working , it can be due to many files that are opened. Code hinting only works on an AS file when it is properly associated with an opened AS3 Flash file.

Also please try out the following steps to increase the code hint cache size and then clearing the Code Hint cache as mentioned in above post.

Windows:

  1. Open Regedit and navigate to: HKEY_CURRENT_USER > Software > Adobe > Flash 12 > Settings
  2. Right+click and choose: ‘New… > DWORD Value’
  3. Rename the key: Project File Cap
  4. Select the key and choose: ‘Modify’
  5. Edit the value (put say: 2000)
  6. Click OK and restart Flash

Mac:

  1. Open /Users//Library/Preferences/Flash CS6 Preferences in Text Edit
  2. Under the section add the following: 2000
  3. Save the file and restart Flash

Let me know if this helps in any way.

Thanks and regards,

Sudeshna Sarkar

Adobe Flash Professional Team.