Passing FlashVars to embedded SWF

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hello,

    I was wondering if there is a way to pass a set of FlashVars to a swf that is being loaded as a embedded swf?

    ie. I have a swf component from FlashXML that I want to embed inside my mmf swf. It has some flashvars that need to be passed in. What would be the best way (or extension) to do this?

    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

  • You call a js function via the MMF's "Flash Palyer" Object.
    You request the return. It's like 1+1=2 LOL

    Look at the mfa.

    If you have multiple arguments, you can make something like this in js :
    function getArgs() {
    return "arg1#arg2#arg3";
    }
    and use String tokenizer to split arg1 arg2 and arg3 without # separator ;)

    Now it's you're turn to do the magic :D Take a look at documentation too ;)

    Hope I've helped you this time ;)

    Sorry for my poor english! I'm french

    Composer/Sound Engineer/Drummer @ Becca/Systema/Spirit Erasers
    Co-Foundator/Developer of DamDeck Records

  • It's not easy like flashVars and AS3 but we can't have all the things we need. MMF give us the simplicity for everything else ;)

    Sorry for my poor english! I'm french

    Composer/Sound Engineer/Drummer @ Becca/Systema/Spirit Erasers
    Co-Foundator/Developer of DamDeck Records

  • Thanks, but maybe I am not explaining it correctly.

    I have an MMF SWF project. I am using the Flash Images Plus extension to attempt to dynamically load an external SWF to add functionality I liked from FlashXML.net The components from FlashXML.net require you to specify the settings xml file using flash vars.

    I am trying to figure out how to do this so that I can dynamically specify which settings file to use.

    Thanks for all the help so far.

    Please login to see this link.
    Please login to see this link.
    Please login to see this link.

  • SO! Now, If I have correctly understand, you can do this with javascript too!
    You have to use the SWFObject api (you can find this on google code : Please login to see this link.)
    and make a function like this :

    function callSWF(parameters){
    var so = new SWFObject("movie.swf", "mymovie", "200", "100%", "7", "#FFFFFF");
    so.addParam("quality", "high");
    so.addParam("wmode", "transparent");
    so.addParam("flashvars", parameters);
    so.write("flashcontent");
    }

    It's a succinct exemple, sorry :s
    But I don't use JavaScript so... It's just a tip to put you on the right way. :)

    I believe I've helped you this time, REALLY ! LOL

    Sorry for my poor english! I'm french

    Composer/Sound Engineer/Drummer @ Becca/Systema/Spirit Erasers
    Co-Foundator/Developer of DamDeck Records

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!