Re: [Flashcoders] AS3

2012-10-26 Thread Kevin Newman
True enough - I keep hoping we'll get renewed interest in AIR apps on mobile, but the brand has taken such a beating no one seems willing to promote the usefulness of AIR that way. In my view, it's just as easy to make an awesome app experience in AIR as it has always been out of Flash Pro and/

Re: [Flashcoders] AS3

2012-10-26 Thread Karl DeSaulniers
Yeah the css thing got me for a while. $('#myElement').css('top', '0px'); $('#myElement').css('left', '0px'); or $('#myElement').css('top', '0px').css('left', '0px'); or $('#myElement').css({'top':'100px', 'left': '0px'}); Does the same thing. :-/ Karl On Oct 26, 2012, at 8:21 AM, David

RE: [Flashcoders] AS3

2012-10-26 Thread Merrill, Jason
>>I hate to say it, but AS3 is kind of dying. It's the platform that is taking the big hit (Flash player) therefore AS3 is decreasing in use because the platform is decreasing in use. It's not because AS3 lost favorability, the player did. Jason Merrill Instructional Technology Architect I

Re: [Flashcoders] AS3

2012-10-26 Thread Kevin Newman
And don't forget, without being as feature complete as well. Kevin N. On 10/26/12 3:11 PM, tom rhodes wrote: hmmm, nowhere near as mature as haxe and haxe compiles to JS without needing a "lightweight runtime" either. ___ Flashcoders mailing list F

Re: [Flashcoders] AS3

2012-10-26 Thread tom rhodes
"Also, there is Jangaroo, which compiles AS3 to JS. That is closer to AS3 than haXe. ;-)" hmmm, nowhere near as mature as haxe and haxe compiles to JS without needing a "lightweight runtime" either. the lack of a standard for ECMA script 4 is interesting, adobe has put there plans forward here ht

Re: [Flashcoders] Time adjusted / Framerate independent animation…

2012-10-26 Thread Karim Beyrouti
Ok - i needed variable speed per frame (so animation keeps in time with possible frame lag) . I guess where I get confused is: how would i structure this if I wanted the follower to for example follow the mouse (with an eased delay)?… Here is the code for now ( which is currently not really a

Re: [Flashcoders] AS3

2012-10-26 Thread Kerry Thompson
I don't think there is going to be an AS4. The ECMA Script committee was working on a new standard at one point, but they disbanded 2-3 years ago without issuing a standard for ECMA Script 4. Adobe have been adding capabilities, such as sort, and I expect they will continue to add capabilities. Th

Re: [Flashcoders] Time adjusted / Framerate independent animation…

2012-10-26 Thread Karim Beyrouti
Thank you! That make sense. Will integrate this into my code ( now looking at my camera class ) … This is quite important, as if there is any frame lag, physics and other objects go out of sync. Karim Beyrouti t: +44 (0) 7977 997 629 e: ka...@kurst.co.uk w: http://kurst.co.uk skype: karimb

Re: [Flashcoders] AS3

2012-10-26 Thread Kevin Newman
But why? :-) To add a little bit - perhaps AS3 is only dying in some industries (like mine). But surely once ASNext ships, AS3 will become the next AS2 (which has been diminishing for years now). Kevin N. On 10/26/12 1:44 PM, Hans Wichman wrote: I call bs:) __

Re: [Flashcoders] AS3

2012-10-26 Thread Hans Wichman
I call bs :) Op 26 okt. 2012 19:34 schreef "Kevin Newman" het volgende: > I hate to say it, but AS3 is kind of dying. My hope is AS4 (or whatever > they end up calling Actionscript Next) with it's gaming focus, will > revitalize things a bit. > > Kevin N. > > > On 10/26/12 11:11 AM, tom rhodes wr

Re: [Flashcoders] AS3

2012-10-26 Thread Kevin Newman
I hate to say it, but AS3 is kind of dying. My hope is AS4 (or whatever they end up calling Actionscript Next) with it's gaming focus, will revitalize things a bit. Kevin N. On 10/26/12 11:11 AM, tom rhodes wrote: how depressing that a simple AS3 question has turned into a thread about how e

Re: [Flashcoders] AS3

2012-10-26 Thread Kevin Newman
Where it gets complicated is when you do inheritance. You can do it this way: (function(window){ function Person(name, address){ this.name = name; this.address = address; } Person.prototype = { sayHello: fu

Re: [Flashcoders] Time adjusted / Framerate independent animation…

2012-10-26 Thread Hans Wichman
Hi Karim, i put them both in there, the one you are referring to is simpler: ofcourse this value can be kept out of the enterframe loop, i have a utility class for it (although it is a bit overkill;)) private function enterFrame( event : Event ) : void { sp.x += speed * spDir;

RE: [Flashcoders] AS3

2012-10-26 Thread Merrill, Jason
Yeah, unfortunately the world has accepted Javascript without much complaint. But here's a simple example of simulating a class in Javascript - put this in a js file: (function(window){ function Person(name, address){ this.name = name; this.addres

Re: [Flashcoders] AS3

2012-10-26 Thread David Hunter
Thanks Kevin, I guess what I meant was a more object orientated approach, which I have enjoyed learning and using in AS3. I'll look into those libraries you mentioned. David On 26 October 2012 16:11, tom rhodes wrote: > how depressing that a simple AS3 question has turned into a thread about >

Re: [Flashcoders] AS3

2012-10-26 Thread tom rhodes
how depressing that a simple AS3 question has turned into a thread about how everyone is now coding JS!! whilst we're on that subject though... http://haxe.org/doc/targets/js http://www.haxejs.org/ is about as close as you are going to get to AS3 in terms of JS. i can't recommend haxe enough for

Re: [Flashcoders] Time adjusted / Framerate independent animation…

2012-10-26 Thread Karim Beyrouti
> are you trying to do frame rate independent animation based on a fixed frame > rate (eg you switch from 30 to 60 and everything should move at the same pace > but more fluid Yep - that is the one… all my game physics is independent of framerate (time based)… however, I am trying to get other n

Re: [Flashcoders] AS3

2012-10-26 Thread Ross Sclafani
my framework lets you code like this: _package('com.neuromantic.display.shapes', _import( 'com.neuromantic.display.shapes.Oval'), _class( 'Circle' )._extends( 'Oval',{ Circle: function ( size ) { this._super( size, size );

Re: [Flashcoders] AS3

2012-10-26 Thread Kevin Newman
JS doesn't have classes, and emulating them is somewhat tricky using the prototype chain (it can be done though). The easiest way to emulate classes though is to use a framework like underscore.js (which Backbone.js is built on). Kevin N. On 10/26/12 9:21 AM, David Hunter wrote: I'd really

Re: [Flashcoders] Time adjusted / Framerate independent animation…

2012-10-26 Thread Hans Wichman
Hi, are you trying to do frame rate independent animation based on a fixed frame rate (eg you switch from 30 to 60 and everything should move at the same pace but more fluid), or trying to make up a variable framerate due to running code? Anyway since you are keeping y constant I compressed

[Flashcoders] Time adjusted / Framerate independent animation…

2012-10-26 Thread Karim Beyrouti
Hello Flash coders, It's been a little quite here of late… So, hope it's good with with you all. … I have been trying to figure this out for a day or so, and wondering if you can help. I am trying to time correct my animation to be independent of framerate, which is a little easier when dealin

Re: [Flashcoders] AS3

2012-10-26 Thread David Hunter
I'm on my first "serious" project using js. Some of it is pretty neat and simple and all the AS3 knowledge makes grabbing and treating elements (for animation and what not) very easy. I would definitely recommend using jQuery, and I am using jQuery Transit for some animations. However some of it b