This content has been marked as final.
Show 11 replies
-
1. Re: A good book for AS 3.0 simple stuff?
kglad Nov 16, 2007 10:51 PM (in response to C-Rock)hire me to do your coding.
or check senocular.com for lots of as3 goodies. -
2. Re: A good book for AS 3.0 simple stuff?
C-Rock Nov 17, 2007 6:52 AM (in response to C-Rock)I wish I could, I'm just a one man show. I'm just trying to learn AS 3.0 on this giant project because of the image saving/export that 3.0 can do as opposed to 2.0. I'm quite good at 2.0.
Some things that were so simple are gone or more complicated. I understand why, but the tabIndex and borderColor?
I have a movie clip three clips deep and on it's timeline if I put usernameTxt.tabIndex = 1; and so on it doesn't work. If I place it on the root timeline or in my document class and use the proper path to the input boxes it doesn't work either. And when I add borderColor = 0xff0000 to any of them in either place I get an error like I'm missing the include... -
3. Re: A good book for AS 3.0 simple stuff?
kglad Nov 17, 2007 1:06 PM (in response to C-Rock)borderColor and tabIndex work in as3. there's must be a user error.
use the trace() function to see if your usernameTxt etc is correct. -
4. Re: A good book for AS 3.0 simple stuff?
C-Rock Nov 19, 2007 6:03 AM (in response to C-Rock)Yup my instance name is correct. The problem is it's a few movie clips deep and all of them have instance names. The path on the main timeline or the movie clips timeline doesn't work.
I get an error with borderColor, same error you get when you don't include the proper classes... not sure what it is... -
5. Re: A good book for AS 3.0 simple stuff?
kglad Nov 19, 2007 6:07 AM (in response to C-Rock)copy and paste your error message. -
6. Re: A good book for AS 3.0 simple stuff?
C-Rock Nov 19, 2007 7:19 AM (in response to C-Rock)okay so maybe there is no error. only thing different is that I removed the textInput include files. now it works... -
7. Re: A good book for AS 3.0 simple stuff?
kglad Nov 19, 2007 7:42 AM (in response to C-Rock)so, your problem is solved? -
8. Re: A good book for AS 3.0 simple stuff?
C-Rock Nov 19, 2007 7:47 AM (in response to C-Rock)yeah, looks like it. doesn't make much sense... why including a class would make the textInput borderColor and tabIndex not work. thanks, sorry to bother you, again... -
9. Re: A good book for AS 3.0 simple stuff?
Damon Edwards Nov 19, 2007 7:50 AM (in response to C-Rock)It's my understanding that it is better to import the class rather than include now.. I could be wrong though. -
10. Re: A good book for AS 3.0 simple stuff?
C-Rock Nov 19, 2007 8:22 AM (in response to C-Rock)i believe you can only import when using classes not the main timeline.
i hate using classes in AS 3.0 because i find it difficult to reference the main timeline, which is how i'm used to programming.
so now i just make as files and include them to organize. this seems to be the easiest way for me in as 3.0 -
11. Re: A good book for AS 3.0 simple stuff?
joeflashTO Nov 19, 2007 8:29 AM (in response to C-Rock)quote:
Originally posted by: C-Rock
yeah, looks like it. doesn't make much sense... why including a class would make the textInput borderColor and tabIndex not work. thanks, sorry to bother you, again...
When you include a file, the compiler is importing all the code and placing it on the timeline as if it were written there. Importing a class is merely a reference to a class or a class package which allows you to shortcut it's reference elsewhere in your code. So include-ing, vs import-ing a class file would probably generate a compiler error, because you can't use public, private, etc. namespaces on the Timeline.
If it wasn't a class file but just some AS code you were importing, you may have conflicting instance names, or even class references, thereby nullifying certain functionality. Post some code and we'll see if we can figure this out.