Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Flash CS5 code hinting not working?

Guest
May 01, 2010 May 01, 2010

Just installed the new Flash CS5 trial and code hinting doesn't appear to be working! I have added all my custom class paths in to the AS3 source paths, but I don't get any code hinting for any of these just the same old code hinting you get in CS4. Am I doing something wrong or does it just not work?

UPDATE: If it helps, in the code editor i get a small yellow triangle with an exclamation mark in, in the bottom right hand corner. When I have over this it advises me:

" *** Unable to build code hint cache. Please save the associated FLA into a different folder. There are too many files on the classpath. *** "

This error message appears no matter what FLA/Class i open, and moving it makes no difference.

UPDATE: Problem solved, the "There are too many files on the classpath" was the clue! Slimmed down my library and all seems to work now.

However, this does bring me on to another question.. does anyone know how many class files flash can comfortably cache? I use some fairly chunky libraries in my work and am wondering if i'm going to find myself constantly slimming them down after a while?

44.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 05, 2010 Aug 05, 2010

Ok after testing a bit more I can say that:

- it has nothing to do with storing files in a network drive. Whether I save my files on a network drive or in a local drive, it just sometimes works and sometimes not

- When I open existing files (that I created before I got Flash CS5), code hints NEVER work

- When I create them from scratch, they sometimes work at the beginning. Then they soon stop working. Sometimes they stop working as soon as I save, sometimes they do work a little longer, but then stop working; just a matter of time, even if I don't close and reopen anything. Anyway, sometimes they don't work at all from the beginning, even if creating the files from scratch.

- it has nothing to do with the presence of any hidden files/folders nor with big folders with too many files. I always work with folders that have a reasonable number of files/subfolders and NEVER have any hidden file or folder (which anyway shouldn't matter at all).

When is the fix expected???  This is a serious issue: you cannot expect any developer working at any serious project to work without the most basic code hintings. Note that this is way worse than previous versions: this is basically no code hinting at all. It is like writing  your code with the Note Pad.

Please say something. Thousands of buying customers are left with a broken product that has less functionality than the previous version, and nobody from adobe is saying nothing???

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 15, 2010 Aug 15, 2010

Adobe simply done caring about this app.

It keeps getting worse.

I mean, how dumb do you have to be to release a version where code hinting aint working. HAHA

Flash CS Still HAS SO MANY BUGS>.... But adobe they just launched CS5 and spat on all the CS4 users.

Ironically Apple put adobe in their place by not allowing the ipad and iphone to use flash..

As a matter of fact I understand... If I was producing a nice product like the iPhone I would most def. NOT

want to have SUCH A BUGGY platform like flash to RUIN my product.

I'm thinking of flushing flash and going onto the Java/html train....

Adobe, if you read.... You are making idiots out of youself the past years with ALL those new bugs...

PS - browing HELP in CS3 was NICE.... CS4 worse but VS5 with the Help App is slower as when the first Internet browser

arrived 15 years ago.. You SUUUUUCK

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 16, 2010 Aug 16, 2010

Yes, that's the problem, they don't give a f### if their software doesn't work.

However if they don't care they shouldn't release it and SELL it.

When you pay around $500 for a program you expect it to work decently.

When such an embarassing issue is found that renders the program almost USELESS, I would expect them to create a task force of people working on it NIGHT AND DAY to fix it within about 48 HOURS and immediately  release a  patch that fixes it.

But they just sit back ad watch thousands of customers buying a product that  instead of increasing their productivity kills it.

But adobe they just launched CS5 and spat on all the CS4 users.

AND on the CS5 users as well.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 16, 2010 Aug 16, 2010

Woah, I didn't expect this to turn into a war on Adobe thread when I first asked; I just wanted to find out if there was a solution. It's not an app killer, just a minor inconvenience. Flash isn't going anywhere, despite Apple's bonehead decision. It's just when you develop software as fast as Adobe does, trying to satisfy many different users, bugs crop up. That's my only problem with Adobe's business plan - too much too fast breeds that many more bugs; it's a catch-22.

I prefer the simplistic design of Macromedia back in the day, especially with Flash. I teach Flash at a university, both beginner and advanced users. The biggest problem I've encountered from an educator's perspective is the push to AS3. Adobe tried to cater to programmers with AS3 and left designers in a lurch. In my humble opinion, new versions should both do more and become more user friendly. The reason everyone gives for AS3 is that AS2 was buggy. AS2 was not buggy, people were writing buggy scripts, much as they did with HTML 4 and lower. Adobe should have taken a page from the W3C and XHTML and just made it more strict, closing the holes that caused the bugs. Rewriting the scripting and making it more complex seems to pile on the problems. Why should something that took one line of code (clicking on a movieClip to move to a frame) now take 5 or more lines of code (creating a listener object, assigning a listener object, writing a function)?

That's why the code hinting bug bugs me. AS3 is so overly complex that code hinting becomes all the more necessary. I'll stick to AS2 in my classes. But to demonize Adobe is a bit much. There are bigger things to complain about. Using their pretty remarkable products (where would we be without PS or DW?) is not a right, it's a (sometimes frustrating) privilege.

So Adobe mods, we're frustrated but only because we're all loyal users who depend on your products. We wouldn't be posting if we weren't.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 16, 2010 Aug 16, 2010

did you check j dehaan's blog about cs5 code hinting?  if not, check it and see if it helps you:  http://flashthusiast.com/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 17, 2010 Aug 17, 2010
The reason everyone gives for AS3 is that AS2 was buggy.

I don't think so. AS3 is a better language, better designed, more consistent, more powerful. I would switch to AS3 for that, not because of bugs - but I don't know what's the reason behind everyone's choice.

AS2 was not buggy, people were writing buggy scripts

AS2 was buggy. Maybe people were writing buggy scripts too, but believe me it was buggy. However AS3 is at the very least equally buggy. It is better designed, more consistent, but equally buggy in its implementation.

All software have bugs, but programming languages usually undergo a stricter and more thorough revision than other kinds of sofware because the consequences of bugs in a programming language are more disastrous.

But that's not the case of ActionScript. Maybe because of its history and its legacy, or maybe because Adobe was always dedicated to completely different kinds of software, like PhotoShop, Premiere and the like, and suddenly dove into the business of developing a programming language without having the know-how.

The level of bugginess of ActionScript is amazing. I work with actionscript daily and there's no day that I don't run 4 ot 5 times into some problem due to some bug. Not that I discover new bugs every day, just run into them - sometimes they are already reported, other times they are not.

Why should something that took one line of code (clicking on a movieClip to move to a frame) now take 5 or more lines of code (creating a listener object, assigning a listener object, writing a function).

It often happens that a language that is in the overall more elegant, consistent and compact, turns out to need a bit more of code for doing the simplest things. Maybe what could be done with 1 line of code now takes 5, but things that took 1000 lines of cumbersome awkward tricky and hacky code can now be done with just 100 of readable and simple-to-understand code.

When I first learned Java I was surprised at the quantity of code I had to write just to make a program that would print "hello world", while in most dialects of Basic it was just:

10 PRINT "Hello world"

Would you say Basic is superior to Java in any sense?

I teach Flash at a university, both beginner and advanced users. [...]

I'll stick to AS2 in my classes.

You should think about the damage you may be doing to your students. If they are going to use ActionScript professionally, they'll have to learn AS3, rather sooner than later. So why not save them the pain to do the effort twice? If instead you are teaching them AS just for didactic purposes (i.e. for learning programming in general) and don't care about practical applications and you don't like the way AS has evolved (i.e. AS3), then consider teaching them another language, instead of an obsolete version of a current one.

AS3 is not more complicated, or difficult to learn, or less designer-friendly or non-programmer-friendly than AS2. Not at all; rather the opposite. It is more complicated and difficult to learn when you already know AS2, because you feel like everything you knew is useless - but the same can be said about learning AS2 when you already know AS3. Starting from scratch, AS3 is indeed simpler.

But this have drifted OT, sorry. Back to the topic:

It's not an app killer, just a minor inconvenience

It's a major inconvenience if writing the same amount of code takes you three times the time it should take. That in 2010 you have to spell every single property/method/class name entirely from the first to the last letter, when most of the time it should be just a matter of typing a couple of characters and hit tab, is simply ridiculous. You may as well write your code with NotePad. Flash is (among other things) an IDE - something Adobe seemed to neglect up to recently; and when they finally decided to take a step into making it work like any other decent IDE, it does not work!!

There are bigger things to complain about.

On this you are definitely right.

Using their pretty remarkable products (where would we be without PS or DW?) is not a right, it's a (sometimes frustrating) privilege.

It's a privilege you pay for. That's when it becomes a right.

So Adobe mods, we're frustrated but only because we're all loyal users who depend on your products

(emphasis is mine)

Exactly. That's the point.

Note there's been no helpful answer from them yet: that's how much they care about loyal users who depend on their products.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 17, 2010 Aug 17, 2010

did you check j dehaan's blog about cs5 code hinting?  if not, check it and see if it helps you:

Yes, I think we already mentioned that for some of us none of those tricks works:

1) Save your FLA file in an empty folder on your hard drive and restarting Flash.

Does not help. Also, it shouldn't be necessary. If code hinting does not work because you saved the file on the desktop, it means the code hinting engine s***s in the first place and it needs to be fixed. ESPECIALLY if you need to restart Flash However, that is not the case: I save the file in an empty folder and code hinting works for the first 5 minutes.

2) If you are using an ActionScript (AS) file: make sure that you have a FLA file open to trigger code hints.

That shouldn't be necessary. Again, if that is necessary, then the code hinting thing needs a serious fix. Anyway, that doesn't work either.

(and the few times code hinting does work, it work also without any FLA file open)

(I wonder whether that ever worked for anybody, because it really looks like a pure speculation like 'maybe this may help' that is published as a tip/trick without even checking whether it works)

3) If you use class libraries and see an icon in the Script edit window  (bottom-right corner), try increasing your code hint class limit. See this post on the Flash Blog for more information.

Not the case: not using libraries, no icon.

4) Reset your code-hint cache using the following steps:

Doesn't change a thing. And again, if this was necessary, then the code hinting engine would need a serious fix.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 17, 2010 Aug 17, 2010

I've deleted the CodeModel folder and set the Project File Cap to 1000 in Hex (by the way sets the decimal to 4096). Either of these suggestions as yielded the code hints appearing when using a movie clip or text object naming them myMovie_mc or myText_txt. A MovieClip will show code hinting if I use Ctrl+Spacebar but the text does not appear to bring in the property information.. such as setting the .text = "";.

However there are other code hints appearing like when I use a MovieClip as a button and type this.buttonMode then the code hinting comes when as soon as I type this. and before in CS4 it did not. Adobe has made some really great changes in code hinting and helps while you type functions etc. For me the code hinting is not working on the simple things with objects... like adding a Event Listener and using MouseEvent.CLICK... that used to come and does not now until you add the import statement. When you build the actual function the import statement is actually created for you... another great time saving feature. But it would be nice to have it created once I typed MouseEvent.

I'm running a 32bit Windows 7 with 4gb RAM. And I already know that my Master Suite will perform better on a 64bit system with more RAM.

I can live with the Ctrl+Spacebar, it would be nice to have it all. It's also just nice to have other things working that help simiply my coding faster.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 23, 2010 Aug 23, 2010

Hi All,

Flash CS5 does not support the _mc, _xml, _txt, etc. code-hinting in ActionScript 3.0 files.  ActionScript 2.0 still supports these code-hinting suffix triggers.

These suffix-based code-hinting triggers were added at a time when Flash didn't really even have classes.  When ActionScript 2.0 was introduced in Flash MX 2004, Flash started supporting code-hinting when you typed your variables, such as:

var myTextField:TextField;

myTextField.<code hinting appears here>

Flash continued to support the suffix-based code-hinting triggers in both ActionScript 2.0 and ActionScript 3.0 because we didn't make many changes to our code-hinting engine.  However, we revamped the entire code-hinting engine for ActionScript 3.0 during Flash CS5.  Flash now supports code-hinting for custom classes in your classpath and code-hinting for nested parameters.  Flash no longer supports the old suffix-based code-hinting triggers that was introduced back in ActionScript 1.0 because the new code-hinting uses the code-hinting engine from FlashBuilder/FlexBuilder which never supported the suffix-based code-hinting hack.

You can still use the suffix-based code-hinting for ActionScript 1.0 and ActionScript 2.0.  But, if you want code-hinting for ActionScript 3.0 content, you will have to declare your instances.  For example, if you have a TextField named myTF_txt and a MovieClip named myMC_mc, you will need to declare them as:

var myTF_txt:TextField;

var myMC_mc:MovieClip;

Note that doing so will automatically add the import statements for those classes (another nice benefit of the new code-hinting engine), so your code should look like:

import flash.text.TextField;

import flash.display.MovieClip;

var myTF_txt:TextField;

var myMC_mc:MovieClip;

myTF_txt.<code hinting appears here>
myMC_mc.<code hinting appears here>

The old suffix-based code-hinting triggers were a nice shortcut, but it was severely limited.  Hopefully, you will find the new code-hinting engine more useful over time.
Thanks,
Nivesh
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 23, 2010 Aug 23, 2010
Hopefully, you will find the new code-hinting engine more useful over time.

I find it very useful when it works. Any progress in fixing it?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 23, 2010 Aug 23, 2010

Hey, nrajbhan's solution actually works for me! I've tested it in multiple scenarios and I have yet to get it to break as it did before. It makes logical sense as well. Flash can't display the hints if it doesn't know what type of object to display the hints for. Good explaination and solution nrajbhan (even though I still like AS2 better no matter how many try to convince me otherwise).

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 24, 2010 Aug 24, 2010

What solution????????????

What nrajbhan describes is simply the expected behaviour. If you don't declare a variable's type it OBVIOUSLY won't display code hints for it. I don't care about AS2-like prefix-based code hinting which was ridiculous by the way.

I have seen the new code hinting work and I perfectly understand how it works and my problem is not that I am used to a different kind of code hinting or that I don't declare variable types. My problem (and of many people that have posted here before) is that most of the time it just DOESN'T WORK. Sometimes it works, so I can tell the difference.

Let's be clear.

I type:

var somevar: <--- a list of classes should appear hear; it doesn't

var somevar:MovieClip; <----- now an import statement should be automatically added above; it doesn't.

somevar. <---- a list of properties of the MovieClip class should appear, it doesn't

So let's stop talking about the differences between AS2 and AS3 code hinting and let's talk about how to have it fixed.

What do I have to do to get the code hinting work?

When will the fix be released?

(please don't mention the ctrl+space thing, that's not even a workaround, that will display a list of all properties of all classes, not only the relevant one, so it is useless)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Aug 24, 2010 Aug 24, 2010

Hi matteosistisette,

There are definitely two issues.  One issue is that people are expecting the suffix-based code-hinting (_mc, _xml, _txt, etc.) to trigger code hinting in ActionScript 3.0, which is no longer supported.

You are encountering a different issue where the new code-hinting engine sometimes works and sometimes doesn't.  The workarounds I listed above has resolved this for all other users, but it still hasn't resolved it for you.  Please re-delete your code-hinting 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 CS5\<language>\Configuration\CodeModel

Win Vista/Win7:

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

Mac:

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

3. Re-start Flash and try again.

Since you are finding that code-hinting works in some cases and not in others, please check the following:

- In order to get code-hinting in an ActionScript file, you will need to have an AS 3.0 FLA file open in the IDE.  Otherwise, the IDE doesn't know which code-hinting engine to use (AS 2.0 or AS 3.0 engine).

- Since code-hinting works sometimes and fails at other times, please check the per-FLA ActionScript settings for the files in which it fails (File -> ActionScript Settings...).  The Source Path tab should have a '.' in the classpath to designate the current working directory should be in the classpath.

Thanks,

Nivesh

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 27, 2010 Aug 27, 2010

I deleted AGAIN the code-hinting cache but the behaviour is still the same.

It seems the code hinting engine is just too fragile and there are a lot of conditions that have (and shouldn't have) to be met in order for it to work.

Here's an example of an absurd behavior that you can certainly reproduce. Note that it is not an example of a big annoyance but it is very easy to reproduce.

1) Choose File / New / ActionScript 3.0 class. Call it TestClass

2) In the constructor write:

     var m:Mo  // Code hints appear here, the old CS4-like ones, with a blue arrow as an icon. I can choose MovieClip.

                    // However it WON'T add the import statement.

Arguing that it doesn't know which hints to use (AS2 or AS3) doesn't make sense, because it's actually giving code hints for AS3, so why doesn't it add an import statement????

But this is only the beginning.

3) Save the class as TestClass.as. Try the above again: nothing changes.

4) Create a new fla file: File/New/ActionScript 3.0 (fla). Don't even save it.

5) Now go back to TestClass.as and test the above again, and SURPRISE:

    var m:Mo  //NO CODE HINTS AT ALL! NOTHING APPEAR

If you write

   var m:MovieClip;

   m.  //NO CODE HINTS AT ALL

6) Save the fla file  as test.fla in the same folder as the .as file. Nothing changes.

It may make sense that having a .fla file open without any relation to the .as file we are editing doesn't help. But it makes no sense that it makes things worse: without the .fla open we have the old crappy code hinting; with the .fla open (but no document class) we have no code hinting at all.

Let's go on. Now this is the expected part

7) In the fla file test.fla, put TestClass as the document class and save it.

8) Go back to TestClass.as and try again:

    Now code hints work. The glorious CS5 ones, with a green circle as an icon, and it automatically adds import statements.

So first of all when you insist on this:

- In order to get code-hinting in an ActionScript file, you will need to have an AS 3.0 FLA file open in the IDE.

you should mention that it is not enough to have an AS3 FLA file open in the IDE, it needs to be linked to a class saved in the same folder as the class you're editing.

9) Create a new AS3 class, cal it AnotherTestClass.as and save it.

10) Try code hints: they WORK.

This is a NICE surprise, because AnotherTestClass is not mentioned either in the fla file nor in the TestClass class, so it is not "linked" in any direct or indirect way to the fla file.

Good. But then I wonder: why didn't code hints work when editing TestClass before I set a document class for test.fla??

There's just too many things you have to be careful about if you want code hintings to work, and that shouldn't be so. It should be just a matter of start writing code. I've never seen an IDE work like this.

Instead of wasting time writing (incomplete and inexact) articles explaining the 1001 steps one has to follow to have code hints work, you should work on improving them so that one does not need to do anything.

---------

Then another thing, but you already know that, is that code hints don't work if the files are saved in a network drive. I know that "using flash on network drives is not supported" but that is just ridiculous. It should be supported. Not supporting network drives is just like not supporting a tablet as a pointer device, or not supporting screen resolutions above 1024x768 - or not supporting non-english keyboards. There are things that a commercial software vendor simply cannot decide not to support. It should be considered a bug rather than an unsupported feature.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 11, 2011 Jan 11, 2011

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jan 17, 2011 Jan 17, 2011

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 06, 2010 Dec 06, 2010

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Dec 06, 2010 Dec 06, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 06, 2010 Dec 06, 2010

Hello Tareq,

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

Regards,

Joshua.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 06, 2010 Dec 06, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Dec 06, 2010 Dec 06, 2010

Hi Jim,

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

Thanks,

tareq

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 06, 2010 Dec 06, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 02, 2011 Jan 02, 2011

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Jan 04, 2011 Jan 04, 2011

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

Thanks,

tareq

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jan 04, 2011 Jan 04, 2011

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines