all groups > flash (macromedia) > june 2007 >
You're in the

flash (macromedia)

group:

multiple buttons and movie clips


Re: multiple buttons and movie clips Kree8R
6/30/2007 8:46:10 PM
flash (macromedia):
[quoted text, click to view]

Your best bet would be to use a "container" (or empty) movieclip that you
target your loading into... loading "number2.swf" into "container_mc" where
"number1.swf" is currently located will unload it before loading
"number2.swf"... No need to involve numerous additional sets of
frames/layers for handling each button.


multiple buttons and movie clips dpteacher
6/30/2007 11:53:02 PM
First of all, we are beginners, although our client doesn't seem to care... We
have learned what we know so far from lynda.com, but either have very short
memories or need more. Any other tutorial/book suggestions would be
appreciated. (No problem doing this in Director, just can't do it in Flash.)

We are using CS3, but action script 2.0.

Top Layer, frame 1: Rollover button (up is alpha 0)
Second Layer, frame 1: Intro movie clip (embedded 3D animation). Inside movie
clip, on separate layer, we have put stop action at last frame.

So far that works: Movie plays, stops and when mouse over an area a button
appears.

We need the button on release to go to another movie clip. (There will be
several buttons and several movie clips). Where do we place the next movie clip
(which layer, which frame) and how do we tell it to hold until someone clicks
the button? When we put in on the bottom layer in frame 2, the first movie
clip stops working and just flashes a frame. When we put it in frame 50 (where
the intro would stop) it still won't work.


Re: multiple buttons and movie clips dpteacher
7/1/2007 12:00:00 AM
Thank you for the suggestion. Where do we put this container exactly? Also, I
don't quite understand exactly what you mean by this: target your loading
into... loading "number2.swf" into "container_mc" where "number1.swf" is
currently located will unload it before loading "number2.swf".

Remember, we are beginners. Could you please tell us exactly what action
script you would write for the button? (We are using a button symbol.) I
thought I had it correct, but now the script has disappeared and what I wanted
to use is greyed out, I'm getting bizarre messages, like "not a
button".....aaagh.

Boy, I wish we could just hire someone to stand here and tell us what to do.

Thanks
Re: multiple buttons and movie clips Kree8R
7/1/2007 1:06:19 PM

[quoted text, click to view]


Try this tutorial:
http://www.nunomira.com/tutorials/loading_movies.php

or any of these:

http://www.kirupa.com/developer/mx/loading.htm

http://www.webwasp.co.uk/tutorials/b55-load/index.php

http://www.actionscript4designers.com/wmg2/movie_clips_levels_loadmov.html

http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001519.html


or conduct a search on google for "flash load movie into empty clip" and
you'll find tons of info and tutorials...


Re: multiple buttons and movie clips dpteacher
7/1/2007 9:32:35 PM
Thanks. I will definitely go to those sites. But, in the meantime, we got it
working well enough to show a sample to the client.. We may find out later your
method is more efficient. What we were missing is...duh...the stop action on
the main timeline at frame 1. (We did have the stop actions inside the clips,
for the end of each clip.). We are using folders to keep us organized. LOVE
FLASH. It's like a big game. The button problem was a mystery, but solved now.

Thanks again
AddThis Social Bookmark Button