[Flashcoders] Detect child parent

2009-11-22 Thread ktt
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

Re: [Flashcoders] Detect child parent

2009-11-22 Thread Karl DeSaulniers
Actually I think your code should be mychild._parent.removeChild(mychild) But I am thinking in AS2, so this may not be the case for AS3. Not sure. HTH Karl On Nov 22, 2009, at 1:53 AM, ktt wrote: mychild.parent.removeChild(mychild) Karl DeSaulniers Design Drumm http://designdrumm.com

Re: [Flashcoders] Detect child parent

2009-11-22 Thread Karl DeSaulniers
Maybe.. var childParent:Object = mychild.parent; childParent.removeChild(mychild) or var childParent:Object = mychild._parent; childParent.removeChild(mychild) Karl On Nov 22, 2009, at 1:58 AM, Karl DeSaulniers wrote: mychild.parent.removeChild(mychild) Karl DeSaulniers Design Drumm

[Flashcoders] How to detect browser closure or user navigating away?

2009-11-22 Thread Alexander Farber
Hello fellow flashcoders, is there a way in AS3 to detect when the user closes the browser with your flash movie or navigates away from the web page containing it? I'd like to send short information to the server when doing so. I have a flash movie acting both as socket and HTTP client

Re: [Flashcoders] Still Infinitely Looping

2009-11-22 Thread beno -
On Sat, Nov 21, 2009 at 3:52 PM, Paul Andrews p...@ipauland.com wrote: It's all good advice. Attitude is important. Yours is good because it's not degrading. It's may take you ages to track down these bugs, but a lesson will be learned. We programmers are gluttons for punishment ;)

Re: [Flashcoders] Still Infinitely Looping

2009-11-22 Thread Paul Andrews
beno - wrote: On Sat, Nov 21, 2009 at 3:52 PM, Paul Andrews p...@ipauland.com wrote: It's all good advice. Attitude is important. Yours is good because it's not degrading. It's may take you ages to track down these bugs, but a lesson will be learned. We programmers are

Re: [Flashcoders] text input @ appearing as ' in chrome

2009-11-22 Thread Juan Pablo Califano
It's a bug that's been there for ages in the plugin version of the player (it affects all browsers except for Internet Explorer, that uses the ActiveX version of the player). http://bugs.adobe.com/jira/browse/FP-40 http://bugs.adobe.com/jira/browse/FP-40The problem shows in every browser except

Re: [Flashcoders] Still Infinitely Looping

2009-11-22 Thread beno -
On Sun, Nov 22, 2009 at 11:03 AM, Paul Andrews p...@ipauland.com wrote: If mcHand has a tween on the timeline for that MovieClip, there MUST be a stop() command in actionscript at the end of the frames for the mcMovieClip. Without that stop() command the timeline will loop. I put a keyframe

Re: [Flashcoders] Still Infinitely Looping

2009-11-22 Thread Paul Andrews
beno - wrote: On Sun, Nov 22, 2009 at 11:03 AM, Paul Andrews p...@ipauland.com wrote: If mcHand has a tween on the timeline for that MovieClip, there MUST be a stop() command in actionscript at the end of the frames for the mcMovieClip. Without that stop() command the timeline will loop.

RE: [Flashcoders] Mailing List Idea: Teddy Bear

2009-11-22 Thread Kerry Thompson
Nathan Mynarcik wrote: I think the reason why the teddy bear idea works is because you get up and walk away from the project and think. That's part of it. I've used the teddy bear technique a lot, and it forces me to really think through the process I'm using. I find that if I can't explain

Re: [Flashcoders] Still Infinitely Looping

2009-11-22 Thread beno -
On Sun, Nov 22, 2009 at 12:32 PM, Paul Andrews p...@ipauland.com wrote: beno - wrote: On Sun, Nov 22, 2009 at 11:03 AM, Paul Andrews p...@ipauland.com wrote: If mcHand has a tween on the timeline for that MovieClip, there MUST be a stop() command in actionscript at the end of the frames

Re: [Flashcoders] Still Infinitely Looping

2009-11-22 Thread Paul Andrews
beno - wrote: On Sun, Nov 22, 2009 at 12:32 PM, Paul Andrews p...@ipauland.com wrote: beno - wrote: On Sun, Nov 22, 2009 at 11:03 AM, Paul Andrews p...@ipauland.com wrote: If mcHand has a tween on the timeline for that MovieClip, there MUST be a stop() command in

Re: [Flashcoders] Still Infinitely Looping

2009-11-22 Thread beno -
On Sun, Nov 22, 2009 at 1:58 PM, Paul Andrews p...@ipauland.com wrote: Tell me about mcHand. I am expecting you to tell me that mcHand is a MovieClip symbol in your library. If you edit that symbol you'll find there is a timeline just for mcHand. That is the timeline I have been referring to,

Re: [Flashcoders] Detect child parent

2009-11-22 Thread Ktu
Are you sure that the child you are trying to remove is in a display list? Ktu On Sun, Nov 22, 2009 at 3:08 AM, Karl DeSaulniers k...@designdrumm.comwrote: Maybe.. var childParent:Object = mychild.parent; childParent.removeChild(mychild) or var childParent:Object = mychild._parent;

Re: [Flashcoders] Detect child parent

2009-11-22 Thread Chris
It sounds like what you are doing is correct. Perhaps your child isn't on the stage. Try something like this: if(child.parent){ child.parent.removeChild(child); } Which will only attemp to remove child if the parent exists. If you expect your child to always be parented, you might want to

Re: [Flashcoders] HTMLLoader

2009-11-22 Thread John R. Sweeney Jr
Why is this funny. The client wants a touchscreen kiosk (built in Flash) that one of the elements is they want the to show the corporate website within the app. Not a overlaid popup browser, but the actual site inside the application. I've been told that AIR and the HTMLLoader will handle it, but

Re: [Flashcoders] Detect child parent

2009-11-22 Thread Henrik Andersson
Chris wrote: If you expect your child to always be parented, you might want to yell loudly about it: if(child.parent){ child.parent.removeChild(child); }else{ throw new Error(This child doesn't currently have a parent.); } You mean like flash does for you?

Re: [Flashcoders] Still Infinitely Looping

2009-11-22 Thread Karl DeSaulniers
Couldn't you just put: Main.stop(); Instead of editing the library asset? Karl Sent from losPhone On Nov 22, 2009, at 12:58 PM, Paul Andrews p...@ipauland.com wrote: var main:Main = new Main(); addChild(main); main.init(); stop(); ___

Re: [Flashcoders] Still Infinitely Looping

2009-11-22 Thread Paul Andrews
Karl DeSaulniers wrote: Couldn't you just put: Main.stop(); Instead of editing the library asset? No, the problem is with mcHand, not the main timeline. Karl Sent from losPhone On Nov 22, 2009, at 12:58 PM, Paul Andrews p...@ipauland.com wrote: var main:Main = new Main();

Re: [Flashcoders] Detect child parent

2009-11-22 Thread ktt
strangely trace (myChild.parent) outputs [object someObject] but it doesn't work when I try to remove via myChild.parent.removeChild(myChild) or via reference.. the child before was added simply by addChild(myChild) Ktt --- On Sun, 11/22/09, Chris zomgfore...@gmail.com wrote: From: Chris

Re: [Flashcoders] Detect child parent

2009-11-22 Thread Karl DeSaulniers
Try this.removeChild(myChild); parent.removeChild(myChild); Without the myChild reference in the beginning. Or set the child in the beginning. ParentMCName.addChild(myChild); Then you should be able to reference the parent if was defined when creating the child. Hth. Karl Sent from

[Flashcoders] Suggestion for the new Flash

2009-11-22 Thread Karl DeSaulniers
Hello, Can I make a suggestion for the new Flash App. Can we get a radio button selection in the properties pane for any MC to smooth its contents or not? That way anything loaded into that MC can be opted to be smoothed or not. Less programing code if this was the case I think. JAT Karl

Re: [Flashcoders] Suggestion for the new Flash

2009-11-22 Thread Latcho
We code in flash or in actionscript but we are not the creators of (the) Flash (IDE); check out: https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform Latcho Karl DeSaulniers wrote: Hello, Can I make a suggestion for the new Flash App. Can we get a radio button selection in the

Re: [Flashcoders] Suggestion for the new Flash

2009-11-22 Thread Karl DeSaulniers
Thanks for that Latcho. I went ahead and submitted my suggestion. But I asked here, because I know some of the Adobe people list here and was curious to get a response to the suggestion. Thanks for the link though. Best, Karl On Nov 22, 2009, at 11:00 PM, Latcho wrote: We code in flash or

Re: [Flashcoders] Suggestion for the new Flash

2009-11-22 Thread Henrik Andersson
Karl DeSaulniers wrote: Can we get a radio button selection in the properties pane for any MC to smooth its contents or not? First you have to define how to smooth vector graphics. Smoothing is only for bitmaps and it's supported there already. ___

[Flashcoders] getChildByName problem

2009-11-22 Thread Sajid Saiyed
Hi, I dont know what am I doing wrong here. I have a library item linked to a class. The class creates the instance of the symbol. Then I addChild The symbol has three keyframes on the timeline (by default stopping at first frame). Each frame has different movieclips. INside these movieclips,

Re: [Flashcoders] getChildByName problem

2009-11-22 Thread Henrik Andersson
The playhead vs actionscript situation is a mess in Flash since as 3 first came out. This is the end result of flex being the only tool to test with. But enough ranting about that. First make sure that your swf is published for FP 10, if it is, the situation is better. If this is not enough

Re: [Flashcoders] getChildByName problem

2009-11-22 Thread Sajid Saiyed
I am on CS3 with Flash Player 9. Is there a way to deal with this in Player 9? Thanks On Mon, Nov 23, 2009 at 2:36 PM, Henrik Andersson he...@henke37.cjb.net wrote: The playhead vs actionscript situation is a mess in Flash since as 3 first came out. This is the end result of flex being the

[Flashcoders] Toon Fu!

2009-11-22 Thread Alan Watts
Hi all, I have been working on an AS3-based animation app and finally have made a version public: http://www.toonfu.com/help/ Anyone interested in some beta-testing? There are still some bugs, but it's stable and usable. I'd love to get feedback from some folks who are animators.