Hi all! I’m new to the boards here, looks like a great community.
I used to do a lot of flash work but it’s been quite a while. I’ve never done much with video inside of flash.
My issue is very simple. I have a video imported to the stage, skinned, and published. I can set the video to autoPlay by using:
themovie.autoPlay = true;
or
themovie.autoPlay = false;
However what I am trying to do is pass in a FlashVars value of “true” or “false” and have it either autoplay or not autoplay the video. I’ve tried lots of variations on the below code but can’t get it to work. Everything in the file is in the first frame on the stage, including this actionscript.
var passedInValue:String;
var playvid:Boolean;
if(passedInValue == "true"){
playvid = true;
}else{
playvid = false;
}
themovie.autoPlay = playvid;
Any help you guys could lend would be much appreciated! Thanks!