SunQuest
           Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 7th, 2003, 04:08 AM
ygdrasyl ygdrasyl is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Location: BCN
Posts: 84 ygdrasyl User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 1 m 4 sec
Reputation Power: 7
Send a message via Yahoo to ygdrasyl
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.

Reply With Quote
  #2  
Old August 7th, 2003, 05:00 AM
mej mej is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 17 mej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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. ]

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > How AsMX deals with data


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway