Announcements
The Scaleform forum is now read-only. Please head to the Gamedev site for product support.
Scaleform Forum (Read Only)
Scaleform enables developers to leverage the power of the Adobe® Flash® tool set to create powerful user interface environments for video games.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 3
jpratliff
1591 Views, 2 Replies

Demos

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

2 REPLIES 2
Message 2 of 3
clarencedadson
in reply to: jpratliff

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

Message 3 of 3
CarlLooper
in reply to: clarencedadson

Here's how to create a very simple ScaleForm project:

 

http://members.iinet.net.au/~carllooper/scaleform/ScaleFormSimpleTutorial.pdf

 

Otherwise attached

 

 

 

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report