Hello Everyone,
We'll be using this post to host smaller, more targeted demos covering a range of topics. First up, is our Layering Demo:
Layering (Flash) Demo
====
This demo illustrates how to place swfs on different levels or layers which specifies a rendering order. Movies are rendered from the lowest to the
highest layer. This implies that swf's created with a higher layer number will obscure those with a lower layer number. Layers can be modified during the lifetime of a movie. Modifying a movie's layer results in a corresponding change in that movie's rendering order.
This demo creates multiple instances of the LayeringMovieExample1.swf with each instance assigned a layer one greater than the layer before. The user can click on the "Add Movie/Remove Movie" buttons to add or remove movies. Clicking on a movie will swap its layer with that of the topmost movie. The demo also shows examples of setting the movie position and color transform through Scaleform's Direct Access API that allows you to change properties of Flash objects directly from C#
Useful API functions used in the layering system are:
SFMovie::Get/SetDepth: Used to get/set depth for a movie SFMovie::SwapDepth(mv): Swaps depth for the current movie with that of mv SFManager::GetTopMovie(): Returns a list of movies with depth = top movie depth SFManager::GetBottomMovies(): Returns a list of movies with depth = bottom movie depth SFManager::GetNextMovie(mv): Returns the next movie (in depth order) to mv.
https://autodesk.box.com/s/18k8pk1e5g7bladq036c
====
Please note that this Unity Package only contains a debug PC dll.
Thanks,
-JP
Can you create some more demos please
we are having a hard time to implement scaleform in our work with only looking at the demo inside the spaceship
Cheers Clarence
Here's how to create a very simple ScaleForm project:
http://members.iinet.net.au/~carllooper/scaleform/ScaleFormSimpleTutorial.pdf
Otherwise attached