Hey folks. I have this: var endDate:Date = new Date(2010,7,20); Code (markup): I need to change this to be able to set it like this: <param name="FlashVars" value="year=2010&date=7&day=20"> Code (markup): How can I do this? How can I change my current line so it reads the values from my flashvars?
use swfObject to load your flash files then you'll easily have the ability to change parameters at load. http://code.google.com/p/swfobject/
Hey, we can pass the flashvars using the default method as you posted already. You have to change the code like this, (I assumes that the following code is in the stage) var endDateate = new Date(((this.year == undefined)?2010:this.year,((this.date == undefined)?7:this.date,((this.day== undefined)?20:this.day); Its very simple in a single line using ternary operator. Let me know if it doesn't help you. I am always here... Regards John