Skip to main content
Removed tag from title
Source Link
General Grievance
  • 5.1k
  • 39
  • 40
  • 60

is Is there a way to use attachMovie in different layers? (ActionScript 2)

so, my question is, imI'm currently writing a code that when executed, it'll attach lots of movieClips into the _root property, what i want to know, is if. Is there is a way to choose which layer these movieClips are attached into.?

perFor example:

_visible = false; var entitySpawn; var ID = 10; function spawnEntity(TYPE, X, Y) { entitySpawn = _root.attachMovie(TYPE, TYPE+"_"+ID, ID); entitySpawn._x = X; entitySpawn._y = Y; ID++; } 

iI know that the variable ID gives it the depth, but is there a way to chose between the layers itself, so that certain movieClips are above other, no matter their depth?

is there a way to use attachMovie in different layers? (ActionScript 2)

so, my question is, im currently writing a code that when executed, it'll attach lots of movieClips into the _root property, what i want to know, is if there is a way to choose which layer these movieClips are attached into.

per example:

_visible = false; var entitySpawn; var ID = 10; function spawnEntity(TYPE, X, Y) { entitySpawn = _root.attachMovie(TYPE, TYPE+"_"+ID, ID); entitySpawn._x = X; entitySpawn._y = Y; ID++; } 

i know that the variable ID gives it the depth, but is there a way to chose between the layers itself, so that certain movieClips are above other, no matter their depth?

Is there a way to use attachMovie in different layers?

I'm currently writing a code that when executed, it'll attach lots of movieClips into the _root property. Is there is a way to choose which layer these movieClips are attached into?

For example:

_visible = false; var entitySpawn; var ID = 10; function spawnEntity(TYPE, X, Y) { entitySpawn = _root.attachMovie(TYPE, TYPE+"_"+ID, ID); entitySpawn._x = X; entitySpawn._y = Y; ID++; } 

I know that the variable ID gives it the depth, but is there a way to chose between the layers itself, so that certain movieClips are above other, no matter their depth?

Source Link

is there a way to use attachMovie in different layers? (ActionScript 2)

so, my question is, im currently writing a code that when executed, it'll attach lots of movieClips into the _root property, what i want to know, is if there is a way to choose which layer these movieClips are attached into.

per example:

_visible = false; var entitySpawn; var ID = 10; function spawnEntity(TYPE, X, Y) { entitySpawn = _root.attachMovie(TYPE, TYPE+"_"+ID, ID); entitySpawn._x = X; entitySpawn._y = Y; ID++; } 

i know that the variable ID gives it the depth, but is there a way to chose between the layers itself, so that certain movieClips are above other, no matter their depth?