runnig SWF file on asp.net
-
how can play macromedia flash file in asp.net pages randomly? can use adrotator for this work? Regards' Amir jalaly
-
how can play macromedia flash file in asp.net pages randomly? can use adrotator for this work? Regards' Amir jalaly
The
AdRotator
has a specific, well-documented XML file schema that wouldn't work with Flash files. The concept is similar, though, just that instead of outputtingIMG
tags you'd need to outputOBJECT
tags with the right attributes (like the CLSID of the Macromedia Flash player, the codebase, and the src as aPARAM
). This wouldn't be too difficult to implement, but if you're interested, download .NET Reflector[^] and see how theAdRotator
works, duplicating the code for the most part, except of course for Flash-specific settings in the XML file (or whatever you want to use - I would recommend using the provider pattern) and the output HTML. You should ask this on the ASP.NET forum, though. Besides being the proper forum for this question (since it is regarding ASP.NET, not a specific language), someone might've already done this. You could also try searching the CodeProject articles as well.Microsoft MVP, Visual C# My Articles