Actionscript 3 :: Getting Subchildren From FXG?

Nov 22, 2011

I've imported an FXG from illustrator from Adobe illustrator into flash builder 4.5 and have managed to get it on the stage, the problem I'm facing is accessing the children of the FXG.Basic FXG that won't work:

<?xml version="1.0" encoding="utf-8" ?>
<Graphic xmlns="http://ns.adobe.com/fxg/2008" xmlns:ATE="http://ns.adobe.com/ate/2009" xmlns:ai="http://ns.adobe.com/ai/2009" xmlns:d="http://ns.adobe.com/fxg/2008/dt"

[code].....

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Can't Add Child And Access Subchildren Timelines

Nov 10, 2010

I have the following code:
  
var myParent:Parent = new Parent();
var mySymbol_01:Symbol01 = new Symbol01();
var mySymbol_02:Symbol02 = new Symbol02();

[Code].....

and remove the comments, the file breaks and no Movie Clips appear on the stage. Does this have to do with casting the Children as Movie Clips, which I may not have done here?

View 5 Replies

ActionScript 3.0 :: Remove All Children Of An Object (and Subchildren)

Aug 25, 2009

I want to destroy/remove all the children of an object including grandchildren of those children and so on.

I was thinking of using a recursive loop along the lines "if you have children, check if they have children, if they do, check if THEY have children and so on until they have no children and if so removeChildAt(0) of the parent you last checked.

ActionScript Code:
obj0
|-obj1
|-obj2

[Code]......

A quick second question, we all know that event listeners should be removed when no longer needed but I was wondering about the event.COMPLETE listener for loading say XML or a video file or any loader object. Is there any point removing that listener of is it in effect dead anyway because it has triggered when "COMPLETE" and won't ever trigger again? Isn't it still "listening"?

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved