all groups > flash (macromedia) > november 2004 >
You're in the

flash (macromedia)

group:

creating movie clip buttons?


creating movie clip buttons? cyber00677
11/1/2004 11:44:59 PM
flash (macromedia):
Re: creating movie clip buttons? dan the guy
11/2/2004 12:15:03 AM
in mx pro:
select the movie clip
modify > convert to symbol select button

Re: creating movie clip buttons? cyber00677
11/2/2004 12:36:55 AM
yes i basicaly want to be able to put in more frames insted of the basic 4. so
if i click the move clip it will play do a animation and then chnage pages. so
i just convert a movie clip to a button thats it?
Re: creating movie clip buttons? cyber00677
11/2/2004 12:43:17 AM
Re: creating movie clip buttons? dan the guy
11/2/2004 12:43:33 AM
so, what you would do is - create a button & put the animation or the movie
clip on the over frame of the button - or if you want it to be playing the
whole time the button is on the stage, put it on the first frame of the button.
Re: creating movie clip buttons? cyber00677
11/2/2004 12:48:01 AM
Re: creating movie clip buttons? cyber00677
11/2/2004 1:19:47 AM
ok so let me type what i think is how you do it. i go make a movie clip with
the animations in the movies time line. then i go to the main time like and
write a AS script that says movieNameHere.realse = function(){
play
}
i dont think the sytace is correct there u have //the action here. what does
that mean how do i write the action. also would i put this script on the key
frame of the button? would this also work with forms based thanks for the help
i think i am finaly getting it but just correct me on what ever i said wrong
thanks
Re: creating movie clip buttons? cyber00677
11/2/2004 1:27:26 AM
Re: creating movie clip buttons? cyber00677
11/2/2004 1:55:52 AM
ok i jsut tryed this also
blah.release = funtion()
{
gotoAndPlay(blah)
}
Re: creating movie clip buttons? urami_
11/2/2004 7:59:58 AM


[quoted text, click to view]

Simply apply button events to movie clip and it will automatically become one.

--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
Re: creating movie clip buttons? urami_
11/2/2004 8:55:20 AM


[quoted text, click to view]

All you need is a movie clip and timeline action like

MovieNameHere.onRelease = function() {
//the action here
};

that's it , it will automatically obtain button like behaviors
and you don't need to convert to any symbol or involve buttons whatsoever.

By the way, HIT is never visible to users so you can't nest there anything.
It is the HOT SPOT that define area on which mouse react.
Going with movie clip was very good idea in the first place, stick to it.


--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
Re: creating movie clip buttons? urami_
11/2/2004 12:44:24 PM


[quoted text, click to view]

It does not work because there is no such action.
it should BLAH is movie instance name , not library name.
Not release but .onRelease (on and Capitalized R matters)
and it should not be an expression (blah) but string literal
if it was even necessary ("blah");


on Timeline frame paste :

MovieNameHere.onRelease = function() {
this.play();
};

Select frame , hit F9 and paste into action editor.
Close editor.
Make a movie clip with some basic tween.
On the first frame stop(); action to prevent it from running.

Now on stage , select the movie clip and hit CTRL F3 to open clip
properties panel. in the < instance name > type the MovieNameHere.

And you all set, this is how it should be done.

onRelease or onRollover or onPress simulates the button behaviors,
you can make it go to different frame to obtain roll over , down ,
or release event.



--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
Re: creating movie clip buttons? cyber00677
11/2/2004 8:19:11 PM
ok when i convert a tweened shap in to a movie clip do i double click it to but the stop(); in the first fram AS and the MovieNameHere.onRelease = function() {
this.play();
Re: creating movie clip buttons? cyber00677
11/2/2004 8:27:32 PM
Re: creating movie clip buttons? urami_
11/3/2004 7:07:19 AM


[quoted text, click to view]

Great.
If you however face problems with other events, do post the sample and
we can help you fix the existing. Much easier than speaking code in
posts :)

--


Regards


urami_*

<hol>
http://flashfugitive.com/
</hol>


By The way:
AddThis Social Bookmark Button