Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Steven Sacks
If these students have no experience programming, you just can't start with OOP. They have no foundation to understand the concepts. You have to walk before you can run, and OOP is definitely runners territory. Students with no programming experience are barely crawling. Arrays, Strings,

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Ricky Bacon
Steven Sacks wrote: I think you should consider teaching programming basics, focusing on clean code, best practices, naming conventions, etc. and touch on OOP towards the end. The people who are most interested will seek out more information, but I think you will lose people if you try to

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Johannes Nel
i think teaching someone OOP from the begining is not a bad idea, you are still teching them to code but around classes. you do not need to introduce more advanced concepts until later. the best free book i think is thinking in java by bruce eckel and should be easily adaptable for your needs. i

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Mike Reilly
Thanks Ron, I think you've found my wavelength (as fluctuating as it might be). I agree on that patterns would be awesome to teach, as early as they can conceive what an object is. The book Objects First by Kolling is my inspiration for doing this, it's aimed at the right level. Take a game

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Mark Winterhalder
On 8/20/07, Steven Sacks [EMAIL PROTECTED] wrote: If these students have no experience programming, you just can't start with OOP. Sure you can. Just look at what Alan Kay did with kids and Squeak (essentially Smalltalk). Here's a good talk by him, btw, much about learning and

[Flashcoders] Re: Intro to OOP using ActionScript --a useful book

2007-08-20 Thread Cyrelle Gerson
I didn't see this book listed among the many suggestions in this thread. Object-Oriented Actionscript for Flash 8 by Peter Elst and Todd Yard ISBN-10: 1590596196 I have found it to be quite useful, well-written, and a good review of OO design principles. Cyrelle Gerson eLearning Developer

Re: [Flashcoders] accessing super fields

2007-08-20 Thread Pedro Taranto
I think you should use composition in this case, not inheritance. -- Pedro Taranto ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to

Re: [Flashcoders] accessing super fields

2007-08-20 Thread Mark Winterhalder
Hi Hans, 'super' refers to the instance, but your static _test isn't part of the instance, it is part of the class (technically, of the constructor function). Imagine it as this.prototype.prototype, although it technically isn't the same (well, maybe it is, I haven't tested it). It behaves like

Re: [Flashcoders] accessing super fields

2007-08-20 Thread Hans Wichman
Hi Pedro, the question is not about what is the best approach :), but about 'why the heck isnt this working?'. From a programming point of view my example is bad practice anyway greetz JC On 8/20/07, Pedro Taranto [EMAIL PROTECTED] wrote: I think you should use composition in this case, not

Re: [Flashcoders] accessing super fields

2007-08-20 Thread Hans Wichman
Hi Mark, why is it static? Its declared as private var not as private static var? (if i remove super it works fine btw and for different instances with different values). greetz JC On 8/20/07, Mark Winterhalder [EMAIL PROTECTED] wrote: Hi Hans, 'super' refers to the instance, but your

RE: [Flashcoders] accessing super fields

2007-08-20 Thread Benny
Looks like you forgot to actually extend the superclass, try class SubClass extends superclass { - Benny -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Hans Wichman Verzonden: maandag 20 augustus 2007 13:51 Aan: Flashcoders mailing list Onderwerp:

Re: [Flashcoders] accessing super fields

2007-08-20 Thread Hans Wichman
Hi Benny, Sorry, copy paste error, of course the subclass looks like: subclass extends superclass etc :) Still no go :) greetz JC On 8/20/07, Benny [EMAIL PROTECTED] wrote: Looks like you forgot to actually extend the superclass, try class SubClass extends superclass { - Benny

[Flashcoders] I have problem executing playlist streaming example macromedia

2007-08-20 Thread creativity
I have read these articles http://www.adobe.com/devnet/flash/articles/video_player_03.html downloaded sample files and placed files as directed. I have also installed flash media server 2 trial. Play list is showing all videos. videoplayer component is visible but no video is displayed in video

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Ron Wheeler
Mike Reilly wrote: Thanks Ron, I think you've found my wavelength (as fluctuating as it might be). I agree on that patterns would be awesome to teach, as early as they can conceive what an object is. The book Objects First by Kolling is my inspiration for doing this, it's aimed at the right

RE: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Norman Cousineau
Interesting thread. Please let me get back to work ! ;) In line with Steve Sacks' message, I can recommend Steve McConnell's Code Complete 2nd ed. It deals with best practices in general, and is well written. (http://cc2e.com/) However, pedagogically (not that I'm an expert), I think it's ok

[Flashcoders] AS3 Bitmap class

2007-08-20 Thread Max Kaufmann
According to the AS3 documentation: A BitmapData object can be drawn to the screen by a Bitmap object in one of two ways: by using the vector renderer as a fill-bitmap shape, or by using a faster pixel-copying routine. The pixel-copying routine is substantially faster than the vector renderer,

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Ron Wheeler
What is a subroutine? Not used in this millennium. Seems to be a concept from the distant past. Start with OOP. We did not get here by accident. It is easier. It is less prone to errors. It makes your coding examples much smaller and much easier to grasp. Their code exists in a small

Re: [Flashcoders] save swf

2007-08-20 Thread Alan MacDougall
bassam mohaisen wrote: Hi all I'm trying to do e-tshirt design where the user can desgin his shirt and add text or images so I need to know how can I save the design as image or swf for the design how can I take screenshot , if somebody know the concept and the code . all the text and photos

RE: [Flashcoders] accessing super fields

2007-08-20 Thread Benny
On a second look: first you don't need the super statement because SuperClass' _test is already inherited by the SubClass and second super is only supported with method members, see LiveDocs: http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.h

RE: [Flashcoders] accessing super fields

2007-08-20 Thread Kerry Thompson
Hans Wichman wrote: lets say i have a superclass: class SuperClass { private var _test:String = null; } and a subclass: class SubClass { private function _testFunction () { super._test = foo; trace (super._test); } } this traces undefined. If I remove the super.

[Flashcoders] Need special 3D Charting / Graphing solution...

2007-08-20 Thread Mankowski, Chris
Does anyone know where I can find a nice-looking charting component that can not only draw a line graph, but *also* allow me to scroll left or right ... In a perfect world this will download a dynamically generated XML file that matches up with the position of the scroll bar. I'm open to

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Ron Wheeler
They do claim that men never pass the emotional age of 12 and I have with guys who were 5 with 30 years of experience.. So 4 and 14 are not so far apart (on the male side at least). T. Michael Keesey wrote: On 8/19/07, Ron Wheeler [EMAIL PROTECTED] wrote: Some of the Heads Up Design

[Flashcoders] status text in navigator when loading external content

2007-08-20 Thread Gilles Roquefeuil
Hello, i've noticed that when a flash movie loads some external content (images, texts, videos, etc), in the navigator the status text is very often set to loading content from.. and stays like that even when the content has been totally loaded. The status never gets to Done. Is there

Re: [Flashcoders] accessing super fields

2007-08-20 Thread Hans Wichman
Hi, okay thanks that comes as closest to an explanation as I'd like I guess, but. If I declare a method test() in superclass, i can call it from the subclass using super.test(). Whether I have overwritten it or not. So why doesnt the same go for fields. I think its a bug to be honest. As

Re: [Flashcoders] flash media server2 installation query

2007-08-20 Thread Jeff Harrington
You should definitely read the docs, but here it is quick. You don't need Apache or IIS - it's a standalone media server. You make an application - say call it - myApp in the applications folder. Then your flvs go into applications/myapp/streams/video/myFlv.flv The URL will be:

RE: [Flashcoders] accessing super fields

2007-08-20 Thread Benny
As Benny said, you dont need to, no i know! But appearantly it works different for fields than for methods. It actually doesn't work *different* but it doesn't work *per design* for fields. The docs (see the link I provided) clearly state that it is only supported with methods. There is no

[Flashcoders] [Script_in_Action] New Links

2007-08-20 Thread Ron Wheeler
I have added a lot of new links for general graphic design. Some new links to programming books have been added as well. Please check out the Links section and let me know of new links that should be added. I would like to hear from people who are using components that should be included.

Re: [Flashcoders] accessing super fields

2007-08-20 Thread Hans Wichman
sorry i missed that part, thanks benny:) On 8/20/07, Benny [EMAIL PROTECTED] wrote: As Benny said, you dont need to, no i know! But appearantly it works different for fields than for methods. It actually doesn't work *different* but it doesn't work *per design* for fields. The docs (see

Re: [Flashcoders] accessing super fields

2007-08-20 Thread Mark Winterhalder
On 8/20/07, Hans Wichman [EMAIL PROTECTED] wrote: Hi Mark, why is it static? Uhm... because I didn't read properly, sorry. :/ Its declared as private var not as private static var? I could swear it read 'static var' when I first read the mail. Now you made Gmail change it some how. :)

RE: [Flashcoders] accessing super fields

2007-08-20 Thread Kerry Thompson
Hans Wichman wrote: okay thanks that comes as closest to an explanation as I'd like I guess, but. If I declare a method test() in superclass, i can call it from the subclass using super.test(). Whether I have overwritten it or not. So why doesnt the same go for fields. I think

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Ron Wheeler
You can learn the basics while using OOP. It is just easier. You can start with simple objects and still write a complete piece of code that has a set of well-defined behaviours and can be stuck into a test program without having to deal with the whole nasty story at once. I am not sure how

RE: [Flashcoders] [Script_in_Action] New Links

2007-08-20 Thread Dave Watts
Just as a heads-up, when you BCC Flashcoders your messages will not be sent to the list automatically. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta,

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Brian Lesser
Mutimedia authoring tools have been object oriented for a long time because interactive multimedia requires a reasonable way to handle user-driven events. So there is no way to avoid working with objects. But what does it mean to start with OOP? or not start with OOP? I have a lot of sympathy

Re: [Flashcoders] accessing super fields

2007-08-20 Thread Ron Wheeler
Hans Wichman wrote: Hi, okay thanks that comes as closest to an explanation as I'd like I guess, but. If I declare a method test() in superclass, i can call it from the subclass using super.test(). Whether I have overwritten it or not. So why doesnt the same go for fields. Think

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Roy Pardi
At 11:43 PM -0700 8/19/07, Steven Sacks wrote: If these students have no experience programming, you just can't start with OOP. They have no foundation to understand the concepts. You have to walk before you can run, and OOP is definitely runners territory. Students with no programming

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Roy Pardi
At 9:54 PM -0400 8/19/07, Mike Reilly wrote: I think we're on the same path Roy. While I have some future coders, this is Intro for 9th-11th grade kids, so my task is to teach but also whet their appetite for more. My deeper desire is to do it as OO as possible, to better prepare them for AP

Re: [Flashcoders] accessing super fields

2007-08-20 Thread elibol
In as3, variables (properties and methods) that are private are not visible to subclasses, protected are accessible with this and super (as should be), and public are accessible with this and super too (kind of obvious). as3 definitely rocks when it comes to variable scoping. On 8/20/07, Mark

Re: [Flashcoders] [Script_in_Action] New Links

2007-08-20 Thread Mark Winterhalder
On 8/20/07, Dave Watts [EMAIL PROTECTED] wrote: Just as a heads-up, when you BCC Flashcoders your messages will not be sent to the list automatically. Also, my filter won't catch it and it ends up in my inbox instead of in FlashCoders. Mark ___

Re: [Flashcoders] Need special 3D Charting / Graphing solution...

2007-08-20 Thread Mike
This should get you started. They have a free and a licensed version. Pretty slick! http://www.maani.us/xml_charts/ Regards, Mike On 8/20/07, Mankowski, Chris [EMAIL PROTECTED] wrote: Does anyone know where I can find a nice-looking charting component that can not only draw a line graph, but

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Steven Sacks
What is a subroutine? Not used in this millennium. Seems to be a concept from the distant past. Distant past? Subroutines are the foundation of DRY and OOP. http://en.wikipedia.org/wiki/Subroutine This is exactly what I mean by developers taking for granted what it took to get them where

Re: [Flashcoders] accessing super fields

2007-08-20 Thread Hans Wichman
yep they should have copied that from java years ago :)) On 8/20/07, elibol [EMAIL PROTECTED] wrote: In as3, variables (properties and methods) that are private are not visible to subclasses, protected are accessible with this and super (as should be), and public are accessible with this

Re: [Flashcoders] accessing super fields

2007-08-20 Thread Hans Wichman
well just to be clear, i wasnt planning on overriding _test :) the example was bad enough practice in itself. It was more about a readability issues, like some like to do this. etc for every variable. On 8/20/07, Ron Wheeler [EMAIL PROTECTED] wrote: Hans Wichman wrote: Hi, okay thanks

Re: [Flashcoders] accessing super fields

2007-08-20 Thread elibol
Seems to perfect sense in as3... On 8/20/07, Ron Wheeler [EMAIL PROTECTED] wrote: Hans Wichman wrote: Hi, okay thanks that comes as closest to an explanation as I'd like I guess, but. If I declare a method test() in superclass, i can call it from the subclass using

Re: [Flashcoders] accessing super fields

2007-08-20 Thread elibol
make*... On 8/20/07, elibol [EMAIL PROTECTED] wrote: Seems to perfect sense in as3... On 8/20/07, Ron Wheeler [EMAIL PROTECTED] wrote: Hans Wichman wrote: Hi, okay thanks that comes as closest to an explanation as I'd like I guess, but. If I declare a method

RE: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread David Ngo
I'm with Steven on this one. I, too, started way back in the days of procedural programming (Turbo Pascal, anyone?) and all of that taught me to understand the basic how's and why's of programming. I see a lot of new developers today who take what they read verbatim and apply it only because

Re: [Flashcoders] flash media server2 installation query

2007-08-20 Thread Andy Herrman
Check to make sure the windows firewall isn't blocking connections to FMS. I had that problem when I first installed it on my machine. -Andy On 8/20/07, Jeff Harrington [EMAIL PROTECTED] wrote: You should definitely read the docs, but here it is quick. You don't need Apache or IIS - it's a

RE: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Kerry Thompson
Steven Sacks wrote: A subroutine is one of the foundational concepts of programming, especially OOP Right on, Steven. We call them functions or methods now. Subroutine is simply an older name for a very current concept. There are some advantages to having been a programmer since 1980.

RE: [Flashcoders] accessing super fields

2007-08-20 Thread Kerry Thompson
Hans Wichman wrote: yep they should have copied that [private and protected] from java years ago :)) Or from C++ years before Java was born ^_^ Cordially, Kerry Thompson ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Steven Sacks
OOP might seem easy to understand to people who understand it, but how can you expect anyone to think abstractly about concepts they don't even understand at a concrete level? If this was a class of people who understood basic programming but had no OOP experience, then I'd say sure give it a

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Steven Sacks
You can simplify it by saying A subroutine is a function that is called by another function. But, how can you explain the concept of a subroutine to somebody who doesn't even know what a function is? While the term subroutine has fallen out of popular use, I know what it is and what it means

[Flashcoders] Real Player 11 messing up Flash application UI

2007-08-20 Thread Andy Herrman
For those who don't know, Real Player 11 (in beta right now) added a feature that lets users download videos embedded in flash applications (like youtube, google video, etc). It does this by adding an entry to Flash's rightclick menu and by having a mini-toolbar appear at the top left of the

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread John McCormack
I came at software from the electronics upwards, and maybe because of that I sometimes don't see the woods for the trees. If these kids get to handle objects in a more natural way without being concerned about what they are made of they might get a better feel for OOP. Also, in today's world it's

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread [p e r c e p t i c o n]
I started in the industry as a t.a. for a graduate course in programming...the research as well as my own personal experience suggests that younger people tend to learn the semantics and nuance of object oriented programming much easier than older adults...with that said..AS1 or even JavaScript

RE: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Kerry Thompson
[p e r c e p t i c o n] wrote: AS1 or even JavaScript for that matter actually provides a suitable introduction to OOP on some level Oof. I agree with most of what you said except for AS1 being a suitable introduction to OOP. I consider AS1's OOP model an abomination. You can write OOP in AS1

Re: [Flashcoders] Real Player 11 messing up Flash application UI

2007-08-20 Thread John Dowdell
Andy Herrman wrote: For those who don't know, Real Player 11 (in beta right now) added a feature that lets users download videos embedded in flash applications (like youtube, google video, etc). It does this by adding an entry to Flash's rightclick menu and by having a mini-toolbar appear at

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread [p e r c e p t i c o n]
hi Kerry, i understand your point, but i found that when teach students how to use an object and what's contained in an object first, then the more conceptual ideas come easier...of course every class and every student is different... p On 8/20/07, Kerry Thompson [EMAIL PROTECTED] wrote: [p e

RE: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Jesse Graupmann
http://www.debreuil.com/docs/ch01_Intro.htm http://www.kirupa.com/developer/oop2/AS2OOPindex.htm --- http://proto.layer51.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive:

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread T. Michael Keesey
I think both sides of this debate have some valid points, although I'd lean a lot more strongly toward the teach OOP later approach. But it's still possible to create OOP code from the start in AS2 or AS3. The fundamentals of programming are variables, expressions, control structures, and

RE: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Kerry Thompson
[p e r c e p t i c o n] wrote: i understand your point, but i found that when teach students how to use an object and what's contained in an object first, then the more conceptual ideas come easier Ok, I'll buy that. Not to be argumentative--just curious--how do you find the AS1 prototype

Re: [Flashcoders] Real Player 11 messing up Flash application UI

2007-08-20 Thread Troy Rollins
On Aug 20, 2007, at 2:58 PM, Andy Herrman wrote: I haven't been able to find any documentation about how they're detecting it. Anyone played around with this yet? Are there any known methods to prevent that toolbar from appearing? This is hideously bad news. Adobe should fire up the legal

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread [p e r c e p t i c o n]
i guess it depends on where you begin...i think special attention has to be paid to as1's ability to add variables and function dynamically because it's at once very powerful and in the hands of someone looking to expand their knowledge of programming and programming languages very misleading

RE: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread Kerry Thompson
[p e r c e p t i c o n] wrote: i guess it depends on where you begin...i think special attention has to be paid to as1's ability to add variables and function dynamically I agree with most everything you say, but that's where we'll have to agree to disagree. I think the ability to add

Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-20 Thread [p e r c e p t i c o n]
I feel the same way. C gives you a feeling for the nitty-gritty of the computer. I use C++ now, but I did a lot of C first (and Assembler before that). Can you imagine writing a C library to display Chinese characters on English Windows 3.1? I would have died if it hadn't been for Paetzold.