출처: http://blog.naver.com/realgoldhwan/120030539013

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Create a new LoadVars object
var my_lv:LoadVars = new LoadVars();
 
//Convert the variable string to properties
my_lv.decode(name=Mort&score=250000);
trace(my_lv.toString());
 
// Iterate over properties in my_lv
for (var prop in my_lv) {
        trace(prop+” -> “+my_lv[prop]);
}
 
// OUTPUT
score=250000&name=Mort
score -> 250000
name -> Mort

  One Response to “loadVars에 변수와 값 분리해서 넣어주는.. decode”

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

   
© 2011 Hangun's World - Blog Suffusion theme by Sayontan Sinha