Re: [Flashcoders] Detect child parent
object._parent Worked for me and a comboBox.. :) Karl On Nov 22, 2009, at 1:53 AM, ktt wrote: Hello I would like to remove Child, but can't detect it's parent. How to remove a Child without knowing it's parent? mychild.parent.removeChild(mychild) doesn't work.. Ktt ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Mailing List Idea: Teddy Bear
> Legend has it that at one time the MIT student lab had a teddy bear to whom > you were required to explain a programming issue you were having before you > could ask the lab administrator for help. > > Many people, myself included, ask a mailing list about an issue we are > having, and only moments after sending you figure it out before anyone > responds. > > I'm considering starting a mailing list where there is no expectation of > response, but by sending the email, you might figure out your issue, and if > you don't, then you can copy and paste it to your regular mailing list. > > Whaddya think? ;) It seems that the obvious best solution would not be a mailing list, but rather a virtual Flash-driven teddy bear. It could even deliver snide responses. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Mailing List Idea: Teddy Bear
I like it :) FlashTeddy Steven Sacks wrote: Legend has it that at one time the MIT student lab had a teddy bear to whom you were required to explain a programming issue you were having before you could ask the lab administrator for help. Many people, myself included, ask a mailing list about an issue we are having, and only moments after sending you figure it out before anyone responds. I'm considering starting a mailing list where there is no expectation of response, but by sending the email, you might figure out your issue, and if you don't, then you can copy and paste it to your regular mailing list. Whaddya think? ;) ___ 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] Still Infinitely Looping
beno - wrote: On Sat, Nov 21, 2009 at 2:14 PM, Steven Sacks wrote: Latcho you've got it all wrong. The true power of debugging is posting your code on a mailing list and letting other people debug your code for you. It's much easier to ask dozens of people to look at your code than for you to comment out lines of code and write traces on your own. Even better, post that you're getting an error and you don't know why. Don't post the error or the code, just vaguely describe what the problem is and end your post with "please help!". A few people will respond to you asking you leading questions to help them help you. Then, you will feel like people care about you and your problems, and you won't feel so alone in the world. I will comment out the lines, I will comment out the lines, I will comment out the lines. Please don't be rude in the name of being "funny". It's not funny. During this holiday season, people just need to feel like somebody cares. Care by not being rude. Just leave it at telling me to comment out the lines. Be nice. beno Beno, It's all good advice. It's may take you ages to track down these bugs, but a lesson will be learned. Stipping back code until the problem goes away is a great technique. I think I and others have already told you what the real problem is. Paul ___ 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] Mailing List Idea: Teddy Bear
What's the difference than sending an email to yourself? I personally would not send an email until I have exhausted all my options of solving my issue. I highly doubt I could send an email to a list knowing I would get no response. I think the reason why the teddy bear idea works is because you get up and walk away from the project and think. I find that sometimes when I get stuck and I go for a walk or switch mind set to something else and then approach my project again, I sometimes find my solution. --Original Message-- From: Steven Sacks Sender: flashcoders-boun...@chattyfig.figleaf.com To: Flash Coders List ReplyTo: Flash Coders List Subject: [Flashcoders] Mailing List Idea: Teddy Bear Sent: Nov 21, 2009 2:00 PM Legend has it that at one time the MIT student lab had a teddy bear to whom you were required to explain a programming issue you were having before you could ask the lab administrator for help. Many people, myself included, ask a mailing list about an issue we are having, and only moments after sending you figure it out before anyone responds. I'm considering starting a mailing list where there is no expectation of response, but by sending the email, you might figure out your issue, and if you don't, then you can copy and paste it to your regular mailing list. Whaddya think? ;) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Nathan Mynarcik Interactive Web Developer nat...@mynarcik.com 254.749.2525 www.mynarcik.com ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Mailing List Idea: Teddy Bear
Legend has it that at one time the MIT student lab had a teddy bear to whom you were required to explain a programming issue you were having before you could ask the lab administrator for help. Many people, myself included, ask a mailing list about an issue we are having, and only moments after sending you figure it out before anyone responds. I'm considering starting a mailing list where there is no expectation of response, but by sending the email, you might figure out your issue, and if you don't, then you can copy and paste it to your regular mailing list. Whaddya think? ;) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Still Infinitely Looping
On Sat, Nov 21, 2009 at 2:14 PM, Steven Sacks wrote: > Latcho you've got it all wrong. > > The true power of debugging is posting your code on a mailing list and > letting other people debug your code for you. It's much easier to ask > dozens of people to look at your code than for you to comment out lines of > code and write traces on your own. > > Even better, post that you're getting an error and you don't know why. > Don't post the error or the code, just vaguely describe what the problem is > and end your post with "please help!". A few people will respond to you > asking you leading questions to help them help you. Then, you will feel > like people care about you and your problems, and you won't feel so alone in > the world. > I will comment out the lines, I will comment out the lines, I will comment out the lines. Please don't be rude in the name of being "funny". It's not funny. > > During this holiday season, people just need to feel like somebody cares. Care by not being rude. Just leave it at telling me to comment out the lines. Be nice. beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Still Infinitely Looping
Latcho you've got it all wrong. The true power of debugging is posting your code on a mailing list and letting other people debug your code for you. It's much easier to ask dozens of people to look at your code than for you to comment out lines of code and write traces on your own. Even better, post that you're getting an error and you don't know why. Don't post the error or the code, just vaguely describe what the problem is and end your post with "please help!". A few people will respond to you asking you leading questions to help them help you. Then, you will feel like people care about you and your problems, and you won't feel so alone in the world. During this holiday season, people just need to feel like somebody cares. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Still Infinitely Looping
Do you have stop actions in your mcs? Beno, please respect the list and spend more time debugging before you come ask questions. Everyone is happy to help but you need to do your part. If you follow the debug process I and others have mentioned i promise you'll be able to solve the problems you posted about. Most of the questions posted ont his list are unique bugs or specific questions rather than hand holding. The other list I mentioned would be more appropriate for that. Not trying to be rude here, just trying to help. Start debugging in your process (we'll be able to tell if you have or not)and then ask questions when you're out of options. Jared Sent from my iPhone On Nov 21, 2009, at 10:44 AM, Latcho wrote: Hi Beno, The power of debugging (or finding a bug) is also the power of using elimination to isolate a problem. By re-activating pieces of the code step by step you might hit the offending code block. Then come back if you are still stuck. Best of luck. Latcho beno - wrote: On Sat, Nov 21, 2009 at 11:22 AM, Paul Andrews wrote: beno - wrote: On Sat, Nov 21, 2009 at 10:23 AM, Keith Reinfeld wrote: The problem must be with some other code that you are not showing. No, that's all the code! beno So what do you mean by "looping"? The hand tweens play, and replay, and replay... Is there any code in any of these MovieClips that you are instantiating? No. All the code there is is stated above. ___ 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 mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Still Infinitely Looping
Hi Beno, The power of debugging (or finding a bug) is also the power of using elimination to isolate a problem. By re-activating pieces of the code step by step you might hit the offending code block. Then come back if you are still stuck. Best of luck. Latcho beno - wrote: On Sat, Nov 21, 2009 at 11:22 AM, Paul Andrews wrote: beno - wrote: On Sat, Nov 21, 2009 at 10:23 AM, Keith Reinfeld wrote: The problem must be with some other code that you are not showing. No, that's all the code! beno So what do you mean by "looping"? The hand tweens play, and replay, and replay... Is there any code in any of these MovieClips that you are instantiating? No. All the code there is is stated above. ___ 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] Still Infinitely Looping
beno - wrote: On Sat, Nov 21, 2009 at 11:22 AM, Paul Andrews wrote: beno - wrote: On Sat, Nov 21, 2009 at 10:23 AM, Keith Reinfeld wrote: The problem must be with some other code that you are not showing. No, that's all the code! beno So what do you mean by "looping"? The hand tweens play, and replay, and replay... Well, they will if you don't have a stop() command at the end of the timeline.. Is there any code in any of these MovieClips that you are instantiating? No. All the code there is is stated above. ___ 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] Still Infinitely Looping
On Sat, Nov 21, 2009 at 11:22 AM, Paul Andrews wrote: > beno - wrote: > >> On Sat, Nov 21, 2009 at 10:23 AM, Keith Reinfeld >> wrote: >> >> >> >>> The problem must be with some other code that you are not showing. >>> >>> >>> >> >> No, that's all the code! >> beno >> >> > So what do you mean by "looping"? > The hand tweens play, and replay, and replay... > > Is there any code in any of these MovieClips that you are instantiating? > No. All the code there is is stated above. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Still Infinitely Looping
beno - wrote: On Sat, Nov 21, 2009 at 10:23 AM, Keith Reinfeld wrote: The problem must be with some other code that you are not showing. No, that's all the code! beno So what do you mean by "looping"? Is there any code in any of these MovieClips that you are instantiating? Paul ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Still Infinitely Looping
Well, I have run your code (using mock library assets with the same export names you show) and there was no problem. I would also point out that you are not calling the greensock code on the hand assets in the code you provided. I suspect that there may be some timeline code in the hand asset. 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] Still Infinitely Looping
On Sat, Nov 21, 2009 at 10:23 AM, Keith Reinfeld wrote: > The problem must be with some other code that you are not showing. > No, that's all the code! beno > -Original Message- > From: flashcoders-boun...@chattyfig.figleaf.com > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of beno - > Sent: Saturday, November 21, 2009 7:33 AM > To: Flash Coders List > Subject: [Flashcoders] Still Infinitely Looping > > Hi; > The following code causes an infinite loop of the hands: > > package > { > import flash.display.MovieClip; > import com.greensock.*; > import com.greensock.plugins.*; > import com.greensock.easing.*; > public class Main extends MovieClip > { > public function Main():void >{ > } > public function init():void { >hatAndFace(); >eyeball1(); >eyeball2(); >rightHand(); >leftHand(); > } > public function hatAndFace():void >{ >var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace(); >TweenPlugin.activate([AutoAlphaPlugin]); >addChild(mcHatAndFaceInstance); >mcHatAndFaceInstance.x = 350; >mcHatAndFaceInstance.y = 100; >mcHatAndFaceInstance.alpha = 0; >TweenLite.to(mcHatAndFaceInstance, 2, {autoAlpha:1}); > } > public function eyeball1():void >{ >var mcEyeballInstance1:mcEyeball = new mcEyeball(); >TweenPlugin.activate([AutoAlphaPlugin]); >addChild(mcEyeballInstance1); >mcEyeballInstance1.x = 380; >mcEyeballInstance1.y = 115; >mcEyeballInstance1.alpha = 0; >TweenLite.to(mcEyeballInstance1, 2, {autoAlpha:1}); > } > public function eyeball2():void >{ >var mcEyeballInstance2:mcEyeball = new mcEyeball(); >TweenPlugin.activate([AutoAlphaPlugin]); >addChild(mcEyeballInstance2); >mcEyeballInstance2.x = 315; >mcEyeballInstance2.y = 115; >mcEyeballInstance2.alpha = 0; >TweenLite.to(mcEyeballInstance2, 2, {autoAlpha:1}); > } > public function rightHand():void >{ >var mcHandInstance1:mcHand = new mcHand(); >addChild(mcHandInstance1); >mcHandInstance1.x = 400; >mcHandInstance1.y = 200; > } > public function leftHand():void >{ >var mcHandInstance2:mcHand = new mcHand(); >addChild(mcHandInstance2); >mcHandInstance2.x = 800; >mcHandInstance2.y = 200; > } > } > } > > I have the following in the first frame of a layer of the timeline: > > var main:Main = new Main(); > addChild(main); > main.init(); > stop(); > > Someone, presumably working with greensock.com, mentioned that I should > d/l > the latest version of TweenLite since an earlier version had a bug that > could have triggered the infinite loop, but I replaced my older version > with > a brand new one as per his instructions. Please advise. > TIA, > beno > ___ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 9.0.709 / Virus Database: 270.14.76/2517 - Release Date: 11/21/09 > 01:47:00 > > ___ > 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] Still Infinitely Looping
The problem must be with some other code that you are not showing. Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of beno - Sent: Saturday, November 21, 2009 7:33 AM To: Flash Coders List Subject: [Flashcoders] Still Infinitely Looping Hi; The following code causes an infinite loop of the hands: package { import flash.display.MovieClip; import com.greensock.*; import com.greensock.plugins.*; import com.greensock.easing.*; public class Main extends MovieClip { public function Main():void { } public function init():void { hatAndFace(); eyeball1(); eyeball2(); rightHand(); leftHand(); } public function hatAndFace():void { var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace(); TweenPlugin.activate([AutoAlphaPlugin]); addChild(mcHatAndFaceInstance); mcHatAndFaceInstance.x = 350; mcHatAndFaceInstance.y = 100; mcHatAndFaceInstance.alpha = 0; TweenLite.to(mcHatAndFaceInstance, 2, {autoAlpha:1}); } public function eyeball1():void { var mcEyeballInstance1:mcEyeball = new mcEyeball(); TweenPlugin.activate([AutoAlphaPlugin]); addChild(mcEyeballInstance1); mcEyeballInstance1.x = 380; mcEyeballInstance1.y = 115; mcEyeballInstance1.alpha = 0; TweenLite.to(mcEyeballInstance1, 2, {autoAlpha:1}); } public function eyeball2():void { var mcEyeballInstance2:mcEyeball = new mcEyeball(); TweenPlugin.activate([AutoAlphaPlugin]); addChild(mcEyeballInstance2); mcEyeballInstance2.x = 315; mcEyeballInstance2.y = 115; mcEyeballInstance2.alpha = 0; TweenLite.to(mcEyeballInstance2, 2, {autoAlpha:1}); } public function rightHand():void { var mcHandInstance1:mcHand = new mcHand(); addChild(mcHandInstance1); mcHandInstance1.x = 400; mcHandInstance1.y = 200; } public function leftHand():void { var mcHandInstance2:mcHand = new mcHand(); addChild(mcHandInstance2); mcHandInstance2.x = 800; mcHandInstance2.y = 200; } } } I have the following in the first frame of a layer of the timeline: var main:Main = new Main(); addChild(main); main.init(); stop(); Someone, presumably working with greensock.com, mentioned that I should d/l the latest version of TweenLite since an earlier version had a bug that could have triggered the infinite loop, but I replaced my older version with a brand new one as per his instructions. Please advise. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.709 / Virus Database: 270.14.76/2517 - Release Date: 11/21/09 01:47:00 ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Still Infinitely Looping
Hi; The following code causes an infinite loop of the hands: package { import flash.display.MovieClip; import com.greensock.*; import com.greensock.plugins.*; import com.greensock.easing.*; public class Main extends MovieClip { public function Main():void { } public function init():void { hatAndFace(); eyeball1(); eyeball2(); rightHand(); leftHand(); } public function hatAndFace():void { var mcHatAndFaceInstance:mcHatAndFace = new mcHatAndFace(); TweenPlugin.activate([AutoAlphaPlugin]); addChild(mcHatAndFaceInstance); mcHatAndFaceInstance.x = 350; mcHatAndFaceInstance.y = 100; mcHatAndFaceInstance.alpha = 0; TweenLite.to(mcHatAndFaceInstance, 2, {autoAlpha:1}); } public function eyeball1():void { var mcEyeballInstance1:mcEyeball = new mcEyeball(); TweenPlugin.activate([AutoAlphaPlugin]); addChild(mcEyeballInstance1); mcEyeballInstance1.x = 380; mcEyeballInstance1.y = 115; mcEyeballInstance1.alpha = 0; TweenLite.to(mcEyeballInstance1, 2, {autoAlpha:1}); } public function eyeball2():void { var mcEyeballInstance2:mcEyeball = new mcEyeball(); TweenPlugin.activate([AutoAlphaPlugin]); addChild(mcEyeballInstance2); mcEyeballInstance2.x = 315; mcEyeballInstance2.y = 115; mcEyeballInstance2.alpha = 0; TweenLite.to(mcEyeballInstance2, 2, {autoAlpha:1}); } public function rightHand():void { var mcHandInstance1:mcHand = new mcHand(); addChild(mcHandInstance1); mcHandInstance1.x = 400; mcHandInstance1.y = 200; } public function leftHand():void { var mcHandInstance2:mcHand = new mcHand(); addChild(mcHandInstance2); mcHandInstance2.x = 800; mcHandInstance2.y = 200; } } } I have the following in the first frame of a layer of the timeline: var main:Main = new Main(); addChild(main); main.init(); stop(); Someone, presumably working with greensock.com, mentioned that I should d/l the latest version of TweenLite since an earlier version had a bug that could have triggered the infinite loop, but I replaced my older version with a brand new one as per his instructions. Please advise. TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Creating And Printing String With AS3
On Fri, Nov 20, 2009 at 2:40 PM, David Hunter wrote: > > i think there are a number of different ways to embed fonts in flash. but > the way i do it is by creating a "new font" from the library panel and then > setting the linkage so it is "export for actionscript" and then giving it a > class name. this definitely works for me and works with your code (without > the tweenLite stuff). only a couple other modifications to the code. you can > see the code at: http://pastebin.com/m401946d0 > Thanks for the code! Can you tell me how to create a font in my library and give it a class name? That one lost me. We're not making the font an object, such as an mc, are we? > all this stuff is on the adobe docs i think, written somewhere. > Oh, I'm sure it is. I'm reading it now. All 750+ pages of it. But not all in one day ;) TIA, beno ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders