ASPNetFlash Flash Variables allow you to send text, HTML markup, or other basic data into your Flash Movie quickly and easily. In this tutorial we will be defining the variables Title and URL. They will be injected into the Flash Movie by the WebControl, and Flash will read them and use them to display a link with the text Title directed to the URL.
There are several ways to set the Flash Variables, and they occur at different times during the WebControl's lifecycle.
i. Set Flash Variables Statically
You can create static Flash Variable definitions using either the Properties Panel, the Designer Smart Tags (Visual Studio 2005 users only), or by directly manipulating the ASPX tags of your WebControl instance. In the end, all three ways generate Flash Variable tags in the source code of the ASPNetFlash WebControl.
ii. Set Flash Variables Programmatically
You can add, modify or remove FlashVariables programmatically by editing the FlashVariables collection object. If your ASPNetFlash object was named Flash1, you could set or modify a named Flash Variable using the following series of code snippets:
[C#]
[Visual Basic]