|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How AsMX deals with data
Hi all,
I would really thank if someone explained us a bit how actionscript mx deals with data. I mean, when it makes hardcopies of objects and when it only passes references to it. For example: var xml = new XML(); var xml1 = xml; Now, xml1 is a reference to xml or another xml object? If I do : var xml = new XML(); var xml1 = new XML(); xml1=xml; Now xml1 is a hardcopy of xml? I hope so. Finally, when saying: var arr = new Array(); arr.push(xml) //Or wahtever How does it fill the array? with references to or with objects? Thanks a lot. |
|
#2
|
|||
|
|||
|
its easier to think of = as 'gets' and == as 'equals' .
so xml1 gets the value of xml in the first code, xml1 is only a copy of xml if you do =, and it will only 'copy' xml at that instant, so if you change xml after that, xml1 will not be updated unless its a looped clause. ...So basically, i think its right. [Dont know about the last bit. ] |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > How AsMX deals with data |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|