Warning: Constant ABSPATH already defined in /home/raypasto/www/www/wordpress/wp-config.php on line 26

Warning: Cannot modify header information - headers already sent by (output started at /home/raypasto/www/www/wordpress/wp-config.php:26) in /home/raypasto/www/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php on line 1648

Warning: Cannot modify header information - headers already sent by (output started at /home/raypasto/www/www/wordpress/wp-config.php:26) in /home/raypasto/www/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php on line 1648

Warning: Cannot modify header information - headers already sent by (output started at /home/raypasto/www/www/wordpress/wp-config.php:26) in /home/raypasto/www/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php on line 1648

Warning: Cannot modify header information - headers already sent by (output started at /home/raypasto/www/www/wordpress/wp-config.php:26) in /home/raypasto/www/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php on line 1648

Warning: Cannot modify header information - headers already sent by (output started at /home/raypasto/www/www/wordpress/wp-config.php:26) in /home/raypasto/www/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php on line 1648

Warning: Cannot modify header information - headers already sent by (output started at /home/raypasto/www/www/wordpress/wp-config.php:26) in /home/raypasto/www/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php on line 1648

Warning: Cannot modify header information - headers already sent by (output started at /home/raypasto/www/www/wordpress/wp-config.php:26) in /home/raypasto/www/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php on line 1648

Warning: Cannot modify header information - headers already sent by (output started at /home/raypasto/www/www/wordpress/wp-config.php:26) in /home/raypasto/www/www/wordpress/wp-includes/rest-api/class-wp-rest-server.php on line 1648
{"id":1345,"date":"2012-06-07T21:48:19","date_gmt":"2012-06-08T02:48:19","guid":{"rendered":"http:\/\/raypastore.com\/wordpress\/?p=1345"},"modified":"2012-06-08T08:23:32","modified_gmt":"2012-06-08T13:23:32","slug":"actionscript-3-get-rid-of-movie-clip-in-array","status":"publish","type":"post","link":"https:\/\/raypastore.com\/wordpress\/2012\/06\/actionscript-3-get-rid-of-movie-clip-in-array\/","title":{"rendered":"Actionscript 3: Get rid of movie clip in Array"},"content":{"rendered":"

In order to get rid of a movie clip in an Array after it is played, use the following code. This can go in the timeline as an enterframe or within a button function. Mine initiates when a button is clipped. In my flash file, movie clips are played at random and then once it is played, it is removed from the array so it can no longer be played:<\/p>\n

\/\/storeArray1 is my array created above this in the code. MovieClip(root) is used because
\n\/\/I call this from inside a movie clip
\nvar myNumber = Math.floor(Math.random()*MovieClip(root).storeArray1.length);
\ntrace(“myNumber “+myNumber);
\nvar activeCarton = MovieClip(root).storeArray1[myNumber];<\/p>\n

\/\/removes this element from array
\nMovieClip(root).storeArray1.splice(activeCarton,1);<\/p>\n

\/\/shows me which options are still in the array
\ntrace (MovieClip(root).storeArray1);<\/p>\n","protected":false},"excerpt":{"rendered":"

In order to get rid of a movie clip in an Array after it is played, use the following code. This can go in the timeline as an enterframe or within a button function. Mine initiates when a button is clipped. In my flash file, movie clips are played at random and then once it […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[21],"tags":[299],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/raypastore.com\/wordpress\/wp-json\/wp\/v2\/posts\/1345"}],"collection":[{"href":"https:\/\/raypastore.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raypastore.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raypastore.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raypastore.com\/wordpress\/wp-json\/wp\/v2\/comments?post=1345"}],"version-history":[{"count":2,"href":"https:\/\/raypastore.com\/wordpress\/wp-json\/wp\/v2\/posts\/1345\/revisions"}],"predecessor-version":[{"id":1354,"href":"https:\/\/raypastore.com\/wordpress\/wp-json\/wp\/v2\/posts\/1345\/revisions\/1354"}],"wp:attachment":[{"href":"https:\/\/raypastore.com\/wordpress\/wp-json\/wp\/v2\/media?parent=1345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raypastore.com\/wordpress\/wp-json\/wp\/v2\/categories?post=1345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raypastore.com\/wordpress\/wp-json\/wp\/v2\/tags?post=1345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}