Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - cctman

Pages: [1]
1
General Discussion / Running demos in Flex project from mxml
« on: August 12, 2011, 06:37:23 pm »
Hello,
I don't know if you guys have any examples of doing this but I'm attempting to port over some of the demo code to be used in a Main.mxml file. There is however some difficulty in doing this and keeping your demos intact. For one I'm attempting to execute the code like such...

protected function application1_applicationCompleteHandler(event:FlexEvent):void
         {
            var obj:PrimitiveTest = new PrimitiveTest();
            container.addChild(obj);
         }

//container being a....
<s:SpriteVisualElement id="container" width="{this.width}" height="{this.height}"/>

The problem is that you can not actually get a reference to the stage from a class file until after it is actually added to the stage making it a UIObject at that point. I have added a listener to wait for this in the baseTest class like such...

public function BaseTest()
      {
         // Since you have to have a reference to the stage first we must wait until this class has been added to the stage.
         addEventListener(Event.ADDED_TO_STAGE, stageAddHandler);
      }

private function stageAddHandler(e:Event):void
      {
         removeEventListener(Event.ADDED_TO_STAGE, stageAddHandler);

                        Yogurt3D.instance.addEventListener( Yogurt3DEvent.READY, onContext3DReady );
         Yogurt3D.instance.init(stage);
                        ........
               
                }

The rest of the code follows from the example you have created. However, I think there is something getting out of wack here with the order of events. When I run this demo I get no errors and everything seems to compile fine and then it freezes up almost locking the browser. So if you guys have any ideas please let me know otherwise I will post a solution here as soon as I find one.

I think that running the Flex application using mxml files has obvious benefits as you can integrate it much easier into other development workflow and manipulate the layout a bit easier.

-Thanks!

2
General Discussion / Missing Material Example
« on: August 10, 2011, 03:53:35 pm »
Hello,
Can we get the material example added to the examples download.rar? I'm trying to use some of the code snippet that is referenced in the Material Example on your site but I don't have the full code example to see how your creating the bitmapData object.

Example:
MaterialEnvMappingSpecular( scene.skyBox.texture, new TextureMap( bitmapData ) );

-Thanks!

3
General Discussion / Updated source code for a Newbie?
« on: August 09, 2011, 09:53:39 pm »
You had mentioned in an earlier post.. "The developers may get the tutorial source codes and compile&run them on their machines without any problem". Since I'm very new to Yogurt3D and I'm using the latest Flash player 11.0.1.60 I'm dead in the water and can not compile any projects. Do you have a work around solution or an estimated date when we will get some of the new source code?

4
General Discussion / exporting and importing models from older formats?
« on: August 05, 2011, 08:55:24 pm »
I was wondering a lot of us guys that are flex/flash guys have older versions of Maya or Max. In my case I have Maya 7.0 because I have been unable to warrant the cost associated with upgrading the software over the last few years. Do you have a way to get older 3d modeling formats into yogurt y3d?

5
General Discussion / Tutorials aren't working.
« on: August 04, 2011, 08:33:00 pm »
Hello,
I'm having some problems getting the tutorials working correctly after following the steps here http://www.yogurt3d.com/support/tutorials/installing-yogurt3d-tutorial.html

Error I get is:
ReferenceError: Error #1056: Cannot create property viewPort on flash.display.Stage3D.
   at com.yogurt3d::Yogurt3D/initHandler3()[F:\Yogurt3D\v.2.0\src\com\yogurt3d\Yogurt3D.as:173]

Can you guys please help? Thanks!

Pages: [1]