View Single Post

  #19 (permalink)  
Old 29-08-08, 00:13
drudy drudy is offline
Junior Member
 
Join Date: Aug 2008
Location: Jakarta, Indonesia
Posts: 4
Rep Power: 0
drudy is on a distinguished road
Re: Passing variables from HTML to Flash CS3

Just simple like this ...

var obj:Object=LoaderInfo(root.loaderInfo).parameters;
text_object1.text = String(obj['variable1']); // get value from variable named as 'variable1'
text_object2.text = String(obj['variable2']); // get value from variable named as 'variable2'
text_object3.text = String(obj['variable3']); // get value from variable named as 'variable3'

Thank's.
Reply With Quote