Re: [Flashcoders] How to remove bytes from the beginning of a ByteArray?
In my desperation I've asked the same question in a german and a russian forum last night. And where do I find the useful replies in the morning? This mailing list is priceles :-) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeChild Question
On Tue, Feb 23, 2010 at 2:14 PM, Henrik Andersson he...@henke37.cjb.netwrote: Susan Day wrote: Hi; How do I determine what the parent object is of a child I have added and want to remove? Usually, there is only one possible candidate and you know what that one is ahead of time. But there is an embarrassingly simple way: the parent property. Ok, I'm embarrassed, but the following doesn't work: addChild(my_obj); trace(my_obj(parent)); Please advise. TIA, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeChild Question
Susan Day wrote: Ok, I'm embarrassed, but the following doesn't work: addChild(my_obj); trace(my_obj(parent)); Ok, sounds like you need to learn what a property is. I will leave it up to other people to explain such a fundamental thing. Your error is treating my_obj as a Function. It clearly is not a Function. So the second line is just garbage logic wise. Your syntax is simply way bellow the minimum requirements for this task. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Flash Lite for Verizon
Hi Everyone, I'm sorry if there is a better forum for this type of question, but there are a lot of experienced people here so maybe someone can help. I was told that the last Flash Lite app Verizon accepted for their get it now store was 2 years ago. Is this true? Anyone here developing smart phone apps for anything other than Apple? Anyone using Flash Lite at all? Any comments would be much appreciated. There seems to be a lot of conflicting info out there. Thanks! Kurt ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Using parent Sprites coordinates
Thanks - I will look into it... From: flashcoders-boun...@chattyfig.figleaf.com [flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Henrik Andersson [he...@henke37.cjb.net] Sent: Tuesday, February 23, 2010 4:03 PM To: Flash Coders List Subject: Re: [Flashcoders] Using parent Sprites coordinates Lehr, Theodore wrote: Is there a way to have a child sprite reference the parent sprite when seeting it's x and y say I have a Sprite: You must have missed localToGlobal and globalToLocal. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeChild Question
Well, You could at least give a hint as to what _does_ work: trace(my_obj.parent); HTH, Willem On 24-feb-2010, at 13:28, Henrik Andersson wrote: Susan Day wrote: Ok, I'm embarrassed, but the following doesn't work: addChild(my_obj); trace(my_obj(parent)); Ok, sounds like you need to learn what a property is. I will leave it up to other people to explain such a fundamental thing. Your error is treating my_obj as a Function. It clearly is not a Function. So the second line is just garbage logic wise. Your syntax is simply way bellow the minimum requirements for this task. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeChild Question
On Wed, Feb 24, 2010 at 8:28 AM, Henrik Andersson he...@henke37.cjb.netwrote: Susan Day wrote: Ok, I'm embarrassed, but the following doesn't work: addChild(my_obj); trace(my_obj(parent)); Ok, sounds like you need to learn what a property is. I will leave it up to other people to explain such a fundamental thing. Your error is treating my_obj as a Function. It clearly is not a Function. So the second line is just garbage logic wise. Your syntax is simply way bellow the minimum requirements for this task. Yes, I knew that when I wrote my last email. Can you at least point me in the right direction? There is nothing in your response that indicates what I should research, other than property and function, which I feel is way too general. TIA, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeChild Question
Susan, Coming from a non-coders background I learned a lot from Colin Moocks books. Essential ActionScript 3 and Actionscript for Flash MX. (the last one is AS2 but very readable if you want an understanding of concepts like variables, properties, methods, functions, arrays etc.) Also Actionscript 3.0 cookbook is very handy. Al books are published by O'Reilly. Feel free to ask for directions on lists like these though. I learned a lot here and don't mind sharing. Willem van den Goorbergh On 24-feb-2010, at 14:48, Susan Day wrote: On Wed, Feb 24, 2010 at 8:28 AM, Henrik Andersson he...@henke37.cjb.netwrote: Susan Day wrote: Ok, I'm embarrassed, but the following doesn't work: addChild(my_obj); trace(my_obj(parent)); Ok, sounds like you need to learn what a property is. I will leave it up to other people to explain such a fundamental thing. Your error is treating my_obj as a Function. It clearly is not a Function. So the second line is just garbage logic wise. Your syntax is simply way bellow the minimum requirements for this task. Yes, I knew that when I wrote my last email. Can you at least point me in the right direction? There is nothing in your response that indicates what I should research, other than property and function, which I feel is way too general. TIA, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error 1009
On Tue, Feb 23, 2010 at 11:02 PM, Deepanjan Das deepanjan@gmail.comwrote: Hey, I have not seen your debugger error. So how do I debug? I downloaded what I thought was the debugger and it was just another copy of Flash! but I feel its the stage that is getting null value. Please trace stage to find out. I traced stage from the preloader where I call the main script and it traced out Object stage. TIA, Victor ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error 1009
Hi Victor, Did u trace within Preloader Class? DD On Wed, Feb 24, 2010 at 7:48 PM, Victor Subervi victorsube...@gmail.comwrote: On Tue, Feb 23, 2010 at 11:02 PM, Deepanjan Das deepanjan@gmail.comwrote: Hey, I have not seen your debugger error. So how do I debug? I downloaded what I thought was the debugger and it was just another copy of Flash! but I feel its the stage that is getting null value. Please trace stage to find out. I traced stage from the preloader where I call the main script and it traced out Object stage. TIA, Victor -- Warm Regards Deepanjan Das M: +91 9836582808 Think of the environment before printing this email ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeChild Question
On Wed, Feb 24, 2010 at 9:44 AM, Geografiek geograf...@geografiek.nlwrote: Well, You could at least give a hint as to what _does_ work: trace(my_obj.parent); Thanks. That traced out the name of the class/*.as file, but when I put that value in, as in: MyClass.removeChild(my_obj); it throws an error (1061). What do? With respect to Moock, yeah, got it, and it's the only reason I still haven't pulled out all the hair in my head. Maybe get the cookbook too. TIA, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error 1009
On Wed, Feb 24, 2010 at 10:22 AM, Deepanjan Das deepanjan@gmail.comwrote: Hi Victor, Did u trace within Preloader Class? yes. V ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error 1009
Are you getting this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at Preloader/init() at Preloader() at test_fla::MainTimeline/frame1() DD On Wed, Feb 24, 2010 at 7:59 PM, Victor Subervi victorsube...@gmail.comwrote: On Wed, Feb 24, 2010 at 10:22 AM, Deepanjan Das deepanjan@gmail.comwrote: Hi Victor, Did u trace within Preloader Class? yes. V -- Warm Regards Deepanjan Das M: +91 9836582808 Think of the environment before printing this email ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Flash Lite for Verizon
Kurt, see below. Contact me for further info. There is way too much history and news to put into one, short, email. :) Kurt Dommermuth wrote: Hi Everyone, I'm sorry if there is a better forum for this type of question, but there are a lot of experienced people here so maybe someone can help. I was told that the last Flash Lite app Verizon accepted for their get it now store was 2 years ago. Is this true? I haven't heard of anyone in Flash community trying to get content on there in at least 2 years. Anyone here developing smart phone apps for anything other than Apple? Yes. Anyone using Flash Lite at all? Yes. Any comments would be much appreciated. There seems to be a lot of conflicting info out there. Right on. :) Thanks! Kurt ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Scott Janousek (sj) Speaker, Educator, Mobile Developer, Gadget Geek, CEO mobile: 617.840.4427 work: 617.276.2315 skype:scottajanousek twitter: scottjanousek linkedin: http://www.linkedin.com/in/scottjanousek qik.com http://www.qik.com/scottjanousek chumby: scottjanousek (Note: You must send me your username via email) site: http://www.scottjanousek.com mobi: http://scottjanousek.mobi blog: http://www.scottjanousek.com/blog flashlog: http://flashmobile.scottjanousek.com/ Forum Nokia Champion http://blogs.forum.nokia.com/blog/scott-janouseks-forum-nokia-blog/ Adobe Flash Lite 1.1/2.x/3.x Certified Training Instructor Qualcomm Authorized BREW Developer Co-Manager, Boston Adobe Mobile Devices User Group (BAMaDUG) http://www.flashmobilegroup.org Adobe Community Expert - Mobile Devices Member of the Adobe MaD Learning Resources Advisory Group Coauthor, Foundation Flash Applications for Mobile Devices, Friends of Ed (Apress), ISBN: 1590595580 http://www.flashmobilebook.com Coauthor, AdvancED Flash on Devices: Mobile Development with Flash Lite and Flash 10, Friends of Ed (APress), ISBN: 1430219041 http://advancED.flashmobilebook.com Frame 27: Flash Mobile Game Reviews http://frame27.blogspot.com Share your Flash Lite presentations http://www.slideshare.net/group/flash-lite-presentations Flash Lite Community World Map http://www.frappr.com/?a=showmap2mapid=2701599 Mobile Development Jobs http://www.mobiledevjobs.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Error 1009
Your code references the stage (to position your textfield) so you need to listen for the ADDED_TO_STAGE event to prevent the null reference. Example: package{ import flash.events.Event; import flash.display.MovieClip; public class Preloader extends MovieClip{ public function Preloader(){ addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true); } private function init(e:Event){ removeEventListener(Event.ADDED_TO_STAGE, init); // do stuff } } } HTH Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeChild Question
I don't think a class can have children, only instances of classes can. (skating on thin ice now ;-)) Also I don't know by heart all the error codes. So please, if you refer to an error code give the full text. I bet your trace resulted in something like [object, MyClass], litteraly meaning that the parent is an object and an instance of MyClass. Somewhere you have created that instance with myVar = new MyClass(); so the parent is accessible through myVar. Also: somewhere you have added my_obj to myVar with myVar.addChild (my_obj) Remove it with myVar.removeChild(my_obj) If you did just 'addChild(my_obj)' (that is within myVar) you can say 'removeChild(my_obj)' (of course also within myVar) HTH Willem On 24-feb-2010, at 15:24, Susan Day wrote: On Wed, Feb 24, 2010 at 9:44 AM, Geografiek geograf...@geografiek.nlwrote: Well, You could at least give a hint as to what _does_ work: trace(my_obj.parent); Thanks. That traced out the name of the class/*.as file, but when I put that value in, as in: MyClass.removeChild(my_obj); it throws an error (1061). What do? With respect to Moock, yeah, got it, and it's the only reason I still haven't pulled out all the hair in my head. Maybe get the cookbook too. TIA, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31) 30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Flash Lite for Verizon
Thanks Scott, Already your blog looks to be enormously helpful! Kurt -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Scott Janousek Sent: Wednesday, February 24, 2010 9:54 AM To: Flash Coders List Subject: Re: [Flashcoders] Flash Lite for Verizon Kurt, see below. Contact me for further info. There is way too much history and news to put into one, short, email. :) Kurt Dommermuth wrote: Hi Everyone, I'm sorry if there is a better forum for this type of question, but there are a lot of experienced people here so maybe someone can help. I was told that the last Flash Lite app Verizon accepted for their get it now store was 2 years ago. Is this true? I haven't heard of anyone in Flash community trying to get content on there in at least 2 years. Anyone here developing smart phone apps for anything other than Apple? Yes. Anyone using Flash Lite at all? Yes. Any comments would be much appreciated. There seems to be a lot of conflicting info out there. Right on. :) Thanks! Kurt ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- Scott Janousek (sj) Speaker, Educator, Mobile Developer, Gadget Geek, CEO mobile: 617.840.4427 work: 617.276.2315 skype:scottajanousek twitter: scottjanousek linkedin: http://www.linkedin.com/in/scottjanousek qik.com http://www.qik.com/scottjanousek chumby: scottjanousek (Note: You must send me your username via email) site: http://www.scottjanousek.com mobi: http://scottjanousek.mobi blog: http://www.scottjanousek.com/blog flashlog: http://flashmobile.scottjanousek.com/ Forum Nokia Champion http://blogs.forum.nokia.com/blog/scott-janouseks-forum-nokia-blog/ Adobe Flash Lite 1.1/2.x/3.x Certified Training Instructor Qualcomm Authorized BREW Developer Co-Manager, Boston Adobe Mobile Devices User Group (BAMaDUG) http://www.flashmobilegroup.org Adobe Community Expert - Mobile Devices Member of the Adobe MaD Learning Resources Advisory Group Coauthor, Foundation Flash Applications for Mobile Devices, Friends of Ed (Apress), ISBN: 1590595580 http://www.flashmobilebook.com Coauthor, AdvancED Flash on Devices: Mobile Development with Flash Lite and Flash 10, Friends of Ed (APress), ISBN: 1430219041 http://advancED.flashmobilebook.com Frame 27: Flash Mobile Game Reviews http://frame27.blogspot.com Share your Flash Lite presentations http://www.slideshare.net/group/flash-lite-presentations Flash Lite Community World Map http://www.frappr.com/?a=showmap2mapid=2701599 Mobile Development Jobs http://www.mobiledevjobs.org ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error 1009
On Wed, Feb 24, 2010 at 10:35 AM, Deepanjan Das deepanjan@gmail.comwrote: Are you getting this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at Preloader/init() at Preloader() at test_fla::MainTimeline/frame1() Yes, except instead of referencing a problem with the preloader, it references a problem with the *.as that will load after the preloader. Also, the last line of the above doesn't come up. TIA, V ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error 1009
On Wed, Feb 24, 2010 at 11:01 AM, Keith Reinfeld keithreinf...@comcast.netwrote: Your code references the stage (to position your textfield) so you need to listen for the ADDED_TO_STAGE event to prevent the null reference. Example: package{ import flash.events.Event; import flash.display.MovieClip; public class Preloader extends MovieClip{ public function Preloader(){ addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true); } private function init(e:Event){ removeEventListener(Event.ADDED_TO_STAGE, init); // do stuff } } } I tried that but it didn't help. TIA, V ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeChild Question
Susan, A class is a template - usually written with a capital letter at the start. A class doesn't exist in the memory of the program. It's something you use to define the 'type' of objects you want. Other 'types' might be: int, Number, MyClass, etc. An instance is an object based on that template - usually starting with a lower case letter (so we can tell the difference). For example... var my_obj:MyClass = new MyClass; is a real object, called my_obj, based on the template for that 'type' of thing. You can only remove an instance with removeChild if it is a child sitting on another instance (i.e. you used addChild to add it). MyClass.removeChild(my_obj); tries to remove an instance from MyClass but MyClass doesn't exist (outside of the template). If you use addChild(my_obj); you add it to the stage (this is the main program's instance). If you then use removeChild(my_obj.parent); then you are trying to remove the stage - i.e. remove the program itself. Try var my_obj1:MyClass = new MyClass; var my_obj2:MyClass = new MyClass; my_obj1.addChild(my_obj2); Then you will be okay. This list of add instances when added to the stage becomes a display list. Read about the display lists. I read Mook's comepletely before doing any coding and it really helped. John Susan Day wrote: On Wed, Feb 24, 2010 at 9:44 AM, Geografiek geograf...@geografiek.nlwrote: Well, You could at least give a hint as to what _does_ work: trace(my_obj.parent); Thanks. That traced out the name of the class/*.as file, but when I put that value in, as in: MyClass.removeChild(my_obj); it throws an error (1061). What do? With respect to Moock, yeah, got it, and it's the only reason I still haven't pulled out all the hair in my head. Maybe get the cookbook too. TIA, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeChild Question
And you wrote addchild(mc) - that's like writing this.addchild(mc). Also parent is a property so mc.parent should always trace, like mc.alpha etc... Hth Sent from my iPhone On Feb 24, 2010, at 8:08 AM, Geografiek geograf...@geografiek.nl wrote: I don't think a class can have children, only instances of classes can. (skating on thin ice now ;-)) Also I don't know by heart all the error codes. So please, if you refer to an error code give the full text. I bet your trace resulted in something like [object, MyClass], litteraly meaning that the parent is an object and an instance of MyClass. Somewhere you have created that instance with myVar = new MyClass(); so the parent is accessible through myVar. Also: somewhere you have added my_obj to myVar with myVar.addChild (my_obj) Remove it with myVar.removeChild(my_obj) If you did just 'addChild(my_obj)' (that is within myVar) you can say 'removeChild(my_obj)' (of course also within myVar) HTH Willem On 24-feb-2010, at 15:24, Susan Day wrote: On Wed, Feb 24, 2010 at 9:44 AM, Geografiek geograf...@geografiek.nlwrote: Well, You could at least give a hint as to what _does_ work: trace(my_obj.parent); Thanks. That traced out the name of the class/*.as file, but when I put that value in, as in: MyClass.removeChild(my_obj); it throws an error (1061). What do? With respect to Moock, yeah, got it, and it's the only reason I still haven't pulled out all the hair in my head. Maybe get the cookbook too. TIA, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Geografiek is a Dutch, Utrecht-based map and chart design company. Willem van den Goorbergh can be contacted by telephone: (+31)30-2719512 or cell phone: (+31)6-26372378 or by fax: (+31)302719687 snail mail: Hooghiemstraplein 89 3514 AX UTRECHT Visit our website at: http://www.geografiek.nl =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error 1009
Also, if you go to publish settings enable debugging or whatever, you can see the line number of the errors. Sent from my iPhone On Feb 24, 2010, at 8:38 AM, Victor Subervi victorsube...@gmail.com wrote: On Wed, Feb 24, 2010 at 11:01 AM, Keith Reinfeld keithreinf...@comcast.netwrote: Your code references the stage (to position your textfield) so you need to listen for the ADDED_TO_STAGE event to prevent the null reference. Example: package{ import flash.events.Event; import flash.display.MovieClip; public class Preloader extends MovieClip{ public function Preloader(){ addEventListener(Event.ADDED_TO_STAGE, init, false, 0, true); } private function init(e:Event){ removeEventListener(Event.ADDED_TO_STAGE, init); // do stuff } } } I tried that but it didn't help. TIA, V ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeChild Question
John McCormack wrote: A class is a template - usually written with a capital letter at the start. A class doesn't exist in the memory of the program. If you use addChild(my_obj); you add it to the stage (this is the main program's instance). There are two things here that I have to disagree with. To begin with, classes does too exist in memory. They are real objects and they have properties as well. And more importantly, your explanation about the stage is not even remotely true. The stage is not the same as the main timeline. You also seem to imply that no matter where someone calls addChild, it will add to the main timeline. Now, I am fairly sure that this was not your intention, but you really need to be more clear about these things. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Error 1009
Victor Subervi wrote: On Tue, Feb 23, 2010 at 11:02 PM, Deepanjan Dasdeepanjan@gmail.comwrote: Hey, I have not seen your debugger error. So how do I debug? I downloaded what I thought was the debugger and it was just another copy of Flash! Flash IS the debugger. Just hit ctrl-shift-enter on your keyboard and there you have it. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeChild Question
Susan Day wrote: On Wed, Feb 24, 2010 at 9:44 AM, Geografiek geograf...@geografiek.nlwrote: Well, You could at least give a hint as to what _does_ work: trace(my_obj.parent); Thanks. That traced out the name of the class/*.as file, but when I put that value in, as in: MyClass.removeChild(my_obj); it throws an error (1061). What do? Susan, Your tiny amounts of code hide the many reasons that you may be getting errors. I know others have made some suggestions but here are things to think about. 1)By convention classes are named with capital letters at the start, instances with a lower case letter. This makes it easy to tell apart classes from instance in the code. When you write MyClass.removeChild(my_obj); It sets alarm bells ringing about whether you really mean what you write or are simply not following coding conventions. In most cases it will result in an error. 2) Classes that have parents must be descended from some kind of DisplayObject. The obvious candidates are MovieClip and Sprite. So to play around with parent, your class must extend MovieClip or Sprite or.. another class descended from DisplayObject. We can't tell if you've done that. 3) The parent property will be null even after you've created a class instance and will remain null until the instance is attached to a container of some form such as a MovieClip, or Sprite or the stage. addChild() will add a child instance to the current object (depends what this is referring to and where your code is). This is not synonymous with adding something to the stage, but may be. Only when you have added an instance as a child will the parent property of the instance be other than null. So, plenty of ways to trip up, and with tiny code snippets and clear mistakes you can see why everyone has to second guess what's going on. Paul With respect to Moock, yeah, got it, and it's the only reason I still haven't pulled out all the hair in my head. Maybe get the cookbook too. I think Mook is heavy for a first intro to OO and AS3 and I'd suggest something lighter to get going. Paul TIA, Susan ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeChild Question
Henrik, I was careless. The code and properties of a class, such as Math and Math.PI, are accessible and you can pass objects, such as the number 0.1 into the class methods, as in Math.sin(0.1), and so there is memory associated with them. It's worth noting that a static property for a class belongs to all instances whereas other properties exist - one copy for each object. I should have said that there was no separate memory existing solely for them. Rather, it exists for their instances. I am not sure about your objection about the stage. I never mentioned time lines, I assumed Susan was adding to the stage at the start of her program. Can you have a main SWF without a timeline (single frame)? Can you have a program without a stage? What is more fundamental to a SWF, a stage or timeline? Maybe I am missing something. John Henrik Andersson wrote: John McCormack wrote: A class is a template - usually written with a capital letter at the start. A class doesn't exist in the memory of the program. If you use addChild(my_obj); you add it to the stage (this is the main program's instance). There are two things here that I have to disagree with. To begin with, classes does too exist in memory. They are real objects and they have properties as well. And more importantly, your explanation about the stage is not even remotely true. The stage is not the same as the main timeline. You also seem to imply that no matter where someone calls addChild, it will add to the main timeline. Now, I am fairly sure that this was not your intention, but you really need to be more clear about these things. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] [JOB] Lead Flex Developer in NYC (Relo OK) to 150k
Lead Flex Developer in NYC (Relo OK) to 150k This is a full time, on-site, salaried position located in New York City paying $120,000 to $150,000 (dep on exp) + benefits. Full relocation expenses paid by our client. H1/H1-B OK - Will sponsor/transfer visa. ABOUT: Our New York City client is embarking on a large initiative to revamp and expand its digital product offering to support the existing client business. This offering will comprise of a new client facing fixed income trading application, for their institutional client base. This is an exciting opportunity to work with a dynamic team, on a highly visible, 'green field' development. SUMMARY: They are looking for Senior Flex Developer/Team Lead to build the UI for a multi-product, multifunctional rich internet application. The latest web technology is required to support real-time pricing, electronic trading, analytics and charting, content and various communication media. The mission critical application must be able to perform to set SLA for performance and scale. The candidate should be able to work independently, have an outstanding track record, and be comfortable working in an Agile environment. The Matrix system is developing rapidly across multiple businesses and the UI strategy must be scalable across many products. They should be able to communicate effectively with business analysts, interpreting their requirements, and working with other internal and external development managers. REQUIRED: * The individual must be technically excellent in the following: Flex 3.0, Java, design patterns, Multi-threaded programming, concurrency strategies. * Financial, Insurance or Government experience/background required. * No job-hoppers or consultants considered. You must have a steady, full time, salaried work history. APPLY: Please submit your RESUME and SALARY requirements to beau[AT]open-source-staffing.com Thank you, Beau J. Gould -- Open Source Staffing http://www.open-source-staffing.com http://www.facebook.com/beau.gould beau[AT]open-source-staffing.com Flash, Flex, AIR (and related) Discussion / Jobs http://www.linkedin.com/groups?gid=990627 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] removeChild Question
John McCormack wrote: I was careless. I am not sure about your objection about the stage. I never mentioned time lines, I assumed Susan was adding to the stage at the start of her program. Can you have a main SWF without a timeline (single frame)? Can you have a program without a stage? What is more fundamental to a SWF, a stage or timeline? Maybe I am missing something. You forgot a minor detail, don't worry about that. You get corrected and move on, it happens to everyone. The stage is the player. The main timeline is the content that you create. You need both. The stage is needed so that something is visible. The main timeline is the frames stored in the swf. Even a one frame swf has a timeline, that lone frame. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders