Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > ActionScript Forums Group > Simple Stuff (Newbies)

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-06-2001, 11:04 PM   #1
bahrami
Senior Member
 
Join Date: Feb 2001
Location: sweden
Posts: 194
Default

I'm tryin to duplicate a movie. but it only seems to duplicate on top of the _root, how do i load a movie into a further back layer?
I heard about the "swapDepth()" action . But I really don't know how to use it...
bahrami is offline   Reply With Quote
Old 03-07-2001, 03:11 AM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

We have a tutorial on swapDepths()
http://www.actionscripts.org/tutoria...hs/index.shtml

It's pretty easy really.

But I've just used a simple loop to show that you can indeeed duplicate below the current clip:

for (i=0; i<10; i++) {
duplicateMovieClip ("a", "a"+i, (-1)*i);
_root["a"+i]._x = i*50;
_root["a"+i]._alpha = "20";
}

If you run that (and make an MC with an instance name called 'a') you will see that the duplicates go below the orriginal. So just set the target level to a negative number. Like -1.

Cheers

Jesse
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder
Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 03-07-2001, 09:09 AM   #3
bahrami
Senior Member
 
Join Date: Feb 2001
Location: sweden
Posts: 194
Talking THANX

Thank you Jesse...Thanx for the tutorial that I kind of (indirect) requested from you...It helped me a lot...

I just want to say thanks to all of the guys here who give us newbies the help we need.
Sometimes I forget to show appreciation.


bahrami is offline   Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplicate movie to new target path? jasonoda ActionScript 1.0 (and below) 1 08-17-2006 04:15 PM
Duplicate Movie Clips Shoe ButtBack ActionScript 2.0 4 07-10-2006 03:39 PM
Detecting collision of 2 movie clips problem talie ActionScript 2.0 0 07-22-2005 07:07 AM
assign different variables to duplicate movie toke ActionScript 1.0 (and below) 2 10-29-2002 09:28 PM


All times are GMT. The time now is 12:23 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.