Re: [Flashcoders] AS3 MovieClip - Flex .swc compile error - null objectreference

2007-08-19 Thread Muzak
You instantiate classes, so 'things from the library'.
There is no 'stage' in an swc.

 How do you work with the laying objects out in flash then accessing them in 
 flex properly?

You wrap a class around them, so throw them in a MovieClip and execute the 
Create Flex Component command on that movieclip.
You then create instances of that MovieClip in Flex through its Linkage ID or 
if you used a package (and class) through the full 
package+class name.

regards,
Muzak

- Original Message - 
From: {reduxdj} [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Saturday, August 18, 2007 6:15 PM
Subject: [Flashcoders] AS3 MovieClip - Flex .swc compile error - null 
objectreference


I compiled a flash movieclip component .swc for flex from flash, problem is,  
I get a null object error when i try to access the 
instance of things on the stage, however, this error passes the testing inside 
flash but not flex.  Do all objects need to be 
instianted from the library by casting or can you instaniate them from the 
stage too?
 How do you work with the laying objects out in flash then accessing them in 
 flex properly?

 var p1:MovieClip = new Product as MovieClip

 Or can i instaniate with instance names?

 Thanks,
 Patrick



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] ComboBox Component and preloader

2007-08-19 Thread Hans Wichman
Ah right, that can be annoying indeed.
Did you generate any size reports, while working on the preloader?

greetz
JC


On 8/18/07, Kerry Thompson [EMAIL PROTECTED] wrote:

 Hans Wichman wrote:

  could you try exporting the classes in the frame BEFORE you export your
  content?

 This seems so simple, yet I spent the better part of a day getting this to
 work. I was doing everything exactly right, as far as I could tell.
 Exporting classes on frame 5, instances on-stage in frame 6.

 I'm beginning to appreciate the frustration with V2 components. You'll
 love
 the solution.

 I finally discovered that I was exporting a radio button component on
 frame
 1. The way components interact, that was screwing everything up, and
 neither
 the radio buttons nor the ComboBox were working.

 Thanks for pointing me in the right direction, Hans.

 Cordially,

 Kerry Thompson


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Building Text Editor with HTML formated text field

2007-08-19 Thread Enrico Tumilisar
Hi All,

 

I have some project that requesting to build a text editor with these
features:

- Image drag and drop to text area.

- When image drop and placed inside text area, the text auto wrap around the
image.

- Other text editing feature like bold, italic, etc

 

I only have an idea right now, using Flash CS3 image can be inserted by
using html format enabled on text field, but I don’t know whether html
format can have selection.

I’ve been develop text editor before using non html format on text field and
it was fine, but I haven’t tried to use html formatted.

 

I need opinion on you all, is it possible to do this project? And if it so,
do you all have any idea on how to do it?

 

Many thanks!

 

Best Regards,

 

Enrico M Tumilisar

Interactive and Multimedia Developer - HYPERLINK
http://www.digi-can.comwww.digi-can.com

+62.815.922.42.63

 


No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.484 / Virus Database: 269.12.0/961 - Release Date: 8/19/2007
7:27 AM
 
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] ComboBox Component and preloader

2007-08-19 Thread Kerry Thompson
 Ah right, that can be annoying indeed.
 Did you generate any size reports, while working on the preloader?

Yes, I did. I ran the profiler in debug mode. That's when I saw the spike on
the first frame and started digging around.

The ironic thing is that the piece has very little graphics. It's very
code-intensive. It calculates what you need to save for retirement, and uses
some heavy-duty actuarial math, but few graphics.

So, the piece is very light, and the load bar is superfluous on broadband.
Even on a 28.8 modem, it only takes a couple of seconds to load.

Cordially,

Kerry Thompson


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Re: [OT] Improve my design skills

2007-08-19 Thread Mike Guerrero
I used the term Creative Developer. :)

Mikeg

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mario
Gonzalez
Sent: Sunday, August 19, 2007 12:02 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Re: [OT] Improve my design skills

Developer is definitely the BEST term to describe that. I also gave up :)

You say coder, to most people they already automatically think c++... 
which makes them intern assume you can't think with the left side of 
your brain.
Graphic designer, from my experience people then assume you know don't 
know a variable from a zebra.

You say developer, and they don't really even know what that actually 
entails, at which point they can ask you what that means and you can 
tell them:

I use code to make things work, during that process I figure out what 
works best /  doesn't work / looks nicest and make changes to it.

mario
http://www.onedayitwillmake.com

Zeh Fernando wrote:
 Hey guys,
 How would we call someone who likes both coding and graphics (design) 
 ? A
 Graphics Coder ?
 I love programming but I also love graphics design - I can see art in 
 code
 and logic in design! I like mixing both worlds and creating amazing 
 things
 (that's why I love the flash platform, it makes it easy and obvious this
 aspect of design and code being inter-mixed).

 I've gave up on finding a definition. Developer is a better term. :)


 Zeh
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: [OT] Improve my design skills

2007-08-19 Thread Vilmar Fernandes
...

On 8/19/07, Zeh Fernando [EMAIL PROTECTED] wrote:

  Hey guys,
  How would we call someone who likes both coding and graphics (design) ?
 A
  Graphics Coder ?
  I love programming but I also love graphics design - I can see art in
 code
  and logic in design! I like mixing both worlds and creating amazing
 things
  (that's why I love the flash platform, it makes it easy and obvious this
  aspect of design and code being inter-mixed).

 I've gave up on finding a definition. Developer is a better term. :)


 Zeh
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Re: [OT] Improve my design skills

2007-08-19 Thread Helmut Granda
On 8/18/07, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:

 Hey guys,

 How would we call someone who likes both coding and graphics (design) ? A
 Graphics Coder ?


Deseloper...

http://www.deseloper.com/
http://en.wikipedia.org/wiki/Deseloper

The term was created years ago by *Jen deHaan which hasn't catch on yet (
that's why we have this thread ;) ).*

I love programming but I also love graphics design - I can see art in code
 and logic in design! I like mixing both worlds and creating amazing things
 (that's why I love the flash platform, it makes it easy and obvious this
 aspect of design and code being inter-mixed).

 On 8/17/07, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:
 
  Hello folks,
 
  I'm currently mainly a coder, but I also love graphics design and design
  in general. I would love to improve my overall design awareness. Does
 anyone
  have any book (or any other resource such as website, magazine, mailing
  list, whatever) to recommend ? If so, I would be grateful!
 
  Thanks,
 
  Marcelo.
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Slide Presentation - Please Help

2007-08-19 Thread Tom Petz

Hi - new member here, but I've been coding in Flash for a number of years.  I 
have a problem that I hope someone can help me out with.

I have created a Flash Slide Presentation that is synced to a FLV file. So far, 
it works pretty good, but I am having a problem.

I am using buttons to create Chapter Points within the presentation. AKA, you 
click on a button, and the MediaPlayback component should jump to the correct 
position in the FLV file, and the correct slide should appear next to the video.

Here is the code that's on the button:

on (release) {

var m = media_Playback;
var q = m.getCuePoint(slide2);

m.play(Math.round(q.time));

gotoSlide(this.slide_master.slide2_master.slide2);
}

the variable  media_Playback is an instance of the MediaPlayback component 
that is loaded on the top-most level slide (called presentation). The rest of 
the variables are local to the on (release) code.

Here's the problem: when I click the button, the FLV will go to the correct 
place in the presentation. However, the slide loads and immediately switches to 
the last slide it was on. So, for example, if I am currently on slide 7, and I 
want to go back to slide 2 (which is a chapter point) by clicking the button, 
the above code will cause the FLV to go to the correct point in the video, 
slide 2 will appear for half a heartbeat, and then it switches back to slide 7 
(the video still plays where I want it to, however). Obviously, this isn't 
desired.

I've been wracking my brain for two days to figure this out, and I can't solve 
it. If I don't do anything with cue-ing the FLV (removing the m.play() code), 
the correct slide loads fine (however, of course, the video is in the wrong 
place). Only when I add the wrinkle of cue-ing the video do I have an issue. I 
have traced the values, of m, q and q.time, by the way, and they both 
have expected values, so it doesn't seem like an addressing problem.

One interesting things I noted is that the value of m.playheadTime is the 
same before and after I change the position where the FLV should be playing 
back. I've even tried changing the value of m.playheadTime, but it didn't work 
(I'm pretty sure this is a read-only property). I think this might be what's 
wrong, but I have no idea how to fix this problem, so I'm hoping someone can 
please help me.

Thank you!

Tom Petz
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Mike Reilly
Hi there -

I'm a high school teacher who's decided to teach Intro to
Programming using Actionscript (2.0 for now, waiting for the school
to upgrade).

I'd prefer to take an OO approach, and use games in doing so.  For
example, my first game would be a Pong copy.  Lots of basics in there
to learn the environment, basic principles, etc.

So, I was wondering if anyone out there knew of good resources, wanted
to contribute (hell, I'll give you all the credit, you can write a
book, etc.), collaborate, share.  I've search most of the tutorial
sites, but most code is not a great OO example for Flash games due to
little OO, or too much complexity for the beginner.

Your input is welcome, rock on.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Kerry Thompson
Mike Reilly wrote:
 
 I'm a high school teacher who's decided to teach Intro to
 Programming using Actionscript (2.0 for now, waiting for the school
 to upgrade).
 
 I'd prefer to take an OO approach, and use games in doing so

I'd recommend two books, both by Colin Moock, both published by O'Reilly.

First read ActionScript for Flash MX: The Definitive Guide, then
Essential ActionScript 2.0.

The first one is an excellent introduction to coding in Flash. It covers
essential things like levels vs. layers. It also has an excellent reference
for Flash commands and classes.

Some of the ActionScript in that one is a bit dated--a lot is based on AS 1.
I'd skim over the code examples, because AS 2 is a very different model.
Basically, you can write OOP in AS 1, with some difficulty, while AS 2 is
OOP-oriented.

The second book has excellent coverage of OOP and its AS 2 implementation.

Start with those two, and you really can't go wrong. There are a lot of
other good books, but I consider those the cream of the crop.

Cordially,

Kerry Thompson


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Roy Pardi
At 8:19 PM -0400 8/19/07, Mike Reilly wrote:
Hi there -

I'm a high school teacher who's decided to teach Intro to
Programming using Actionscript (2.0 for now, waiting for the school
to upgrade).

I'd prefer to take an OO approach, and use games in doing so.  For
example, my first game would be a Pong copy.  Lots of basics in there
to learn the environment, basic principles, etc.

Hi Mike,

I'm teaching an AS 2 class for non-programmers at Northeastern this Summer
(they haven't upgraded yet either). I use Pong as a basic example (and then
beat it to death.. ;-) Not true OOP with this group but I introduce the
ideas. The class site is here: http://roypardi.com/neu_summer/ - maybe this
will give you some ideas of what to do (or not to do..).

--Roy
-- 
-
Studio Site Updated!
http://www.roypardi.com/


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Jobe Makar

Hi Mike,

I don't have exactly what you're looking for but hopefully it can help a 
bit. I am working on an AS3 version/rewrite of my game design demystified 
series of books. That won't be out for a long time, but you can lots of game 
related code from physics to AI on my blog. For the most part it is AS3, but 
there is some AS2 as well. Here is the link:

http://jobemakar.blogspot.com

I wish you luck in finding the right materials for your class!

Jobe Makar
http://www.electrotank.com
http://www.electro-server.com
phone: 252-627-8026
mobile: 919-609-0408
fax: 919-882-1121
- Original Message - 
From: Mike Reilly [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Sunday, August 19, 2007 8:19 PM
Subject: [Flashcoders] Intro to OOP using ActionScript



Hi there -

I'm a high school teacher who's decided to teach Intro to
Programming using Actionscript (2.0 for now, waiting for the school
to upgrade).

I'd prefer to take an OO approach, and use games in doing so.  For
example, my first game would be a Pong copy.  Lots of basics in there
to learn the environment, basic principles, etc.

So, I was wondering if anyone out there knew of good resources, wanted
to contribute (hell, I'll give you all the credit, you can write a
book, etc.), collaborate, share.  I've search most of the tutorial
sites, but most code is not a great OO example for Flash games due to
little OO, or too much complexity for the beginner.

Your input is welcome, rock on.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Mark Winterhalder
 I'm a high school teacher who's decided to teach Intro to
 Programming using Actionscript (2.0 for now, waiting for the school
 to upgrade).

You don't have to limit yourself to AS2 just because your school's
Flash version isn't CS3 yet.
If you plan to go the OOP route, and Pong specifically, there probably
won't be that much in terms of timeline animation anyway. You'll have
graphics for the paddles, the ball and the score. That'll pretty much
be it, the rest will be code. You don't need the Flash IDE for that.
I'd recommend you have a look at the Flex 2 SDK (or even haXe[.org]).

There are several reasons why I believe that it is an alternative you
should consider:
AS2 is on the way out, AS3 will stay. AS3's API is more consistent.
AS3 is compiled for the new (much faster) VM, which is a big advantage
for games. Finally, and this is the most important reason IMHO, the
Flex 2 SDK is free, so your students can (legally) install it at home.

Mark




On 8/20/07, Mike Reilly [EMAIL PROTECTED] wrote:
 Hi there -

 I'm a high school teacher who's decided to teach Intro to
 Programming using Actionscript (2.0 for now, waiting for the school
 to upgrade).

 I'd prefer to take an OO approach, and use games in doing so.  For
 example, my first game would be a Pong copy.  Lots of basics in there
 to learn the environment, basic principles, etc.

 So, I was wondering if anyone out there knew of good resources, wanted
 to contribute (hell, I'll give you all the credit, you can write a
 book, etc.), collaborate, share.  I've search most of the tutorial
 sites, but most code is not a great OO example for Flash games due to
 little OO, or too much complexity for the beginner.

 Your input is welcome, rock on.

 Mike
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread sean
Hi Mike,

   you've hit on an interesting dilema. Most Flash developers are to a
greater degree, self taught. This is both a blessing and a curse. The
skill level, and by extension, the development methodologies put in to
practice in the real world range from basic, timeline procedural, to
over engineered, pattern based pedantic dogma OO. I'd recommend
pragmatism. There are a number of excellent books on Actionscript and
OO methodologies and actionscript and patterns. Given the nature of
Flash, the need to enforce strict pattern based solutions is limited
but the need to enforce good OO best practices and code is essential. I
personally can't say I have ever come across a holy grail actionscript
OO site, but there are many good blogs out there that cover the info
you will need (there just a bit scattered). The best advise I can give
you is to google what you're looking for - like the rest of us ;) lol

But if you want to try blogs, then here's a couple of reliable ones:

Grant Skinner - http://www.gskinner.com/blog/
Colin Moock   - http://www.moock.org/
Keith Peters  - http://www.bit-101.com/blog/
Aral Balkan   - http://aralbalkan.com/
Guy Watson- http://www.flashguru.co.uk/
Richard Leggett   - http://www.richardleggett.co.uk/blog/index.php


There are many many others, but that should keep you going for a while.
Incidentally, if you're interested in teaching actionscript in a games
environment, you could do worse than have a look at the Nintendo Wii's
flash support. It's pretty easy and well documented on line in many sites.
It'd certainly make it popular and topical for the class and give you an
excuse to get a Wii in.

Sean
www.flashcoder.net/blog

 Hi there -

 I'm a high school teacher who's decided to teach Intro to
 Programming using Actionscript (2.0 for now, waiting for the school
 to upgrade).

 I'd prefer to take an OO approach, and use games in doing so.  For
 example, my first game would be a Pong copy.  Lots of basics in there
 to learn the environment, basic principles, etc.

 So, I was wondering if anyone out there knew of good resources, wanted
 to contribute (hell, I'll give you all the credit, you can write a
 book, etc.), collaborate, share.  I've search most of the tutorial
 sites, but most code is not a great OO example for Flash games due to
 little OO, or too much complexity for the beginner.

 Your input is welcome, rock on.

 Mike
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Mark Winterhalder
On 8/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 But if you want to try blogs, then here's a couple of reliable ones:

 Grant Skinner - http://www.gskinner.com/blog/
 Colin Moock   - http://www.moock.org/
 Keith Peters  - http://www.bit-101.com/blog/
 Aral Balkan   - http://aralbalkan.com/
 Guy Watson- http://www.flashguru.co.uk/
 Richard Leggett   - http://www.richardleggett.co.uk/blog/index.php

Yeah, right -- that's what his post was about in the first place. :)

Adding to the list, I came across this the other day -- well
explained, plus some really pretty interactive examples:
http://lab.polygonal.de/category/data-structures/

Mark
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Mike Reilly
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 Comp Sci if they choose.

I used to be the Co-Director of TechBoston up there in Boston, wish I
were closer. I'm in Georgia now.

If you're interested in doing more of an OO spin, let me know and I'll
keep you in the loop.

Thanks!

Mike

On 8/19/07, Roy Pardi [EMAIL PROTECTED] wrote:
 At 8:19 PM -0400 8/19/07, Mike Reilly wrote:
 Hi there -
 
 I'm a high school teacher who's decided to teach Intro to
 Programming using Actionscript (2.0 for now, waiting for the school
 to upgrade).
 
 I'd prefer to take an OO approach, and use games in doing so.  For
 example, my first game would be a Pong copy.  Lots of basics in there
 to learn the environment, basic principles, etc.

 Hi Mike,

 I'm teaching an AS 2 class for non-programmers at Northeastern this Summer
 (they haven't upgraded yet either). I use Pong as a basic example (and then
 beat it to death.. ;-) Not true OOP with this group but I introduce the
 ideas. The class site is here: http://roypardi.com/neu_summer/ - maybe this
 will give you some ideas of what to do (or not to do..).

 --Roy
 --
 -
 Studio Site Updated!
 http://www.roypardi.com/


 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Brian Lesser

Hi Mike,
I do a University course for New Media students that might be of 
interest. You can still see the old AS2 notes here:


https://my.ryerson.ca/bbcswebdav/users/blesser/Flash/FPN537/

The current site is all AS2 but I am in the midst of rewriting it to AS3 
for the fall. If you think it is useful I'll leave the old AS2 site in 
place for a while. Feel free to grab anything that you think might help.


Yours truly,
-Brian

Mike Reilly wrote:


Hi there -

I'm a high school teacher who's decided to teach Intro to
Programming using Actionscript (2.0 for now, waiting for the school
to upgrade).

I'd prefer to take an OO approach, and use games in doing so.  For
example, my first game would be a Pong copy.  Lots of basics in there
to learn the environment, basic principles, etc.

So, I was wondering if anyone out there knew of good resources, wanted
to contribute (hell, I'll give you all the credit, you can write a
book, etc.), collaborate, share.  I've search most of the tutorial
sites, but most code is not a great OO example for Flash games due to
little OO, or too much complexity for the beginner.

Your input is welcome, rock on.

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
 




--
__
Brian Lesser
Assistant Director, Application Development and Integration
Computing and Communications Services
Ryerson University
350 Victoria St.
Toronto, Ontario   Phone: (416) 979-5000 ext. 6835
M5B 2K3Fax: (416) 979-5220
Office: POD??  E-mail: [EMAIL PROTECTED]
(Enter through LB99)   Web: http://www.ryerson.ca/~blesser
__

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Mike Reilly
Thanks so much to all of you for such quick responses.  I'm sure my
students will benefit from many of the links that you've already sent.

Since I'm not the best at clarity when writing, I'll throw out what
started this thinking.  I read Andy Harris' Beginning Flash Game
Programming For Dummies, and I think the level of that book was
awesome for intro.  I have also been using Greenfoot.org as a
supplement to teach Java, as kids love games whether it's intro or
more advanced (remember, these are 14-17 year olds, and we're trying
to generate an interest in programming).

So this semester I'll be trying to develop an OO approach, using
Actionscript (can't install anything else without formal district
approval).  Some of the resources forwarded should be very helpful,
and I truly appreciate all support.

I'll be reading Moock's Essential ActionScript 2.0, combining it
with Harris' Dummies, to create Essential Games for Dummies!

On a serious note, how do you get an enter_frame event handler to
work inside an AS file?

Thanks again, I won't bother you all much more.  Please take a look at
last year's kids work:  www.nghsit.com/studyhall

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Ron Wheeler

You might also want to look at Sandy.
It is a 3D engine for Actionscript.
Very easy to build 3D applications that might be fun for the kids.

Check out Script_in_Action forum for resources and links.


Mike Reilly wrote:

Thanks so much to all of you for such quick responses.  I'm sure my
students will benefit from many of the links that you've already sent.

Since I'm not the best at clarity when writing, I'll throw out what
started this thinking.  I read Andy Harris' Beginning Flash Game
Programming For Dummies, and I think the level of that book was
awesome for intro.  I have also been using Greenfoot.org as a
supplement to teach Java, as kids love games whether it's intro or
more advanced (remember, these are 14-17 year olds, and we're trying
to generate an interest in programming).

So this semester I'll be trying to develop an OO approach, using
Actionscript (can't install anything else without formal district
approval).  Some of the resources forwarded should be very helpful,
and I truly appreciate all support.

I'll be reading Moock's Essential ActionScript 2.0, combining it
with Harris' Dummies, to create Essential Games for Dummies!

On a serious note, how do you get an enter_frame event handler to
work inside an AS file?
  

It works but you shouldn't use it . Look at using intervals.
Try not to teach bad programming practices to kids at that age.

You might also want to read Heads Up Design Patterns just to find out 
the right way to do many things. It is oriented to Java but all 
relevant to ActionScript.


Ron

Thanks again, I won't bother you all much more.  Please take a look at
last year's kids work:  www.nghsit.com/studyhall

Mike
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread Ron Wheeler



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 Comp Sci if they choose.

I used to be the Co-Director of TechBoston up there in Boston, wish I
were closer. I'm in Georgia now.

If you're interested in doing more of an OO spin, let me know and I'll
keep you in the loop.

  
There is no reason not to follow OOP principles to the hilt. You have 
all of the essential structures in ActionScript.
You might also try to explain MVC and show how this helps simplify 
programming.
MVC and OOP will give your students a really good way to get a lot done 
with a little bit of code.


Some of the Heads Up Design Patterns examples are fun and designed to 
appeal to the 14 year old in all of us. (How does your duck quack? What 
if it is a rubber duck?)


Ron


Thanks!

Mike

On 8/19/07, Roy Pardi [EMAIL PROTECTED] wrote:
  

At 8:19 PM -0400 8/19/07, Mike Reilly wrote:


Hi there -

I'm a high school teacher who's decided to teach Intro to
Programming using Actionscript (2.0 for now, waiting for the school
to upgrade).

I'd prefer to take an OO approach, and use games in doing so.  For
example, my first game would be a Pong copy.  Lots of basics in there
to learn the environment, basic principles, etc.
  

Hi Mike,

I'm teaching an AS 2 class for non-programmers at Northeastern this Summer
(they haven't upgraded yet either). I use Pong as a basic example (and then
beat it to death.. ;-) Not true OOP with this group but I introduce the
ideas. The class site is here: http://roypardi.com/neu_summer/ - maybe this
will give you some ideas of what to do (or not to do..).

--Roy
--
-
Studio Site Updated!
http://www.roypardi.com/


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


  

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Intro to OOP using ActionScript

2007-08-19 Thread T. Michael Keesey
On 8/19/07, Ron Wheeler [EMAIL PROTECTED] wrote:

 Some of the Heads Up Design Patterns examples are fun and designed to
 appeal to the 14 year old in all of us. (How does your duck quack? What
 if it is a rubber duck?)

14-year-old or 4-year-old?

-- 
Mike Keesey
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com