Re: [Flashcoders] Long running tablet apps

2012-11-23 Thread David Hunter
h, how long are you talking it being used for? I have made apps for samsung galaxy tabs that have run all day and don't seem to have had too many problems (well not ones they've told me about!) and I think sometimes they were left on for days and still worked. But we do include functionality

Re: [Flashcoders] Long running tablet apps

2012-11-23 Thread Paul A.
On 23/11/2012 11:27, David Hunter wrote: h, how long are you talking it being used for? Client described it as a couple of weeks! Essentially the client pulled the power at the end of the day but the battery kept the tablets alive overnight until power was restored. I have made apps

Re: [Flashcoders] Long running tablet apps

2012-11-23 Thread Hans Wichman
Hi, I wouldn't put too much time into it, noone realistically expects windows to run for a couple of weeks, let alone your app on a samsung tablet ;)). That said, the demand being unrealistic, I'd at least opt to get an unrealistic price for it as well. The sane thing would be in my

Re: [Flashcoders] Long running tablet apps

2012-11-23 Thread Paul A.
On 23/11/2012 12:23, Hans Wichman wrote: Hi, I wouldn't put too much time into it, noone realistically expects windows to run for a couple of weeks, let alone your app on a samsung tablet ;)). That said, the demand being unrealistic, I'd at least opt to get an unrealistic price for it as

Re: [Flashcoders] pull in html section to Flash

2012-11-21 Thread Karl DeSaulniers
Hi Natalia, Well I know of an AS2 way of doing it, but not AS3. Someone may be able to shed some light on that for you. You can get data from a database with a server side language like PHP or ASP and send the data to flash. Again, I am rusty at AS3. I have successfully done such with AS2 so I

Re: [Flashcoders] pull in html section to Flash

2012-11-21 Thread Henrik Andersson
natalia Vikhtinskaya skriver: Thank you Karl Some more questions: 1.What Flash function can pull in basic html to flash? 2.And what Flash function can get access to the database? I suppose that can not be done directly from flash. And how to manage that dynamically with new url

[Flashcoders] pull in html section to Flash

2012-11-20 Thread natalia Vikhtinskaya
Hi to all I need advice. Is that possible to build a Flash/AS3 file that can pull in HTML data from a website? The site has a comment section (similar to this http://www.td.com/to-our-customers/tdhelps/#.UKwHy4fhr4W) and I need that section to display, in real time, in the Flash file. We also have

Re: [Flashcoders] pull in html section to Flash

2012-11-20 Thread Karl DeSaulniers
Hi Natalia, Yes you can, but it is the most basic of html. No DIVs for example. From the link you provided, that html would not work inside flash I don't think. If possible, get access to the database the comments are stored on and filter the data to your flash piece. HTH, Best, Karl On Nov

Re: [Flashcoders] pull in html section to Flash

2012-11-20 Thread natalia Vikhtinskaya
Thank you Karl Some more questions: 1. What Flash function can pull in basic html to flash? 2. And what Flash function can get access to the database? I suppose that can not be done directly from flash. And how to manage that dynamically with new url each time? 2012/11/21 Karl

Re: [Flashcoders] AS3

2012-10-29 Thread Hans Wichman
ah well if asnext/as4 is better then its actionscript is dead, long live actionscript:) Sent from my iPad On 29 okt. 2012, at 05:36, Kevin Newman capta...@unfocus.com wrote: I literally meant AS3 is dying. Adobe does have their replacement (check some recent discussions on the Apache

Re: [Flashcoders] Game physics programming needed.

2012-10-29 Thread John R. Sweeney Jr.
Did you unsubscribe using the link at the bottom of the emails? That works just fine. Good luck, John John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Oct 28, 2012, at 8:42 PM, Oren B. wrote: ok, its getting really

Re: [Flashcoders] Game physics programming needed.

2012-10-29 Thread John R. Sweeney Jr.
Sorry. I sent that on Friday. My ISP had issues over the weekend. :) John John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Oct 28, 2012, at 9:02 PM, John R. Sweeney Jr. wrote: Did you unsubscribe using the link at the

Re: [Flashcoders] AS3

2012-10-28 Thread Hans Wichman
Sorry for the late reply, I was pondering about how to bring this without going into a flash vs html5 debate (been there done that). So I think to sum it up, I think the heart of the matter is that in my opinion actionscript/flash is not dying, it's moving and growing towards where its

Re: [Flashcoders] Game physics programming needed.

2012-10-28 Thread Kurt Dommermuth
Thanks Roger. You are right. We're really just trying to get the physics right now and are planning on fine tuning after we get that settled. Take care and good luck to everyone on the east coast of the US! Kurt On Sun, Oct 28, 2012 at 3:55 PM, Roger Persson ro...@radiergum.com wrote:

Re: [Flashcoders] Game physics programming needed.

2012-10-28 Thread Oren B.
ok, its getting really annoying. i have unsubscribed for 3 times from this mailing list. please remove me for good or ill have to trash your sessions with silverlight appraisals. :) thanks, Oren On Sun, Oct 28, 2012 at 9:55 PM, Roger Persson ro...@radiergum.com wrote: Hi, just a quick

RE: [Flashcoders] Game physics programming needed.

2012-10-28 Thread Bryan Thompson
Oren, it's so simple. There is a link at the bottom of every message you get. Click this: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders and use your common sense to figure out how to unsubscribe. It's just not that difficult. If you still can't figure it out, consider giving up

Re: [Flashcoders] AS3

2012-10-28 Thread Kevin Newman
I literally meant AS3 is dying. Adobe does have their replacement (check some recent discussions on the Apache Flex-dev mailing list ;-) ). Hopefully it'll revitalize things a bit. Kevin N. On 10/28/2012 7:24 AM, Hans Wichman wrote: I think the heart of the matter is that in my opinion

Re: [Flashcoders] Game physics programming needed.

2012-10-28 Thread Karl DeSaulniers
:O On Oct 28, 2012, at 11:03 PM, Bryan Thompson wrote: Oren, it's so simple. There is a link at the bottom of every message you get. Click this: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders and use your common sense to figure out how to unsubscribe. It's just not that

RE: [Flashcoders] Game physics programming needed.

2012-10-28 Thread Bryan Thompson
I need to apologize to the list and especially to Oren. This post was uncalled for. I was angry about other issues and his post just set me off. Please disregard my very rude indiscretion. Bryan -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com

Re: [Flashcoders] Game physics programming needed.

2012-10-28 Thread Ross Sclafani
Semi-warranted. Ross P. Sclafani Design | Technology | Creative http://www.neuromantic.com http://ross.sclafani.net http://www.twitter.com/rosssclafani 347.204.5714 On Oct 29, 2012, at 1:29 AM, Bryan Thompson br...@swfmagic.com wrote: I need to apologize to the list and especially to Oren.

Re: [Flashcoders] AS3

2012-10-27 Thread Peter Ginneberge
AS4 is on the way, including a new VM to support it. - Original Message - From: Kerry Thompson al...@cyberiantiger.biz To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, October 26, 2012 8:28 PM Subject: Re: [Flashcoders] AS3 I don't think there is going to be an

[Flashcoders] Game physics programming needed.

2012-10-27 Thread Kurt Dommermuth
Hello People, Someone is helping me program a game, but neither he nor I can handle some aspects of it. I won't speak for him, but the truth is my math skills blow. Is anyone out there confident that could make this skateboard game work? http://staticportfolio.com/TEY/skatebeach/ We've got so

Re: [Flashcoders] Game physics programming needed.

2012-10-27 Thread Hans Wichman
Hi Kurt, sorry don't have the time to help you out, would love to though:) but maybe it isn't necessary... have you thought about using box2d instead of CDK? regards, JC On 27/10/2012 16:49, Kurt Dommermuth wrote: Hello People, Someone is helping me program a game, but neither he nor I can

Re: [Flashcoders] Game physics programming needed.

2012-10-27 Thread Kurt Dommermuth
Thank you JC. My partner was excited about it, but then something happened that dissuaded him from using it. I'll run it by him again and find out why. Thanks for the note! Kurt On Sat, Oct 27, 2012 at 11:09 AM, Hans Wichman hans.wich...@gmail.comwrote: Hi Kurt, sorry don't have the time

Re: [Flashcoders] Game physics programming needed.

2012-10-27 Thread Karim Beyrouti
I would also have a look at NAPE: https://github.com/deltaluca/nape . CDK can be quite slow in comparison to vector maths. Karim Beyrouti t: +44 (0) 7977 997 629 e: ka...@kurst.co.uk w: http://kurst.co.uk skype: karimbeyrouti 109 Timber Yard, Drysdale Street, Hoxton, London, N1 6ND On 27 Oct

Re: [Flashcoders] AS3

2012-10-27 Thread Kevin Newman
There is absolutely definitely going to be /something/. ASNext is what it's called in the roadmap: http://www.adobe.com/devnet/flashplatform/whitepapers/roadmap.html Kevin N. On 10/26/2012 2:28 PM, Kerry Thompson wrote: I don't think there is going to be an AS4.

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

[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

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

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

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

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

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 tom.rho...@gmail.com wrote: how depressing that a simple AS3 question has turned

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;

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 *

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:

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

Re: [Flashcoders] AS3

2012-10-26 Thread Hans Wichman
I call bs :) Op 26 okt. 2012 19:34 schreef Kevin Newman capta...@unfocus.com 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,

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] 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:

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.

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

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

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

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 II

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

Re: [Flashcoders] AS3

2012-10-25 Thread Karl DeSaulniers
Well, got an update on the progress. First off, thank you all for your participation in helping me with my problem. Unfortunately this was a case of epic fail on my part. movieClipOverButtonitis was the disease. Seems the frame MC I had over the scene was blocking my button, so the code I

Re: [Flashcoders] AS3

2012-10-25 Thread Paul A.
No worries - we've all been there. On 25/10/2012 09:08, Karl DeSaulniers wrote: Well, got an update on the progress. First off, thank you all for your participation in helping me with my problem. Unfortunately this was a case of epic fail on my part. movieClipOverButtonitis was the disease.

Re: [Flashcoders] AS3

2012-10-25 Thread John R. Sweeney Jr.
And we'll be there again, I'm sure… :) John John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Oct 25, 2012, at 3:15 AM, Paul A. wrote: No worries - we've all been there. ___

Re: [Flashcoders] AS3

2012-10-25 Thread Karl DeSaulniers
Yay! I just completed my first AS3 job Go Me! :P Best, Karl On Oct 25, 2012, at 8:48 AM, John R. Sweeney Jr. wrote: And we'll be there again, I'm sure… :) John John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Oct 25,

Re: [Flashcoders] AS3

2012-10-25 Thread John R. Sweeney Jr.
Congratulations… John John R. Sweeney Jr. Senior Interactive Multimedia Developer OnDemand Interactive Inc Hoffman Estates, IL 60169 On Oct 25, 2012, at 8:58 AM, Karl DeSaulniers wrote: Yay! I just completed my first AS3 job Go Me! :P

RE: [Flashcoders] AS3

2012-10-25 Thread Merrill, Jason
I'm about to start my first HTML5/CSS3/Javascript job - wish me luck! :) Going through a lot of courses on Lynda.com - completed some Javascript courses and jQuery, now enjoying Lee Brimlow's HTML 5 For Flash Developers course right now. Good stuff - I wish Javascript was a more advanced

RE: [Flashcoders] AS3

2012-10-25 Thread Cor
Hi Jason, Me too. :-) Be sure to look at http://www.greensock.com/get-started-js/ regards Cor van Dooren The Netherlands Merrill schreef: I'm about to start my first HTML5/CSS3/Javascript job - wish me luck! :) Going through a lot of courses on Lynda.com - completed some Javascript

[Flashcoders] PSA: Monocle in open beta

2012-10-25 Thread Henrik Andersson
I know that this is a bit late, but since noone else has posted it I guess I will. http://www.bytearray.org/?p=4858 You can now register and instantly get access to the Monocle profiling tool. ___ Flashcoders mailing list

Re: [Flashcoders] AS3

2012-10-25 Thread Kevin Newman
There are some things that are quite nice about JS, but it can be hard to get used to closures over classes, and that kind of thing. If you are looking for library suggestions, I loved Backbone.js, but Flex folks seem to prefer Angular.js. QUnit is actually a lot of fun too (I haven't found

Re: [Flashcoders] AS3

2012-10-25 Thread Ross P. Sclafani
or you can just turn it into an advanced language. https://github.com/neuromantic/CodeJS/blob/master/doc/README.markdown On Oct 25, 2012, at 11:35 AM, Merrill, Jason jason.merr...@bankofamerica.com wrote: I'm about to start my first HTML5/CSS3/Javascript job - wish me luck! :) Going

Re: [Flashcoders] PSA: Monocle in open beta

2012-10-25 Thread John McCormack
Excellent. Thank you. John On 25/10/2012 16:50, Henrik Andersson wrote: I know that this is a bit late, but since noone else has posted it I guess I will. http://www.bytearray.org/?p=4858 You can now register and instantly get access to the Monocle profiling tool.

RE: [Flashcoders] AS3

2012-10-25 Thread Merrill, Jason
Yeah, been looking to someday switch to Java and use GWT to export to Javascript but think it's wise to get really comfortable with JS first. I'm comfortable with the language, just haven't done much in the way of application yet. I've been programmed by a full 10 years of Actionscript.

Re: [Flashcoders] PSA: Monocle in open beta

2012-10-25 Thread Oren B.
HOW CAN I UN SUBSCRIBE ALREADY On Thu, Oct 25, 2012 at 7:53 PM, John McCormack j...@easypeasy.co.ukwrote: Excellent. Thank you. John On 25/10/2012 16:50, Henrik Andersson wrote: I know that this is a bit late, but since noone else has posted it I guess I will.

Re: [Flashcoders] AS3

2012-10-25 Thread Karl DeSaulniers
jQuery I think you will find is a very friendly language. Once you get into jQuery UI and jQuery animation, I think that is when your wheels will churn most. Best of luck! Karl On Oct 25, 2012, at 10:35 AM, Merrill, Jason wrote: I'm about to start my first HTML5/CSS3/Javascript job -

Re: [Flashcoders] PSA: Monocle in open beta

2012-10-25 Thread Ross P. Sclafani
On Oct 25, 2012, at 3:17 PM, Oren B. orensometh...@gmail.com wrote: HOW CAN I UN SUBSCRIBE ALREADY _ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___

[Flashcoders] AS3

2012-10-24 Thread Karl DeSaulniers
Hello All, Long time. If your available at the moment, I could use your help with some AS3. I finally got an AS3 job! Yay! But I am stuck on the most simple of things. All I am trying to do is make some buttons work... lol Here is my code. button1_btn.buttonMode = true;

Re: [Flashcoders] AS3

2012-10-24 Thread Paul A.
Try removing: button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; Your code is a bit convoluted! divers_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(divinedivers); }); scuba_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(scubadudes); });

Re: [Flashcoders] AS3

2012-10-24 Thread Hans Wichman
Hi Karl, jus keep breathin;), this will pass and you'll never go back to as2 again;). Anyway on subject, have you tried out the standard SimpleButton class? If it doesnt fit your need, why not, maybe we can help with that, but that class should work for most simple cases. In addition, do you

RE: [Flashcoders] AS3

2012-10-24 Thread Merrill, Jason
function() { gotoAndStop(divinedivers); }); Yeah, this is weird and unnecessary. Anonymous functions are recommended against in AS3. Jason Merrill Instructional Technology Architect II Bank of America Global Learning 703.302.9265 (w/h) ___ -Original

Re: [Flashcoders] AS3

2012-10-24 Thread Paul A.
On 24/10/2012 14:43, Merrill, Jason wrote: function() { gotoAndStop(divinedivers); }); Yeah, this is weird and unnecessary. Anonymous functions are recommended against in AS3. Really? I used to be of the same opinion, but certainly not as a blanket rule. It all depends. Jason Merrill

RE: [Flashcoders] AS3

2012-10-24 Thread Merrill, Jason
Plus, anonymous functions can throw off your scope, so your buttons could fail... Jason Merrill Instructional Technology Architect II Bank of America Global Learning 703.302.9265 (w/h) ___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com

RE: [Flashcoders] AS3

2012-10-24 Thread Merrill, Jason
Ok, what's a good case to use them? Just curious, I have never found a situation where they were warranted. Jason Merrill Instructional Technology Architect II Bank of America Global Learning 703.302.9265 (w/h) ___ -Original Message- From:

Re: [Flashcoders] AS3

2012-10-24 Thread Ross P. Sclafani
anon functions benefit from coding speed and lose all benefits of static typing, this is why they are perfectly suited to javascript and poor tools in as3.0, although i try to avoid them in js also because i prefer code organization over script size -- i let uglify.js take care of that part.

RE: [Flashcoders] AS3

2012-10-24 Thread Merrill, Jason
That still isn't an argument to use them in my opinion, personally I think the code is much more convoluted that way. Your argument is essentially it's a preference in coding style, not that there are situations that specifically call for their use. Jason Merrill Instructional Technology

Re: [Flashcoders] AS3

2012-10-24 Thread Paul A.
On 24/10/2012 15:08, Merrill, Jason wrote: Ok, what's a good case to use them? Just curious, I have never found a situation where they were warranted. Sometimes (depending on what your buttons do), it seems rather artificial to have to fabricate a stand-alone function to handle an event when

Re: [Flashcoders] AS3

2012-10-24 Thread Paul A.
Jason, I wasn't arguing anything except that IMHO using them makes code more readable in some circumstances. It's not an either/or. We can agree to differ. On 24/10/2012 15:23, Merrill, Jason wrote: That still isn't an argument to use them in my opinion, personally I think the code is much

RE: [Flashcoders] AS3

2012-10-24 Thread Merrill, Jason
Right, it's cool, we're on the same page, my only point is there is no functional reason to use them (no pun intended) and in my personal opinion, they have more potential to introduce problems. Jason Merrill Instructional Technology Architect II Bank of America Global Learning

Re: [Flashcoders] AS3

2012-10-24 Thread Cor
Hi Karl, Hahahaha, AS3 is very much easier then AS2. But can be a little tricky to grasp when you are switching. Believe me, once you see the structure, you don't understand that AS2 has ever existed. First the Q: How do you use a button instead of a MC. There is no difference, they are

Re: [Flashcoders] AS3

2012-10-24 Thread Karl DeSaulniers
Thanks Paul.. I will try that. On Oct 24, 2012, at 7:33 AM, Paul A. wrote: Try removing: button1_btn.mouseChildren = false; button2_btn.mouseChildren = false; Your code is a bit convoluted! divers_btn.addEventListener(MouseEvent.CLICK, function() { gotoAndStop(divinedivers); });

Re: [Flashcoders] AS3

2012-10-24 Thread Karl DeSaulniers
Your not the only one who has said that about AS2.. lol I know nothing about any AS3 classes. Frankly they confuse me with the whole extend and static and public and aa! Makes my brain hurt just thinking about how I MUST learn them or fade into AS2 history. Karl On Oct 24, 2012, at

Re: [Flashcoders] AS3

2012-10-24 Thread Karl DeSaulniers
OH? What is the best coding standards way? I used an annon function because button1_btn.addEventListener(MouseEvent.ROLL_OUT, toggleB1(1)); Does not work. Karl On Oct 24, 2012, at 8:43 AM, Merrill, Jason wrote: function() { gotoAndStop(divinedivers); }); Yeah, this is weird and

Re: [Flashcoders] AS3

2012-10-24 Thread Karl DeSaulniers
I am glad I could get the blood stirring in this list again. :P Karl On Oct 24, 2012, at 10:02 AM, Merrill, Jason wrote: Right, it's cool, we're on the same page, my only point is there is no functional reason to use them (no pun intended) and in my personal opinion, they have more

Re: [Flashcoders] AS3

2012-10-24 Thread Karl DeSaulniers
Thank you Cor! The buttons are MCs placed on the stage. At first they were Buttons, but when they wouldn't change even the states within the Button, so I converted them to MCs. Also, what does the , false, 0, true); do? Does it have to do with removing the listener? uhg im not going to

Re: [Flashcoders] AS3

2012-10-24 Thread Hans Wichman
Hi Karl, when you are starting with as3: whatever works :)). Basically both will work (anon and nonanon (double wow)), but anonymous is harder (read impossible) to remove. So if you create a view that exists throughout the lifetime of the app, with buttons that do the same, either way will

Re: [Flashcoders] AS3

2012-10-24 Thread Karl DeSaulniers
I've got Todd Perkins book But project is due today, so no time to read. Must dive head first into this empty pool. :P Karl On Oct 24, 2012, at 2:58 PM, Hans Wichman wrote: Hi Karl, when you are starting with as3: whatever works :)). Basically both will work (anon and nonanon (double

Re: [Flashcoders] AS3

2012-10-24 Thread Henrik Andersson
Karl DeSaulniers skriver: Thank you Cor! The buttons are MCs placed on the stage. At first they were Buttons, but when they wouldn't change even the states within the Button, so I converted them to MCs. Also, what does the , false, 0, true); do? Does it have to do with removing the

Re: [Flashcoders] AS3

2012-10-24 Thread Karl DeSaulniers
So will this work? divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { this.gotoAndStop(OVER);}); I mean. Will this = divers_btn? or do I HAVE to specify divers_btn.gotoAndStop()? After all I am applying the listener to it. @jason Not that I am going to continue with annon

Re: [Flashcoders] AS3

2012-10-24 Thread Cor
Karl, , false, 0, true); I need the false, 0, to get to the third param. Which when set (weak reference) to true gives the garbage collector the oppurtunity to clear the listener and free up resources. Not necessary but I like to clean up. @Being that this is a clients FLA, I am not able to

Re: [Flashcoders] AS3

2012-10-24 Thread Cor
try this: divers_btn.addEventListener(MouseEvent.ROLL_OVER, function(e:MouseEvent):void { e.target.gotoAndStop(OVER);}); Karl DeSaulniers k...@designdrumm.com schreef: So will this work? divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { this.gotoAndStop(OVER);}); I

Re: [Flashcoders] AS3

2012-10-24 Thread Karl DeSaulniers
Thanks Henrik, Well for this, there are two buttons on stage. When you hover over one it makes a message appear, if the other another message appears. So if I dont use those, your saying that when I roll out, the listener is removed automatically? I dont want my project to make peoples

Re: [Flashcoders] AS3

2012-10-24 Thread Paul A.
On 24/10/2012 21:13, Karl DeSaulniers wrote: So will this work? divers_btn.addEventListener(MouseEvent.ROLL_OVER, function() { this.gotoAndStop(OVER);}); I mean. Will this = divers_btn? or do I HAVE to specify divers_btn.gotoAndStop()? My bad, you're right. I put divers_btn because

Re: [Flashcoders] AS3

2012-10-24 Thread Henrik Andersson
Karl DeSaulniers skriver: Thanks Henrik, Well for this, there are two buttons on stage. When you hover over one it makes a message appear, if the other another message appears. So if I dont use those, your saying that when I roll out, the listener is removed automatically? I am saying

Re: [Flashcoders] AS3

2012-10-24 Thread Ross P. Sclafani
if you were writing as2 without extending classes etc, why arent you just working in JS, its the new hot chick on the block, afterall... On Oct 24, 2012, at 3:45 PM, Karl DeSaulniers k...@designdrumm.com wrote: Your not the only one who has said that about AS2.. lol I know nothing about any

Re: [Flashcoders] AS3

2012-10-24 Thread Karl DeSaulniers
That kinda made sense. Will have to read about 5 more times though.. lol :P thanks Henrik. Time to go vote. I will be back later to see if I can pull an elephant out my WHOO HOO. Best, Karl On Oct 24, 2012, at 3:32 PM, Henrik Andersson wrote: Karl DeSaulniers skriver: Thanks Henrik,

Re: [Flashcoders] AS3

2012-10-24 Thread Karl DeSaulniers
Ok, I tried suggestions and things are still not working. The hand cursor doesn't even show. Here is the set up Scene 2 - frame 1 : Main MC - Scene2MC frame 96: Layer 1 : (Actions were working on)

Re: [Flashcoders] AS3

2012-10-24 Thread Karl DeSaulniers
Already have Javascript and jQuery under belt. (well mostly) This job is primarily AS3 so I thought I'd give it a try. Karl On Oct 24, 2012, at 3:35 PM, Ross P. Sclafani wrote: if you were writing as2 without extending classes etc, why arent you just working in JS, its the new hot chick on

Re: [Flashcoders] AS3

2012-10-24 Thread Ross P. Sclafani
as3 is so great. you should heed other's warning about never being able to look back. i love the language so much, i rewrote it in javascript pretty much. i even ported my classical inheritance engine to Node.js then i recreated most of the the Flash API, but im less sold now that mimicking

Re: [Flashcoders] AS3

2012-10-24 Thread Kevin Newman
When I first started in AS3, there were two blocks that caught me up a lot. I started from an older AS2 FLA and then converted to AS3 - that was the cause of the problem. If you do that, you end up with an AS3 fla that doesn't have the right settings in the AS3 Properties panel. You won't

Re: [Flashcoders] AS3

2012-10-24 Thread Kevin Newman
Sometimes anonymous and inline functions as terms are used interchangeably. I wrote an addOnce method that utilized a closure - an inline function (it wasn't anonymous though) that subscribed to the main add (this is a Signals implementation) method, then removes itself from within itself,

Re: [Flashcoders] AS3

2012-10-24 Thread Karl DeSaulniers
I did start with a AS2 FLA and switched to AS3. So your saying the IDE does not add the appropriate stuff when you just convert? WTF! Good to know Kevin. Thanks Best, Karl On Oct 24, 2012, at 4:25 PM, Kevin Newman wrote: When I first started in AS3, there were two blocks that caught me

Re: [Flashcoders] AS3

2012-10-24 Thread Karl DeSaulniers
That didn't fix my problem. :( I got all excited too.. lol Karl On Oct 24, 2012, at 5:38 PM, Karl DeSaulniers wrote: I did start with a AS2 FLA and switched to AS3. So your saying the IDE does not add the appropriate stuff when you just convert? WTF! Good to know Kevin. Thanks Best,

Re: [Flashcoders] AS3

2012-10-24 Thread Kevin Newman
There might be other problems I have forgotten about (I made the switch a long time ago) - do you have any specific examples of problem areas? (You should at least be getting line numbers during errors with permit debugging checked - that's a huge help). If you've already gone down the path

<    1   2   3   4   5   6   7   8   9   10   >