Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
|
|
mc in & out? |
Page: 1 | Reply |
Jul 30th 2002 | #61742 Report |
Member since: Jul 17th 2002 Posts: 215 |
im trying to make it so when i click a button its loads a certain mc, then when i click it again, it unloads it, or a new one in its place. i know this can be done with swfs but is it possible with mcs?
|
Reply with Quote Reply |
Jul 30th 2002 | #61821 Report |
Member since: Aug 9th 2001 Posts: 2333 |
erm...yes... If you mean an MC in the same .swf where your button is, all your have to do is create this MC you want loaded, drop it onto the main stage and in the variable tab, write 'MC'. On your button, create an action which hides the variable 'MC' until it's clicked, and vice versa. I cant think of the script now but i will post it when i get home from work if you want... |
Reply with Quote Reply |
Jul 30th 2002 | #61882 Report |
Member since: Jul 17th 2002 Posts: 215 |
that would be great, i got this movie on flashkit that kinda helped me but im still having problem with like making it flyin when u click a button, then making it fly out when u click it again.
|
Reply with Quote Reply |
Jul 30th 2002 | #61947 Report |
Member since: Aug 9th 2001 Posts: 2333 |
This isone way of doing it... -Make a new MC (or copy the one you have from an existing library), make all your animation stuff or whatever.... -Drop this MC onto the Main (scene 1) stage. In the instances tab, type in 'movie' Now, on your button you want it to appear on, put this code.. on (release) { _root.movie._visible = true; } This will make your MC appear. To make it dissapear, use the above code with 'false' instead of 'true'. There are other ways like loading in external MC's with which you actually have more ease of use..look into getting an Actionscript book (I recommend Colin Mook's Actionscript) |
Reply with Quote Reply |
Jul 31st 2002 | #62053 Report |
Member since: Jul 17th 2002 Posts: 215 |
thx a lot cybling i think ill buy that book
|
Reply with Quote Reply |
Page: 1 | Back to top |
Please login or register above to post in this forum |
© Web Media Network Limited. All rights reserved. No part of this website may be reproduced without written permission. Photoshop is a registered trademark of Adobe Inc.. TeamPhotoshop.com is not associated in any way with Adobe, nor is an offical Photoshop website. |