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.
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.
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.
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:
Mac:
Let me know if this helps in any way.
Thanks and regards,
Sudeshna Sarkar
Adobe Flash Professional Team.
Hi ,
I was able to repro the issue when I copied the AIR 3.3 SDK in the <Adobe Flash installed directory> in the same place where AIR 3.2 SDK is present. Code hinting stopped working for AIR 3.3. We are investigating this issue.
You can try this workaround for now:
1. Copy the AIR 3.3 SDK to some other location say "Desktop".
2. Go to Help->Manage AIR SDK and delete the AIR 3.3 SDK added.
3. Click on "+" again in the Manage AIR SDK dialog and add the AIR 3.3 SDK from the new location i.e where its copied in step 1 eg : c:\Users\<sudeshna>\Desktop\AIR 3.3
2. Quit Flash and Relaunch.
3. Create a new AIR project and set the Target in Publish settings as AIR 3.3.0.3560 for Desktop and then try writing code in the actions panel.
Let me know if this solves your problem.
Thanks and regards,
Sudeshna Sarkar
Adobe Flash Professional Team.
I am seeing this as well. My 3.3 SDK is in a separate directory from 3.2 and am seeing no code hinting at all. However, if I set my target to 3.2, I get code hints. If I use 3.3, none. 3.2 is in the main directory and 3.3 is in its own separate location.
Hi ,
You can try doing the following steps to fix the code hinting problem.
1. Make sure Flash is closed and then browse to your Flash install folder. On Windows you can find it in C:\Program Files\Adobe\Adobe Flash CS6\, on Mac you can find it in Applications/Adobe Flash CS6/.
2. Change the name of the AIR3.2 folder to something like AIR3.2_Old.
3. Copy the new AIR 3.3 SDK folder there.
4. Rename the unzipped folder AIR3.3 to AIR 3.2 and move it into your Flash CS6 directory.
5. Browse inside the new AIR3.2 folder to AIR3.2/frameworks/libs/air/ and copy the airglobal.swc file.
6. Browse to Adobe Flash CS6/Common/Configuration/ActionScript 3.0/AIR3.2/ and paste the airglobal.swc to overwrite the existing one.
Then restart Flash and try.
Let me know if this solves the problem.
Thanks and regards,
Sudeshna Sarkar
Adobe Flash Professional Team
I have to say none of the suggestions here in the forum worked for me. Then after a week it magically began to work (I didn't change anything at all).
Now it works randomly - after starting up my Mac it works. However if I quit Flash, I am doing something different, browsing, closing windows, put my macbook to sleep, etc... start up Flash again and it is NOT working. I have to restart my macbook. Very very strange.
Sick and tired with flash cs6 code hinting.
I created a fla document, wrote some code...do something...
Code hint worked ok...
I do more...create some movieclip...write more code...
Code hint...die!
Omg! I deleted all movieclip, deleted all code, deleted all things in library...
and tried to write:
import[space]
Still...nothing? Code hint seems to never show up with this document anymore...
Then, I created a new fla document.
Code hint worked ok!
I do something...
Code hint...die...
...die...forever...
unfortunately, code hint cache gives me problems with all air sdk versions: 3.2, 3.3, 3.4
I have not tested with air 3.5 yet. But I think the same issue will happen.
Maybe somethings wrong when Flash Pro saves fla documents. I think the problem isn't SDK, while Flash Builder and other products have found no problem with using AIR SDK
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.
Hello,
Could you please confirm if you have installed Flash Professional CS6 Update 2 and you still see the issue persist?
Regards,
Suhas Yogin
Hello,
We are unable to reproduce this bug at Adobe, and we need your help for the same. Could you please file a report of your issue at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&promoid=E WQQL?
In your report, could you please provide a link to your FLAs and Crash logs? You could upload it to a free file sharing site.
Thanks and regards,
Suhas Yogin
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.
I've created a file that contains the issue:
http://www.mediafire.com/?gx0imljvcrbz7n1
Thanks !
(additional, there's no crash log)
Suhas, did we ever get an answer to the code hinting issue? I've been struggling with it for a while now. I recently discovered that if I have 400+ libraries, then code hinting turns off. This is despite the fact that I have the code hinting chache size set to 5000 files. Am I missing something? What I'm working on requires quite a few libraries and it's a pain to constantly need to reorganize the files to stay below a certain threshold. Thanks.
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.
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.
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. :-/
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.
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.
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.
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
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.
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.
North America
Europe, Middle East and Africa
Asia Pacific