Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 3rd, 2004, 05:09 AM
teklocust teklocust is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: vancouver, bc
Posts: 2 teklocust User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old February 3rd, 2004, 07:55 AM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,584 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 7835 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 5 h 42 m 29 sec
Reputation Power: 534
Facebook MySpace
Hi, try:

for (i=1; i<11; i++)
{
newOne = duplicateMovieClip("../ bject", "object" add i, i+10);
newOne.depth = (95*i)+50;
}
__________________
-Tann

-Vote for your favorite ActionScript editor here.

Reply With Quote
  #3  
Old February 3rd, 2004, 12:59 PM
teklocust teklocust is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: vancouver, bc
Posts: 2 teklocust User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #4  
Old February 3rd, 2004, 01:21 PM
Tann San Tann San is offline
Gotta get to the next screen..
Click here for more information.
 
Join Date: Nov 2003
Location: Legion of Dynamic Discord
Posts: 4,584 Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)Tann San User rank is Colonel (50000 - 60000 Reputation Level)  Folding Points: 7835 Folding Title: Novice Folder
Time spent in forums: 3 Weeks 5 h 42 m 29 sec
Reputation Power: 534
Facebook MySpace
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;

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > load movie with actionscript


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway