Macromedia Flash & Visual Studio 2005

Discussion in 'ASP.NET 2.0' started by Ethan, Jun 5, 2006.

  1. Is anyoneloading .swf files from within visual studio 2005? I just want to know what people think is the safest and most efficient way to insert this file type (flash).</o:p>
    </o:p>
    I found a .dll on the internet called flashcontrol.dll and I wanted see if other people are using this dll and is it necessary.</o:p>
    </o:p>
    I appreciate the help.</o:p>




    Richard C.
    [email protected]
    www.chslife.com
     
  2. I've tried flashcontrol.dll. It was a really easy way to insert a flash movie into an asp.net webpage.However, my project required that I transfer information in and out of the movie, and I couldn't get that to work with flashcontrol.

    So, if your only purpose is to allow users to view and interact with Flash movies, then I think this control is great.

    But, if you plan on moving data from the movie, to the webpage, or vice versa, then just add the movie to your page the old-fashioned way.

    This control is completely unnecessary, but very handy for some limited uses.
     
  3. It's been 8 years since i've written code so my idea of old fashion is working in winodw 3.1 client server environment and before that is was a mainframe [​IMG]


    So if you would be kind enough to tell me how to insert flash the old fashion way I would greatly appreciate the help as this is all new to me.





    Rich




    Richard C.
    [email protected]
    www.chslife.com
     
  4. Hi!


    First, let me recommend a terrific Flash 8 ActionScript book: http://www.amazon.com/gp/product/047177197X/sr=8-1/qid=1149612894/ref=pd_bbs_1/002-4779352-2242458?%5Fencoding=UTF8


    Here's a short sample of a movie inserted into a .aspx page. Notice that the <object> tag is AFTER the </form> tag. The <object> tag handles the necessary settings for Internet Explorer, the <embed> tag handles the necessary settings for Netscape/Firefox.


    </form>


    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="400" id="yourinstancenamehere" align="middle">


    <param name="allowScriptAccess" value="always" />


    <param name="movie" value="http://www.yourwebsite.com/yourflashmovie.swf" />


    <param name="quality" value="high" />


    <param name="bgcolor" value="#ffffff" />


    <embed src="http://www.yourwebsite.com/yourflashmovie.swf" width="550" height="400" name="yourinstancenamehere" swLiveConnect="true" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />


    </object>


    </body>


    </html>





    Here's an example of how you can access this instance from JavaScript:


    //set a variable named flash


    var flash


    function initialize() {


    if(navigator.appName.indexOf("Microsoft") != -1) {


    //if the browser is IE, then set variable to the id attribute of the <OBJECT> tag.


    flash = window.yourinstancenamehere;


    }


    else {


    //if the browser is not IE, then set variable to the name attribute of the <EMBED> tag


    flash = window.document.yourinstancenamehere;


    }


    }


    Using the flash variable, you can access the ActionScript functions in your Flash movie. Hope this helps!
     
  5. Hi,

    Thanks for your time and help and suggestion on a good book. I really appreciate the help.
    [​IMG]
     

Share This Page