Results 31 to 42 of 42
Thread: Actionscript 4.0
-
January 20th, 2012, 08:15 PM #31People with your background weren't the ones complaining. It was mostly the AS1 and AS2 users. In fact, a lot of the changes made from AS1 to AS3 were to make it easier for people like you to transition.
Originally Posted by SlimyTadpole
Part of the difference is that "general purpose" languages don't have a clear concept of what a root object would be, whereas scripting languages, by many common definitions, are controlling a specific application (and are essentially tied to it). In the case of Flash Player, there was traditionally only one rectangle that you could control the display of at any given time. And, as you said, AS3 was a move to make AS closer to something that could be considered general purpose. At some point it seems silly to be too clean and compartmentalized if you're limiting access to the only thing your language can control anyway.
Originally Posted by SlimyTadpole
I suspect SlimyTadpole's point was that you can't access it from all lexical contexts like you could in older ActionScript. Perhaps it's analogous to proposals to remove window from being the global scope in parts of JavaScript.
Originally Posted by TheCanadian
APIs only restrict values, not variables. You can use a variable without a type annotation to reference a value that you pass to an API that has type annotated parameters, as long as the value is of the correct type at runtime or you don't mind getting a runtime error.
Originally Posted by SlimyTadpole
People do omit type annotations sometimes, but you're right that you don't see it too often. Personally, I think that's not an ideal situation. I kind find the actual reference that I'm looking for, but the designers of Google's Dart and ECMAScript Harmony (different people) have said on a number of occasions that it's not productive to over-annotate values. It can be a waste of time, especially when projects are young and decisions are still changing about the way that the whole system will fit together.
Originally Posted by SlimyTadpole
Type inference makes a lot of function-local variable annotations pointless. If the compiler and IDE can prove the types of local variables without your annotations, then it's truly a waste of time to add them... unless you think someone's going to come along later with an under-featured text editor and poor understanding of your project and try to make changes. At that point, though, type annotations aren't enough to be sure of the impact that code changes will have anyway.
-
October 30th, 2012, 06:10 AM #322Creator
postsWell I didn't read all of the posts, but just want to share my 2 bits in this discussion.
I am a C++/Java game programmer and just started to work on AS3 4 days ago. I thought that it'd be a hard to learn language, after reading it's review from all the pro AS2 developers(Some from my company too). But now I can say that I don't feel any difference in working except the coding in timeline thing. I am seeing the same syntax as Java and it feels familiar. What I find unusual is putting all the asset in single fla file and have their own timeline. Till yesterday I thought why on the earth each object has it's own timeline, but now I understood the point after reading the evaluation of flash and actionscript.
Flash was made for designers who don't have knowledge of programming languages and other technical stuffs, but still want to create their own animation, movies and games. ActionScript was just an additional tool to help them, but was just a supporting tool. Now what I can sense is, Adobe is trying to add more programmers than designers in their regime. It's a good strategy, but the oldies are not happy about it.
I read somewhere that adobe was trying to complete the "Easy to code" thing first, and then move to "Easy to design". So they did all they could for programmers, now it's designers' turn. Although I doubt it.
So in short words, AS3 is a great tool, created to follow the standards and to make people like me, who are migrating from other languages, comfortable. I don't think they'll change everything again in AS4. They can't risk the existing userbase.
-
October 30th, 2012, 10:49 AM #33
-
November 6th, 2012, 04:13 AM #34
That's not interesting at all!
Proud Montanadian
We tolerate living and breathing. And niches.
Name Brand Watches
Maybe getTimer() or TweenMax is the answer to your problem . . .
-
November 6th, 2012, 11:25 AM #35
-
November 6th, 2012, 08:34 PM #36
That was pretty interesting…
Proud Montanadian
We tolerate living and breathing. And niches.
Name Brand Watches
Maybe getTimer() or TweenMax is the answer to your problem . . .
-
November 7th, 2012, 08:17 PM #37213Registered User
posts
-
November 7th, 2012, 08:31 PM #38
ActionScript Spoiler: Made you look! AS4 expert.
-
November 7th, 2012, 10:02 PM #39869Registered User
postsspent some time on that with my current mobile browser setup... only to be fooled.
-
November 8th, 2012, 03:41 AM #40
-
November 8th, 2012, 10:10 AM #41213Registered User
posts
-
November 8th, 2012, 11:44 AM #42

Reply With Quote




Bookmarks