Create an Account!

Adobe Flash Community Forum for all your Flash, Actionscript and Swift3D Support

Search:
FlashDevils Community
 Recommend Us
 About FlashDevils Community
 Can i become a moderator?
 How do i add Flash to my post?
 
Flash Community Register Flash Forum Control Panel Calendar Member List FAQ Search FLA Files
FlashDevils Community FlashDevils Community > Board > Flash > Flash ActionScript > Pop-up menu problem


  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
surfbug
Young Devil

Registered: Dec 2006
Local time: 05:04 AM
Location:
Posts: 121

Pop-up menu problemPost #1

I created the pop-up menu and I typed

on (release) {
_parent.mcAnim.play(); from the action panel

}

but I still see the movie clip doesn't stop. I clicked on the flash website but I still see the movie clip. Can you help me?

Thanks

surfbug has attached this image:



Report this post to a moderator | IP: Logged

Old Post 03-14-2007 12:54 AM
surfbug is offline Click Here to See the Profile for surfbug Click here to Send surfbug a Private Message Click Here to Email surfbug Find more posts by surfbug Add surfbug to your buddy list Edit/Delete Message Reply w/Quote
XemonerdX
veganXcodeXwarrior (StaffMember)

Registered: Apr 2002
Local time: 05:04 AM
Location: The Netherlands
Posts: 4818

Post #2

Why do you insist on being so vague?! What popup menu, you give us some code for on a button without any sort of context, etc?

Anyways, did you put a 'stop();' action on the frame that you want your 'mcAnim' MC to stop at?

__________________
.:: PoeticTerror.Com ::.
.:: FlashDevils ::.
.:: FlashFocus ::.
.:: GalaxyGoo ::.
.:: OrganicFlash ::.



Report this post to a moderator | IP: Logged

Old Post 03-14-2007 01:54 PM
XemonerdX is offline Click Here to See the Profile for XemonerdX Click here to Send XemonerdX a Private Message Click Here to Email XemonerdX Visit XemonerdX's homepage! Find more posts by XemonerdX Add XemonerdX to your buddy list Edit/Delete Message Reply w/Quote
surfbug
Young Devil

Registered: Dec 2006
Local time: 05:04 AM
Location:
Posts: 121

Post #3

I changed the code but it still doesn't stop

on (release) {
_parent.mcAnim.play();

stop();


}



Report this post to a moderator | IP: Logged

Old Post 03-14-2007 04:51 PM
surfbug is offline Click Here to See the Profile for surfbug Click here to Send surfbug a Private Message Click Here to Email surfbug Find more posts by surfbug Add surfbug to your buddy list Edit/Delete Message Reply w/Quote
XemonerdX
veganXcodeXwarrior (StaffMember)

Registered: Apr 2002
Local time: 05:04 AM
Location: The Netherlands
Posts: 4818

Post #4

That's not what I meant. You are making 'mcAnim' play with the '_parent.mcAnim.play();' action. If you want 'mcAnim' to stop at a certain frame, place a 'stop();' action on that frame (preferably on a keyframe on a new layer).

__________________
.:: PoeticTerror.Com ::.
.:: FlashDevils ::.
.:: FlashFocus ::.
.:: GalaxyGoo ::.
.:: OrganicFlash ::.



Report this post to a moderator | IP: Logged

Old Post 03-14-2007 05:03 PM
XemonerdX is offline Click Here to See the Profile for XemonerdX Click here to Send XemonerdX a Private Message Click Here to Email XemonerdX Visit XemonerdX's homepage! Find more posts by XemonerdX Add XemonerdX to your buddy list Edit/Delete Message Reply w/Quote
surfbug
Young Devil

Registered: Dec 2006
Local time: 05:04 AM
Location:
Posts: 121

Post #5

I already put stop();
mcAnim.stop(); on the action layer on the master stage. Where do I put the stop(); inside the movie clip if so do I add the frame and put the code on the 20 stage?



Report this post to a moderator | IP: Logged

Old Post 03-14-2007 05:31 PM
surfbug is offline Click Here to See the Profile for surfbug Click here to Send surfbug a Private Message Click Here to Email surfbug Find more posts by surfbug Add surfbug to your buddy list Edit/Delete Message Reply w/Quote
JimmyPez
Awesome Devil

Registered: Dec 2005
Local time: 12:04 AM
Location: NY
Posts: 798

Post #6

you need to stop it when the button is rolled over, but once its rolledout you need to go back to the original)



Report this post to a moderator | IP: Logged

Old Post 03-14-2007 05:48 PM
JimmyPez is offline Click Here to See the Profile for JimmyPez Click here to Send JimmyPez a Private Message Click Here to Email JimmyPez Visit JimmyPez's homepage! Find more posts by JimmyPez Add JimmyPez to your buddy list Edit/Delete Message Reply w/Quote
surfbug
Young Devil

Registered: Dec 2006
Local time: 05:04 AM
Location:
Posts: 121

Post #7

I clicked on the movie clip Do I put the action on the button and I would put the over is blank and I clicked on the down and put the action on the down. I'm kind of confuse now.



Report this post to a moderator | IP: Logged

Old Post 03-14-2007 11:38 PM
surfbug is offline Click Here to See the Profile for surfbug Click here to Send surfbug a Private Message Click Here to Email surfbug Find more posts by surfbug Add surfbug to your buddy list Edit/Delete Message Reply w/Quote
flashywho
Little Devil

Registered: Apr 2007
Local time: 05:04 AM
Location: singapore
Posts: 5

Post #8

hmm...surfbug, to make it simple, i say out a few steps you try follow it and see how izit.

1st-ly, you got a navigation-bar with all the options. Select 1 of the option in the navigation bar you wanna hv a pop-up menu,convert it to a movie symbol.

2nd, right click on this particular option(option which u jux converted into movieClip, add this few lines of codes into the actionscript.

onClipEvent(load){
//is the cursor over the movie clip
x=false;
}
onClipEvent(enterFrame){
y=this.hitTest(_root._xmouse,_root._ymouse,true);
//if there is a change, go to another frame
if(!x and y){
x=true;
this.gotoAndPlay(2);
} else if (x and !y){
x=false;
this.gotoAndStop(1);
}

3rdly, double-click on this movieClip and do animation. If you are not very clear actionscript or wad, i would suggest you using motion-tween for the pop-down menu to drop-down.

Few ting to rmb is as a basic reference, have a stop(); action in the 1st frame of the movie timeline by selecting the 1st frame of the movie and press F9. Then, insert layer/s for the dropdown menu which i assume you knows how to do. On the last frame of the animation, add a stop(); action on the layer you inserted earlier.
NOTE: the layer which you inserted the stop actions is only to have those 2 actions and nth else. Rmb to have this layer same number of frames as the whole movie clip.

It should works fine if you follow correctly. I have to say there are many many ways of doing, what i suggested is jux 1 of the most basics



Report this post to a moderator | IP: Logged

Old Post 04-10-2007 03:04 PM
flashywho is offline Click Here to See the Profile for flashywho Click here to Send flashywho a Private Message Click Here to Email flashywho Find more posts by flashywho Add flashywho to your buddy list Edit/Delete Message Reply w/Quote
surfbug
Young Devil

Registered: Dec 2006
Local time: 05:04 AM
Location:
Posts: 121

Post #9

Hi flashywho,
Thanks



Report this post to a moderator | IP: Logged

Old Post 04-10-2007 04:10 PM
surfbug is offline Click Here to See the Profile for surfbug Click here to Send surfbug a Private Message Click Here to Email surfbug Find more posts by surfbug Add surfbug to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 05:04 AM. Post New Thread    Post A Reply
  Last Thread   Next Thread
Advertising
Show Printable Version | Email this Page | Unsubscribe from this thread | Download thread

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

< FlashDevils - Terms of use >

Copyright, FlashDevils Community, 2002 -
Flash Archive

Links
Books