View Full Version : How to layers work in flash??
zoolander
12-21-2007, 11:20 PM
I have used action script to draw a shape but I have also made a button using the paint tools, these two are on two different layers. My question is how do the layers work because I cannot get the button to display on top of the shape it is behind it because if i click where the button should be it go to the next scene.
I have tried moving the button layer into every postion in the flash movie but still the shape covers it, can anybody help with this?
atomic
12-22-2007, 02:15 AM
Attach your .fla.
zoolander
12-22-2007, 02:54 AM
before i attach my file is there any ideas you may as to why it is not working? my actionscript is not ever neat at the moment i think it would be quite annoying for anyone but me to read lol
atomic
12-22-2007, 05:27 AM
Without seeing anything, I'm assuming it's a question of depths and not layers' order...
I'll provide an email address through a PM, if you want to mail it to me, rather than publicly posting it...
Zip it up, and make sure it's not in a CS3 format, if you happen to be on CS3.
zoolander
12-22-2007, 02:55 PM
Thanks I have just sent it to you in a email for. It could be a depth problem has my numbers are just randomly typed as i was doing the drawing in another file and then pasting them into my finished file.
atomic
12-22-2007, 03:10 PM
Haven't I already answered you on a similar previously posted problem?
Same kind of drawings with the moon etc...?
zoolander
12-22-2007, 03:16 PM
I have just looked at all my previous posts and cannot see your name unless you have another profile? But i do not think i had a problem with the moon, what was your answer to that question if you can remember might be worth a shot
atomic
12-22-2007, 03:45 PM
Probably another user... But this is quite similar... Same setup (different drawings but...) buildings, moon, car etc...
Is this some school project?
The answer to the other user, if it wasn't you, was to remove all created movie clips, when the Home button was pressed.
I'll search for that other thread...
zoolander
12-22-2007, 03:54 PM
Thank you, how would i remove movie clips when home is pressed? would this solve the problem has to why certain shapes are not showing up?
atomic
12-22-2007, 04:41 PM
Limit your depths number to below 30,000...
Guess those 474857 dephts don't work right?
zoolander
12-22-2007, 04:56 PM
I do not know if that is it becuase if you look i have shape with the number 159745647 and that one shows fine. What about the button how do i get it to display ontop of the drawing?
zoolander
12-22-2007, 07:01 PM
ok i have gone through and chnaged all the depths that seems to half solve it as some of the layers did not display are now showing but the button is still not showing any ideas~?
atomic
12-22-2007, 07:16 PM
I've only set it up to clear the clips on the Home button press in the Main scene... You'll have to add the removeAllClips(_root); action line to the Credits button, or the Home button in the Credits scene yourself...
I've defined the removeAllClips function on frame 40 in the Introduction scene...
And here's the thread I was talking about... It's another user, but same project...
http://www.actionscript.org/forums/showthread.php3?t=155250
zoolander
12-25-2007, 05:38 PM
Thank you that worked fine. Merry christmas!
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.