Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 11-27-2009, 04:31 AM   #1
Registered User
Join Date: Oct 2009
Posts: 47
Thumbs down same way

Hi (Action script 3.0)
I have taken two arrays of movie clips i.e MC1_Array and MC2_Array
Now how can i shuffle these two arrays in the same way

please help me ,no one is responding to me to get the solution...

How can i shuffle two arrays of movie clips in the in same order.
please help me with a code

Thanks in advance.
rajroy919 is offline   Reply With Quote
Old 11-27-2009, 04:49 AM   #2
Registered CS5 User
Join Date: Nov 2009
Location: Somewhere in the USA
Posts: 196

A logical way I think to do it would be to create another array the same length as the others and fill it with numbers starting at 0 and counting up(use a loop). Then shuffle this, and create two new empty arrays. Loop through the shuffled numbers array, and dump the index of both movieclip arrays into their own empty arrays, then you could set the movieclip array to equal the new arrays when finished.

Hope this helps,

Renderer10 is offline   Reply With Quote

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 09:23 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.