PDA

Click to See Complete Forum and Search --> : Changing source on a flash file


bob323
Dec 6th, 2002, 06:18 PM
I have a flash swf file displayed on an asp.net page, when a user clicks on a button I want to be able to change this flash file to another flash file. Any ideas?

Lord_Rat
Dec 6th, 2002, 09:41 PM
Place it in a panel.

On the click of the button, clear the controls of the Panel.

It's similar to pnlMyPanel.Controls.Clear()

Then, add a new literal control:

pnlMyPanel.Controls.Add(new LiteralControl("the html code for the new flash here"))