header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
bumples15
Points:50
Posts:0
Answered

7/17/2011 6:46:59 AM

Title: coding for a game


I am trying to build a game where children make a sandwich. using movie clips and drag and drop, I can not figure out how to make the objects go to the top. right now they are going accourding to where they are on timeline. I have searched tutorials and no luck. can you help. should I make them buttons.
Thank you
Jennifer



1
Friend
Points: 710
Posts:0
Accepted Answer
7/17/2011 7:21:53 AM



you an use the swapDepth function in flash to bring the clicked object to top .

See this tutorial
http://www.kirupa.com/developer/actionscript/swapdepth.htm

2
Wilbur
Points: 510
Posts:0
Accepted Answer
7/17/2011 7:24:10 AM



for actionScript 2.0 you can use

// this will swap the level of movie1 with movie2
movie1.swapDepth("movie2");

for actionScript 3.0 you can use

swapChildren(movie1,movie2)




Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 3+1 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions