469,643 Members | 1,616 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,643 developers. It's quick & easy.

Macromedia FlashMovie Control [download-codeproject]


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.

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

2.) Programmic access to querystring variables within the object and embed
- 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.
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)
-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)

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!
Ron Vecchi

Nov 18 '05 #1
0 1776

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Supernews | last post: by
reply views Thread by Supernews | last post: by
2 posts views Thread by Santosh | last post: by
reply views Thread by Tjhopkins | last post: by
3 posts views Thread by Rodrigo Ferreira | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.