By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,354 Members | 1,042 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,354 IT Pros & Developers. It's quick & easy.

Macromedia FlashMovie Control [download-codeproject]

P: n/a
Hello,

Through using this and many other Microsoft dotnet newsgroups I have been
pointed towards many helpful open source projects and articles that have
helped a great deal in my studies as well as projects.
Recently I have been using a lot of Macromedia Flash Movies within my
asp.net pages, as many people have.

For those familiar with Flash macromedia can publish the html output for you
so you only need to copy/paste to your webpage. Easy... Except when you
want to use ClientScriptDetection or display content to the browser only if
the flash plug-in hasn't been installed or enabled on the client. And what
if JavaScript wasn't enabled on the browser and you are using
ClientScriptDetection to ensure the proper plug-in version is present on the
client. For those familiar with this, you might remember having to write
your html that is going to be displayed (typically tying to make it look
like the flash movie itself) to the browser in case JavaScript or the
required plug-in wasn't enabled on the client. And then insert it into an
HTML <NoScript> element or even more painful, wrap the content up within
JavaScript document.write statements and insert it into the client script
else block within the version detection script.

So, to help this long process and take advantage of VS.NET RAD
development I created a Custom Control to handle this.

FEATURES
---------------------
1.) Eliminates clunky client script version detection.
- Control completely mimics the rendered content from the Macromedia
studio with it's client side script.
- Control automatically outputs client script when the output type is
set to ClientScriptDetection.
- Use placeholders to add content to the NoScript & NoFlash content
blocks that will render appropriate JavaScript automatically (no more need
to type in the document.write statements manually!)
- Specify the exact version of flash that is required for version
detection.

2.) Programmic access to querystring variables within the object and embed
tags.
- Easily add variables pragmatically to a NameValueCollection that will
be appended to the movie call when the control renders.

3.) Completely mimics the exact outputs that Macromedia does when publishing
(i.e.. client script and object,embed tags)
- Currently up-to-date with Macromedia 2004

4.) Wraps up all properties to flash within the control (i.e., scale,
windowmode, width,height,salign ...etc) that will render within the
object/embed tags.
NOTES
-------------
I have included all of the current output methods but there are some that
are not fully supported in this Control version. In the case of them not
being supported they will default to FlashOnly output method. I included
these for easier transition for newer versions that will support these. I
believed I covered probably 95% of the actual usage of flash movies with the
currently supported output methods.

1.) Output method support
-Client Script version detection (you specify the version)
-FlashOnly
-SWF Version detection (new with 2004)
-PocketPC (not supported defaults to FlashOnly)
-AICCTracking (not supported defaults to FlashOnly)
-SCORMTracking (not supported defaults to FlashOnly)
-FSCommand (not supported defaults to FlashOnly)
- NamedAnchors (not supported defaults to FlashOnly)
DOWNLOAD
---------------------

Please, any suggestions or questions regarding the control please email me.
If you choose to download this control from code project, all I ask is that
you give me a rating based on your views of the control (located at the
bottom of the code project page).

Thanks for the help on the newsgroups, I hope this control helps you!
http://www.codeproject.com/aspnet/As...vieControl.asp
--
Ron Vecchi


Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.