Priyanka Rane

January 12, 2010

VectorVision and Papervision 3D example source Code Error 1119

There is an extension of Papervision 3D called VectorVision that allows for the creation of vector based objects within PV3D. VectorVision was developed by Mark Barcinski & Adrien Jeanjean. The vectorvision source code contains good examples. but when you try to compile these examples you will win compile errors:

1119: Access of possibly undefined property screenDepth through a reference with static type org.papervision3d.core.render.command:RenderVectorShape.

1119: Access of possibly undefined property screenDepth through a reference with static type org.papervision3d.core.render.command:RenderVectorShape.

It is being caused in the VectorShape3D class which you can trace to org\papervision3d\objects\special package. To fix the issue, open the VectorShape3D class and change the two instances of the following line:

renderCommand.screenDepth = this.screenZ;
should read
renderCommand.screenZ = this.screenZ;
and recompile the Flex project. You wont see those compile errors.

October 12, 2009

Why Use Flex?

Filed under: Flex — Priyanka Rane @ 6:37 am
Tags: , , , ,

If you’re considering building a RIA, you have a few choices of technology, including Flex, Ajax, and Microsoft Silverlight. If you look at these options objectively, the development effort required for each and the resulting user experience is roughly the same. One of the benefits of Flex is its reach — the Adobe Flash Player, upon which Flex applications run, is already installed on about a billion computers wordwide!

Of course, Ajax also uses technologies that are installed on almost every computer in the world — JavaScript, XHTML, and CSS. One of the downfalls of Ajax, however, is that cross-browser compatibility can be difficult to achieve. What might work in one browser for example, Firefox might not work in another such as Internet Explorer, so the debugging process has the potential to become difficult and long-winded.

Microsoft Silverlight, on the other hand, is similar to Flex in that it runs on a browser plugin. Silverlight, however, has yet to reach the installed userbase of the Flash player.

If you’re just starting out with building RIAs, you should definitely try all of them to see which one you like best and find easiest to work with — each of Flex, Silverlight and Ajax has its advantages and disadvantages. In my opinion, Flex is definitely the best RIA development technology available. Additionally, if you’re a fan of the Adobe Creative Suite, it’s good to know that many of these tools (Flash, Photoshop, Illustrator, Fireworks and so on) have Flex component integration built into them.

Create a free website or blog at WordPress.com.