PDA

View Full Version : Flashvars help


revanger
08-06-2009, 11:58 PM
Hello.
I registered here to post a very newbie problem.
So, i did a site in php/html/css but is like a tube site and i want my personal flash player. Well, i tought that i can make one in adobe flash, cs3 btw. So, i watched a few tutorials, and it's very easy with action script 2.
So, the problem is that i don't want to play just one video, video playing it's dynamic, so i have to load him from html. So i read in help flashvars, but i'm a real newbie into this, and i don't have time to actually learn actionscript.
So, if I write after video[for example] flashplayer.swf?movie=nameofthemovie how can i load him in action script. If i use what help says about flashvars
this.createTextField("myTxt", 100, 0, 0, 100, 20);
myTxt.autoSize = "left";
if (_level10.myURL == undefined) {
myTxt.text = "myURL is not defined";
} else {
myTxt.text = _level10.myURL;
}

How can i define that the code actually work.
I'll apreciate a tip or a tutorial. I'm not common to actionscript type of language, i prefer c, php. I'll get to actionscript a bit later, thanks.

eggnogg
08-09-2009, 03:52 AM
in the html swf's parameters define a param called FlashVars and the value can be any usefull data, so i guess u can get a php variable's value (using post) and get the info from the url to the flashvars
inside flash, simply trace the name of the var u used in the param value, alwyas use _root

_root.VarNameUsedInFlashVarsOnHtml