Member Offer
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

A newbie flash question..

Discussion in 'Animation, Motion Design & Film Making' started by bamme, Nov 26, 2009.

  1. bamme

    bamme Senior Member

    Hi people - first post in this section :) I have experience of javascript/ jquery/html/css but no flash, so excuse the newbie-ness.

    Ive been trying to include an swf with buttons, that plays .flv videos, into this html page:

    (feel free to view source)

    I am using swfobject (deconcept You’ve got your good thing, and I’ve got mine SWFObject: Javascript Flash Player detection and embed script)
    my code is below:

    Im having trouble because the swf needs other swf and flv files, and neither are in the same directory as the html page, nor is the main swf - the swf is just not showing up.

    i dont want to duplicate the swf and its corresponding flash files if theyre already hosted once by this client - the swf i want to include is at - but this relies on lots of other swfs and flvs to function. does anyone have a solution, or is the problem actually something else?

    A copy the swf files and all associated files can be downloaded at:

    Would be very very grateful of some help here [​IMG]

  2. dbushell

    dbushell Member

    Hi Emma,

    Looks like you're using an older version of SWF Object, head over to swfobject - Project Hosting on Google Code and you can do this with 2.2:

    <script type="text/javascript">
    var flashvars = {
    	other_swf: "http://www.",
    	other_flv: "" 
    var params = { quality: "high", wmode: "transparent" };
    var attributes = {};
    swfobject.embedSWF("", "video", "300", "300", "9.0.0", null, flashvars, params, attributes);
    Then in Flash you can load the flashvars dynamically. In ActionScript 3 you do (AS2 will be slightly different):

    var other_swf:String = loaderInfo.parameters.other_swf;
    With this technique you can use the same SWF to load different content. Hope that solves the problem!
  3. bamme

    bamme Senior Member

    wow thanks very much for the help but im afraid im a bit confused about it.. im pretty sure i did download version 2 as i checked the download history and saw - i wasnt sure how to check for sure, so i downloaded it again and just pasted swfobject.js into my js directory.

    the code i currently have is:

    <script type="text/javascript">
    // <![CDATA[

    var so = new SWFObject("", "video", "300", "300", "9", "#FF6600");
    so.addParam("quality", "high");
    so.addParam("wmode", "transparent");

    // ]]>

    and simply the inclusion of the external js file in my head section - it doesnt really match any part you wrote above so im not sure where to paste the snippet in, exactly what other flvs and swfs within this swf are linked to/needed, and i definitely dont know how to add the actionscript it poss you show me? the flash files are above in the zip i attached to my orginal post.

    sorry i am a complete newbie with flash..:(


Share This Page