|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
load movie with actionscript
hello, i am having some issues with a movie that is being loaded. the movie loads fine, yet i can not seem to get any of the actionscript in the loaded movie working.
the actionscript first duplicates an object a few times, then uses the mouse position to dynamically create content. example: onClipEvent (load) { zSys = 100; newZ = 100; zStatus = 1500; for (i=1; i<11; i++) { duplicateMovieClip("../ bject", "object" add i, i+10); _root["object"+i].depth = (95*i)+50; } } so when this clip is loaded, it duplicates an object and adds that object to a psudo Z axis. once the object is on the axis, it uses the mouse coordinates to "fly" through the psudo 3D image. is there anyone who might be able to help me? note - this movie works fine on its own. here is where you can find it: URL Last edited by teklocust : February 3rd, 2004 at 05:28 AM. |
|
#2
|
|||
|
|||
|
Hi, try:
for (i=1; i<11; i++) { newOne = duplicateMovieClip("../ bject", "object" add i, i+10); newOne.depth = (95*i)+50; } |
|
#3
|
|||
|
|||
|
that does not work at all. that tries to create a new clip without an array, something that is very essential to this working properly.
i think i have a scope issue. i.e. i am reffering to _root, which will reffer back to the bottom of the tree, even if that bottom is a parent movie. any idea on how i would reffer to the tree structure without reffering to _root? ../../ possibly? |
|
#4
|
|||
|
|||
|
Hi, using your current syntax your accessing objects using the array format. That's fine. What I suggested lets you use a pointer that flash makes to the duplicated clip. You can still access the clip later using array syntax if you want. Anyways if your wanting to play with the tree some more:
../ = _parent so you could try: _parent["object"+i].depth = (95*i)+50; You could use eval: eval("object"+i).depth = whatever; |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > load movie with actionscript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|