MovieAssetParticleMaterial
The third and last particle material that Papervision3D has in store is MovieAssetParticleMaterial. The name is a bit misleading as it suggests that this material works only with movie clip assets as a source. However, in Flex Builder and Flash Builder, you can also directly use a bitmap, without putting it into a movie clip first. We will see how that works later in this section.
Note
In Chapter 4, we discussed BitmapAssetMaterial and MovieAssetMaterial, which are classes that work with movie clip and bitmap assets respectively. However, these classes do not allow for embedding a bitmap in Flex Builder or Flash Builder, like MovieAssetParticleMaterial does.
Compared to BitmapParticleMaterial, the MovieAssetParticleMaterial class enables you to do two more things:
Use (animated) movie clips as the source for the material
Add interactivity to particles
Flash takes another approach than Flex Builder and Flash Builder in handling this material. In the following example...