3 msgCan't embed Russian Fonts
3 msgThe issue of 'parent' in AS3
1 msgFlash Player 10 BETA
3 msgMultiple query strings in a single URL
2 msghi.. need help asap.. newbie here.. hehe
2 msgAMFPHP classes AS3
1 msgJob Posting - YouTube Flash Engineer
3 msgcentering content on stage / resizable stage
9 msgBest way...
4 msgRE: secure FLV linking
4 msgalpha not working on mc with textfield
2 msgRe: Loading strategies
3 msgflash video that looks like it used lasso tool
3 msgLinked sounds in library have to be in root SWF...
2 msgrotateAroundExternalPoint

merging data problem
\ Anthony Cintron (11 May 2008)
. \ Bernard Visscher (11 May 2008)
. . \ Bernard Visscher (12 May 2008)
. \ Paul Andrews (11 May 2008)

1 msgRe: Flashcoders Digest, Vol 8, Issue 11
5 msgAutomatically Declare Stage Instances and inher...
5 msgas3 namespace question
5 msgData merging problem
Subject:merging data problem
Group:Flashcoders
From:Anthony Cintron
Date:11 May 2008


 
Thanks Jason and Juan,
I tested it out and the splicing works really well. One thing I'm noticing
is when I uncomment and add another index, I get a compile error. I messed
with the splice index number, but received unsuccessful results. Any
thoughts on this?

var workData:Array = new Array();

//workData.push({pm:"Bob", resource:"Anthony", client:"Microsoft",
role:"Developer", job:"XXX-XXXX", totalHours:40});
workData.push({pm:"Dan", resource:"Anthony", client:"Microsoft",
role:"Developer", job:"XXX-XXXX", totalHours:50});
workData.push({pm:"Bob", resource:"Anthony", client:"Microsoft",
role:"Developer", job:"XXX-XXXX", totalHours:30});
workData.push({pm:"Dan", resource:"Anthony", client:"Microsoft",
role:"Developer", job:"XXX-XXXX", totalHours:50});
trace(workData);
// for each item in the array
for ( var i = workData.length - 1; i >= 0; i-- ){
// compare to all other array elements
for ( var j = workData.length - 1; j >= 0; j-- )
{
if ( workData[i].pm == workData[j].pm && i != j)
{
for ( var props in workData[i] )
{
workData[i][props] = workData[j][props];
}
trace("index: " + j
);
workData.splice(j, 1);
}
}
}
trace(workData);
_______________________________________________
Flashcoders mailing list
Flashcoders
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


© 2004-2008 readlist.com