Re: [Flashcoders] Newbie AS3 question

2005-11-01 Thread Spike
gt; } > } > > class UKCurrencyFormatter extends CurrencyFormatter { > > public formatValue(val:Number) { > // very simplistic formatting > return "£" + String(val); > } > } > > } > > Let me know if that explains it a bit better. > > Sp

Re: [Flashcoders] Newbie AS3 question

2005-11-01 Thread Spike
explains it a bit better. > > Spike > > > On 10/29/05, JesterXL <[EMAIL PROTECTED]> wrote: > > > > Can you elaborate? Why wouldn't the static class work in that case? > > > > - Original Message - > > From: "Spike" <[EMAIL PROT

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Jon Bradley
Ok. Since I was the 'ass' that started this junk by asking why "this" was needed, maybe I can be the 'ass' that will end it. This thread started with Andreas asking about addChild. Fair enough. I asked about a specific example that used "this" on a method which was a member of the same class

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Morten Barklund Shockwaved
Andreas Rønning wrote: [snip] *Yawn* here we go again, another new guy trying to understand this OBVIOUS concept that we've been through so many times already. I can't believe he's bothering us with this again! [snip] Sorry, I was in a bad mood due to other circumstances, had just explain

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Ian Thomas
On 10/31/05, Morten Barklund Shockwaved <[EMAIL PROTECTED]> wrote: > > > It is amazing how we can turn back to this first-grade example of > understanding scoping in ActionScript almost daily. True - but this highlights a flaw in the language rather than a flaw in the questioner... if the same no

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Andreas Rønning
Morten Barklund Shockwaved wrote: Andreas Rønning wrote: class ParseXML{private var xmlDoc:XML;private function handleXML(){trace(this);}function ParseXML(url:String){xmlDoc = new XML(); xmlDoc.ignoreWhite = true;xmlDoc.onLoad = handleXML;

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Cedric Muller
I am not smarter than you, oh no! Delegate's smarter than us, and AS3 is King!! (problem solved in the future) I am simply declaring a variable in the class which refers to the class itself. This frees me from the scope trap (using this with 'onLoad') : public function handleXML () {

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Morten Barklund Shockwaved
Andreas Rønning wrote: class ParseXML{ private var xmlDoc:XML; private function handleXML(){ trace(this); } function ParseXML(url:String){ xmlDoc = new XML(); xmlDoc.ignoreWhite = true; xmlDoc.onLoad = handleXML; xmlDoc.load(url); } }

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Robert Tweed
Andreas Rønning wrote: 2. What the hell is going on with "this" here class ParseXML{ private var xmlDoc:XML; private function handleXML(){ trace(this); } function ParseXML(url:String){ xmlDoc = new XML(); xmlDoc.ignoreWhite = true; xmlDoc.onLoad = handleXM

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Andreas Rønning
Why? haha, sorry, but to me it looks like you just added var owner = this just to avoid putting trace(this) for no reason other than avoiding to use "this". What's the specific reason you did that? I'm guessing you're smarter than me :) - Andreas Cedric Muller wrote: this is logical: you

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Cedric Muller
this is logical: you assign handleXML function to 'xmlDoc.onLoad' handler which means that 'handleXML' belongs to xmlDoc from now on ... In such cases, I do the following: class ParseXML{ private var xmlDoc:XML; private function handleXML(){ trace(owner); } function Pars

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Ian Thomas
On 10/31/05, Andreas Rønning <[EMAIL PROTECTED]> wrote: > > > 2. What the hell is going on with "this" here > > class ParseXML{ > private var xmlDoc:XML; > private function handleXML(){ > trace(this); > } > function ParseXML(url:String){ > xmlDoc = new XML(); > xmlDoc.ignoreWhite = true; > xmlDoc.o

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Andreas Rønning
ryanm wrote: I cannot decompile to test my sayings, but 'this' adds more bytecode to the file ?? No, if you leave it off, it is added at compile time. Like I said, you can't call methods that aren't members of an object; all functions must be members of some object. AS1/2 allows you to *p

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Ian Thomas
*grin* As a reformed Director user - my point exactly. On 10/31/05, Robert Tweed <[EMAIL PROTECTED]> wrote: > > Ian Thomas wrote: > > Unless someone has coded a very odd compiler*, ... > > *But then, it _is_ Macromedia. You never know. ;-) > > Yes, it _is_ Macromedia :-) For a "very odd compiler",

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Robert Tweed
Ian Thomas wrote: > Unless someone has coded a very odd compiler*, ... > *But then, it _is_ Macromedia. You never know. ;-) Yes, it _is_ Macromedia :-) For a "very odd compiler", look no further than Lingo. - Robert ___ Flashcoders mailing list Flash

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Cedric Muller
correction/confirmation: 'this' keyword is added everywhere it is needed during compile time. Cedric Muller wrote: in the end, using 'this' or leaving it does make a difference, doesn't it ? I cannot decompile to test my sayings, but 'this' adds more bytecode to the file ?? I'm pretty sure i

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Cedric Muller
so, people not using 'this' assume something not really achievable in terms of 'technology' ? ;) I cannot decompile to test my sayings, but 'this' adds more bytecode to the file ?? No, if you leave it off, it is added at compile time. Like I said, you can't call methods that aren't member

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Ian Thomas
Unless someone has coded a very odd compiler*, for most compilers of most languages including 'this' won't make any difference to the compiled bytecode. Ian *But then, it _is_ Macromedia. You never know. ;-) On 10/31/05, Cedric Muller <[EMAIL PROTECTED]> wrote: > > in the end, using 'this' or le

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread Robert Tweed
Cedric Muller wrote: in the end, using 'this' or leaving it does make a difference, doesn't it ? I cannot decompile to test my sayings, but 'this' adds more bytecode to the file ?? I'm pretty sure it's just compiled into the same bytecode either way. There are a number of ways to test that, a

Re: [Flashcoders] Newbie AS3 question

2005-10-31 Thread ryanm
I cannot decompile to test my sayings, but 'this' adds more bytecode to the file ?? No, if you leave it off, it is added at compile time. Like I said, you can't call methods that aren't members of an object; all functions must be members of some object. AS1/2 allows you to *pretend* like yo

Re: [Flashcoders] Newbie AS3 question

2005-10-30 Thread Cedric Muller
rom: "Muzak" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 28, 2005 5:37 PM Subject: Re: [Flashcoders] Newbie AS3 question Well, to me it's the other way around. Code that doesn't use proper references looks messy to me. Whe I'm

Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread ryanm
Still weirding me out. To me part of the appeal of working with movieclips is their inherent hierarchy, which makes a kind of basic sense that's easy to grasp. To a Flash developer who understands Flash and has been working with it for a long time, that's true. To anyone coming from another

Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread ryanm
The thought of changing multiple lines of code to go from static to non would really suck; that drives the point home for me. Thanks for taking the time to explain it Spike! That's that whole maintainability thing, which, in commercial software, is usually just as or even more important th

RE: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Frédéric v . Bochmann
nt: October 29, 2005 1:35 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie AS3 question Had I been formerly trained in programming, I'm sure I would of known what a Singleton was years ago, and called it such before AS1 was called AS1. However, since I had to learn h

Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread JesterXL
es so fast, thats why. - Original Message - From: "Frédéric v. Bochmann" <[EMAIL PROTECTED]> To: "'Flashcoders mailing list'" Sent: Saturday, October 29, 2005 1:18 PM Subject: RE: [Flashcoders] Newbie AS3 question True, nobody called that a Singleton

RE: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Frédéric v . Bochmann
Woah, I never noticed you can private your constructor!! Lol -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Muzak Sent: October 29, 2005 1:15 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie AS3 question Well, actually there is a

RE: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Frédéric v . Bochmann
ge- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: October 29, 2005 12:48 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie AS3 question I didn't know what a Singleton was until AS2 was well underway. - Original Message - From: "

Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Muzak
- Original Message - From: "Frédéric v. Bochmann" <[EMAIL PROTECTED]> To: "'Flashcoders mailing list'" Sent: Saturday, October 29, 2005 6:32 PM Subject: RE: [Flashcoders] Newbie AS3 question > (*Just looking back at the title of this Thread*) > &g

RE: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Frédéric v . Bochmann
ge- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: October 29, 2005 12:48 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie AS3 question I didn't know what a Singleton was until AS2 was well underway. - Original Message - From: "

Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Weyert de Boer
JesterXL wrote: I didn't know what a Singleton was until AS2 was well underway. I didn't know that it was called a Singleton until Moocks book :) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/li

Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread JesterXL
I didn't know what a Singleton was until AS2 was well underway. - Original Message - From: "Frédéric v. Bochmann" <[EMAIL PROTECTED]> To: "'Flashcoders mailing list'" Sent: Saturday, October 29, 2005 12:32 PM Subject: RE: [Flashcoders] Newbie

RE: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Frédéric v . Bochmann
12:25 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie AS3 question You're welcome! This has been an interesting thread and I've learned a bit more about ActionScript in the process :-) Spike On 10/29/05, JesterXL <[EMAIL PROTECTED]> wrote: > > That makes

RE: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Frédéric v . Bochmann
PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie AS3 question That makes perfect sense and is a good reason. So, from this 2nd conversation, I've gleaned something else to add to the list: - getInstance() is a unspoken standard that implies the class is a Singleton use

Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Spike
point home for me. Thanks for taking > the > time to explain it Spike! > > - Original Message - > From: "Spike" <[EMAIL PROTECTED]> > To: "Flashcoders mailing list" > Sent: Saturday, October 29, 2005 12:05 PM > Subject: Re: [Flashcoders] Newbie AS3 questi

Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread JesterXL
suck; that drives the point home for me. Thanks for taking the time to explain it Spike! - Original Message - From: "Spike" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Saturday, October 29, 2005 12:05 PM Subject: Re: [Flashcoders] Newbie AS3 ques

Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Spike
It's not necessarily any better from an implementation point of view. You can often do the same thing with a static class as you can with a singleton. The big benefit comes if you need to change from singleton/static to different instances for each invocation. If you have followed the static clas

Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread JesterXL
s, and how this applys to the Singleton pattern. - Original Message - From: "Martin Wood" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Saturday, October 29, 2005 11:02 AM Subject: Re: [Flashcoders] Newbie AS3 question but using Composition and

Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread Martin Wood
Saturday, October 29, 2005 10:19 AM Subject: Re: [Flashcoders] Newbie AS3 question It does a little. Why can't can't you just extend the base CurrencyFormatter class and do the same thing for the formatValue function? Rather than return the correct one for getInstance(), just utilize

Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread JesterXL
s mailing list" Sent: Saturday, October 29, 2005 10:19 AM Subject: Re: [Flashcoders] Newbie AS3 question It does a little. Why can't can't you just extend the base CurrencyFormatter class and do the same thing for the formatValue function? Rather than return the correct one for getIns

Re: [Flashcoders] Newbie AS3 question

2005-10-29 Thread JesterXL
.getFormat(); and: var val = USCurrencyFormatter.getFormat(); ? - Original Message - From: "Spike" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 28, 2005 10:31 PM Subject: Re: [Flashcoders] Newbie AS3 question Sure, Here's a

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Spike
Why wouldn't the static class work in that case? > > - Original Message - > From: "Spike" <[EMAIL PROTECTED]> > To: "Flashcoders mailing list" > Sent: Friday, October 28, 2005 9:54 PM > Subject: Re: [Flashcoders] Newbie AS3 question > > > ok, >

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread JesterXL
Can you elaborate? Why wouldn't the static class work in that case? - Original Message - From: "Spike" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 28, 2005 9:54 PM Subject: Re: [Flashcoders] Newbie AS3 question ok, That

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Spike
> public static function getData() > { > // Simple function that gets something from the server. > } > } > > Then to use: > > ServerConnection.connect(myURL, myPort); > > - Original Message - > From: "JesterXL" <[EMAIL PROTECTED]> > To: &

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread JesterXL
Sent: Friday, October 28, 2005 9:25 PM Subject: Re: [Flashcoders] Newbie AS3 question Naw, I don't know the exact way Singleton is implemented, hence my long battle with finding clarification. It could of been solved in 10 seconds over a beer, but email sux. I figured Math.abs was the Sing

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread JesterXL
d before making a method call, else throw an exception. Are they both the Singleton pattern? Does it matter? - Original Message - From: "Spike" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 28, 2005 7:14 PM Subject: Re: [Flashcode

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Weyert de Boer
I always understood that the richtext support of Flash sucks, but I suppose to be mistaken? I always hear people complaining about images etc. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/f

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Spike
.visible = !this.visible; > > } > > } > > > > To each their own. I can see it justified in extending intrinsic > classes, > > as the first parameter to setInterval, and the first parameter in > > Delegate. > > > > AS3 and Flex both hammer the point that

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread JesterXL
October 28, 2005 7:07 PM Subject: Re: [Flashcoders] Newbie AS3 question Can't we use DisplayList to make our own richtext editor in Flash? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Weyert de Boer
Can't we use DisplayList to make our own richtext editor in Flash? ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Frédéric v . Bochmann
y. Anyone know? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL Sent: October 28, 2005 6:58 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie AS3 question Close; the MovieClip IS instantiated, just not drawn. I think Ryan said it be

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread JesterXL
ssage - From: "JesterXL" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 28, 2005 6:58 PM Subject: Re: [Flashcoders] Newbie AS3 question Close; the MovieClip IS instantiated, just not drawn. I think Ryan said it best earlier when

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread JesterXL
Bedar" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 28, 2005 6:40 PM Subject: Re: [Flashcoders] Newbie AS3 question ok, so if in AS 3.0 i make an array of "new MovieClip()" objects, i can choose to only keep one actually instantiated by

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread JesterXL
eally has little use other > than confirming for those programmers who are not familiar with > ActionScript. Same goes for the Singleton.method vs. > Singleton.getInstance().method argument; the latter is for those > programmers > who don't know ActionScript well. > > If you

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Michael Bedar
-Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: Friday, October 28, 2005 1:08 PM To: Flashcoders mailing list Subject: [Flashcoders] Newbie AS3 question AS3 noob question ahoy! I'm reading the AS3 reference trying to get accusto

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread JesterXL
From: "Derek Vadneau" <[EMAIL PROTECTED]> To: Sent: Friday, October 28, 2005 5:58 PM Subject: Re: [Flashcoders] Newbie AS3 question The keyword "this" makes sense to me. I use it for instance variables. I guess at the end of the day, though, as long as you'r

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Spike
goes for the Singleton.method vs. > Singleton.getInstance().method argument; the latter is for those > programmers > who don't know ActionScript well. > > If you do it every day, there is no point. > > - Original Message - > From: "Muzak" <[EMAIL PROTE

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread JesterXL
x27;t know ActionScript well. If you do it every day, there is no point. - Original Message - From: "Muzak" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 28, 2005 5:37 PM Subject: Re: [Flashcoders] Newbie AS3 question Well, to me

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Derek Vadneau
The keyword "this" makes sense to me. I use it for instance variables. I guess at the end of the day, though, as long as you're consistent anyone can pick up your code. For MovieClip and addChild, is this similar to the way we use XML in AS2? As in, you use createElement, then appendChild? I

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Andreas Rønning
n a hurry, I do skip them, but I usually find myself adding them afterwards anyway. So, I'm with ryanm on this one ;-) regards, Muzak - Original Message - From: "Martin Wood" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 28,

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Andreas Rønning
om: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shaw, Matt Sent: October 28, 2005 1:55 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Newbie AS3 question Assuming the Game class is your root/stage class: Public class Game extends MovieClip { public function Game

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Muzak
- From: "Martin Wood" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 28, 2005 11:03 PM Subject: Re: [Flashcoders] Newbie AS3 question > > > ryanm wrote: >>> What I don't get is why it needs "this.addChild"

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread ryanm
This example makes me wonder: If I was to write this in AS2, it would probably look like: Think of it like this: "createEmptyMovieClip" is functionally equivilent to "new MovieClip" PLUS "addChild". The benefit of seperating them is that you can add things to and remove things from the disp

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Martin Wood
ryanm wrote: What I don't get is why it needs "this.addChild" instead of just addChild. I've been sick of the keyword "this" for a long time and have since avoided it in AS2. Any reason that it needs to be back in for AS3? Maybe because it's one of the most useful scope references ever

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread ryanm
What I don't get is why it needs "this.addChild" instead of just addChild. I've been sick of the keyword "this" for a long time and have since avoided it in AS2. Any reason that it needs to be back in for AS3? Maybe because it's one of the most useful scope references ever invented? T

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread ryanm
I'd be more inclined to say it's awesome! I have to agree, I'm just dissapointed that it doesn't work like that in Flash 8. ryanm ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flash

RE: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Frédéric v . Bochmann
riginal Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shaw, Matt Sent: October 28, 2005 1:55 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] Newbie AS3 question Assuming the Game class is your root/stage class: Public class Game extends MovieCl

RE: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Geoffrey Williams
You don't need to use the 'this' keyword. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bradley Sent: Friday, October 28, 2005 2:54 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie AS3 question On Oct 28, 2005, a

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread JesterXL
"Flashcoders mailing list" Sent: Friday, October 28, 2005 2:53 PM Subject: Re: [Flashcoders] Newbie AS3 question On Oct 28, 2005, at 1:55 PM, Shaw, Matt wrote: > Assuming the Game class is your root/stage class: > > > Public class Game extends MovieClip { > public fu

RE: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Shaw, Matt
Friday, October 28, 2005 2:54 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] Newbie AS3 question On Oct 28, 2005, at 1:55 PM, Shaw, Matt wrote: > Assuming the Game class is your root/stage class: > > > Public class Game extends MovieClip { > public function Game(){ &

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Jon Bradley
On Oct 28, 2005, at 1:55 PM, Shaw, Matt wrote: Assuming the Game class is your root/stage class: Public class Game extends MovieClip { public function Game(){ var gameworld:MovieClip = new MovieClip(); //new GameWorld()? this.addChild( gameworld ); var game_bg:Movi

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Spike
; > > var game_bg:MovieClip = new MovieClip(); > > gameworld.addChild( game_bg ); > >} > > > > > > > >-Original Message- > >From: [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] On Behalf Of Andreas Rønning > >Sent: Friday, October 28, 2005 1:08 PM

Re: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Andreas Rønning
(); gameworld.addChild( game_bg ); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: Friday, October 28, 2005 1:08 PM To: Flashcoders mailing list Subject: [Flashcoders] Newbie AS3 question AS3 noob question ahoy! I'm readin

RE: [Flashcoders] Newbie AS3 question

2005-10-28 Thread Shaw, Matt
(); gameworld.addChild( game_bg ); } -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Rønning Sent: Friday, October 28, 2005 1:08 PM To: Flashcoders mailing list Subject: [Flashcoders] Newbie AS3 question AS3 noob question ahoy! I'm reading the AS3 reference t

[Flashcoders] Newbie AS3 question

2005-10-28 Thread Andreas Rønning
AS3 noob question ahoy! I'm reading the AS3 reference trying to get accustomed to the idea, but some things (though they look better) i don't really get right away :) Hence my feeling of incredible stupidity. I realise the AS3 in the reference is Flex-related, but in Flash IDE terms, how woul