So I am learning about 3D in Flex and ActionScript http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WSF24A5A75-38D6-4a44-BDC6-927A2B123E90.html
I wanted to see the example given in this .... article. http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WSCE716DAD-9364-464f-AFE9-8E578525AD54.html I added the AS class to a Flash Project in Flashbuider I then created a Panel to put this in. After some research, I discovered I needed a SprintVisualElement to display the ProjectionDragger. <?xml version="1.0" encoding="utf-8"?> <s:Panel xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="panel1_creationCompleteHandler(event)" width="400" height="400"> <fx:Script> </fx:Script> <fx:Declarations> </fx:Declarations> <s:SpriteVisualElement id="con"/> </s:Panel> However, when I ran it, I got a null error, I debugged and discovered root is null. Now, I have no idea what root is at this point and wondered if I was missing something in my Panel to run it But after a different demo of Sprite objects, which didnt have root at all, I commented out the root assigning the point in the Create Center function. I then re ran the app and it worked. Though I am guessing the app was just not centered. So, with that said, what is the root? Why was it null? What should I have done in the mxml file or in the AS file so that root would not have been null? I am new to this stuff. Please be patient and verbose. -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/3D-and-root-tp13331.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
