Quantcast
Channel: Adobe Community : All Content - Adobe Animate CC - General
Viewing all articles
Browse latest Browse all 13519

Flash as2 to as3 attachMovie code problem

$
0
0

Hi guys,

 

I am making a game in which I am creating several random placed movie clips directly from the library to the stage.

 

I am a good as3 developer and can understand most as3 concepts except for arrays. But I cannot find a workaround for the attachMovie()

 

The code which causes the problem is as follows.(I have excluded other pieces of code)



// object is the name of my movie clip

var objectNumTracker = 1;

var depth = 555;

 

current_object = attachMovie ("object", "object" + objectNumTracker, depth)

objectNumTracker ++;

depth ++;


Viewing all articles
Browse latest Browse all 13519

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>