Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-25-2001, 03:26 PM   #1
rhapsody
Registered User
 
Join Date: Apr 2001
Posts: 12
Send a message via ICQ to rhapsody
Unhappy

Hi,

I've got a scene where little planets
turn around a sun.

I've made an script that calculate coordonates and it's working fine.

you can look at the swf : http://a.bricout.free.fr/solar_system2.swf

But how can i make the planet go behind the sun ?

Maybe i can switch 2 layers but how ?

Or maybe i can move my object (planet) from one layer
to another behind the sun but how ?

thx
rhapsody is offline   Reply With Quote
Old 06-25-2001, 03:53 PM   #2
rhapsody
Registered User
 
Join Date: Apr 2001
Posts: 12
Send a message via ICQ to rhapsody
Default ok

i've found the answer :

_level0.planete1.swapDepths( _level0.sun )


thx for the swap depths tutorial (http://www.actionscripts.org/tutorials/intermediate/swap_depths/index.shtml)

a+
rhapsody is offline   Reply With Quote
Old 06-25-2001, 03:56 PM   #3
Strok
Registered User
 
Join Date: Nov 2000
Location: Toronto Canada
Posts: 798
Send a message via ICQ to Strok
Default

or you can use just a mask
i made an example for you:

http://www.actionscripts.org/help/_stuff/mask_beh.html
http://www.actionscripts.org/help/_stuff/mask_beh.fla
__________________
My photography: http://strok.photosight.com
Strok is offline   Reply With Quote
Old 06-25-2001, 04:16 PM   #4
rhapsody
Registered User
 
Join Date: Apr 2001
Posts: 12
Send a message via ICQ to rhapsody
Default thx

i'll try the 2 methods.

thanx a lot for your help and your time.


rhapsody
france
rhapsody 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
Database simulated with arrays on a cd-rom lecasn5 Components 61 09-07-2004 11:40 AM
enterframe and load and objects, oh my! dice ActionScript 1.0 (and below) 13 07-18-2003 11:07 AM
" reset " MC - put MC back into the loop magi ActionScript 1.0 (and below) 0 05-19-2003 06:42 PM
Pb with MASK xxlm Other Flash General Questions 5 02-28-2002 11:23 AM


All times are GMT. The time now is 07:04 AM.

///
Follow actionscriptorg on Twitter

 


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