Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Another simple way
Just copy the .as files in a seperate folder outside root directory.
And the new folder to the source path.
Edit - Preferences
In category
-ActionScript
Click ActionScript 3.0 Settings
Press + sign along the 'Source Path'
-Add Path of that created folder with old class files.
This will work.
Just the way you add Away3d classes.
And People crying foul over CS6 , please try to use every features available.It is miles better than CS4.
Copy link to clipboard
Copied
I'm sorry, but this is a very simple banner project that has no need for any separate .as files whatsoever. I certainly am going to continue to cry foul over an aspect of a product that used to work, and now doesn't and seems to have been a known issue for some time now. Adobe should fix it and fix it right, instead of me having to come here, read and try a half dozen fixes, only to still be stuck with software that isn't functioning properly.
Copy link to clipboard
Copied
Sorry,but i had this problem coz 'too many files'.The one which i said may help those with the same problem as mine. Yours may me one to be fixed by Adobe . Anyway, hope u get out of it soon.
Copy link to clipboard
Copied
hi im still new in using adobe flash thats why im using cs4 with the actionscript of 2.0, can u give me an example of an array?
example:
this is may an error but i hope you can fix it
var myArray:Array=new Array('a','k','o');
//i want that every time i press a keyboard is will be equal to my array
//tracing keyboard input to trace array if match
stop();
var keyListener:Object = new Object();
keyListener.onKeyDown = function() {
if (myArray[0]==(Key.getCode() == 65)) {
trace("match");
}
else {
trace("not match");
}
};
Key.addListener(keyListener);
//how can i match my input to my arrray??
//im making a typing game can u help me please thanks in advance
Copy link to clipboard
Copied
I'm still get some code hinting with AIR 3.2 at start up
When I test on AIR 3.5 & 3.6, code hinting never showed even if I create a new .fla document
Can you give us some infomation from this issue? Is Adobe planning to resolve it?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
7.Problem solved.
Absolutely not. This has nothing to do with the cache size, this is simply a broken feature that Adobe was unable/unwilling to fix since CS5. I had NEVER had over 5k files in my AS library, yet it didn't/doesn't work (randomly, that's the funny stuff). It actually doesn't work even if no source folder is specified.
Thanks god I am using Flash Builder, otherwise I would go nuts. 😕
Copy link to clipboard
Copied
Bingo. You are absolutely correct. I went back and found that this "fix" does not work. So once again Adobe please fix this. Not everyone has the time to learn flash builder.
Thank you Fygo.
Copy link to clipboard
Copied

Did anyone come accross this? This looks more or less intentional.
Copy link to clipboard
Copied
Yes, I have found many people getting this same error. You can try to put the Fla file in a different folder but you will find that even if it does work once it will not be a permanant fix to the issue. Not to sound like a broken record but the only real work around to this is to create everything in CS4 and bring it over to CS6. This will, at least, minimize most of the frustration of dealing with the code hinting issue. It is sad that rather than having a good clean workflow we need to minimize frustration while doing something that worked flawlessly in a previous version.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
A year later and still not working. Anyone at Adobe paying any attention????
Copy link to clipboard
Copied
nope. Flash CC comes out in 3 weeks or so.
Typos courtesy of my iPhone 4S
Copy link to clipboard
Copied
Well, hopefully they will finally address hte issues.
Copy link to clipboard
Copied
i have the Pre release, so far so code
Typos courtesy of my iPhone 4S
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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..
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more