Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
mmthm #1
how to flatten an array splice?
var foo:Array = [1, 2, 3 ];
var bar:Array = [9,10 ];
foo.splice(2, 0, bar) == [1,2,[9,10],3]
How can i splice in bar so i get a single flat result [1,2,9,10,3]?
I know i could loop over bar and splice in each individual member into foo,
but is there a more efficient option?
Thank you.
mmthm Guest
-
Array.splice is stopping the loop?
The code that follows should loop through the 'AllTopicsGroups' array checking for any item which has the 'group_id' of '21'. It should delete these... -
Splice problem
My problem is that I am splicing an array and then echoing the array <?php $input = array("red", "green", "blue", "yellow");... -
[PHP] Splice problem
My problem is that I am splicing an array and then echoing the array <?php $input = array("red", "green", "blue", "yellow"); ... -
Flatten Layers/Flatten Selections - why?
In looking at a couple or tutorials in Fireworks they say to flatten layers or flatten selections. I can't find much explanation in FW help... -
note 33609 added to function.array-splice
I couldn't get array_splice() to insert into a multidimensional array, so I cribbed this from the notes for array_push() (a thousand thanks to jhall... -
Sreenivas R #2
Re: how to flatten an array splice?
I don't think there is any efficient option.
Sreenivas R Guest



Reply With Quote

