Help!! A silly Question

This is a discussion on "Help!! A silly Question" within the Flash & Multimedia Forum section. This forum, and the thread "Help!! A silly Question are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 6th, 2007, 16:48
Junior Member
Join Date: Feb 2007
Location: London
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Help!! A silly Question

Hi

I've recently started to learn 'Flash' and some other web-design packages and have just been learning how to make a movieclip work like a button.

I think I've just about got it. But I can't seem to get the correct script which looked to be the easiest part.

Basically I have a movieclip button that will move to frame 2 (label=_peace) on release. The code I've got on the movieclip at the moment is:

onClipEvent (mouseUp) {
gotoAndStop("_peace")
}

But I've tried loads of stuff. Maybe I'm going about this in entirely the wrong way, I'm sure it's something extremely simple (obviously!!) but I'm extremely stuck.

If some one could give me some suggestions I'd give a big CHEERS!

Thanks!

Adam
Reply With Quote

  #2 (permalink)  
Old Feb 6th, 2007, 17:34
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Help!! A silly Question

I find the easiest solutions for this problem is very unique, but works great. If I were you when you get in side your movie click...make 4 framlables...one that says over, anther that says down, and two more that say goback, youclicked. This will be the different states of the button, when they click the button does this and this. Now goback to the main timeline, and select the button and place this ActionScript code...

Code: Select all
on(rollOver){
    gotoAndPlay("over");
}
on(press){
    gotoAndPlay("down");
}
on(rollOut, releaseOutside){
    gotoAndPlay("goback");
}
on(release){
    with(_root){
    gotoAndPlay("_peace");
    }
    gotoAndPlay("youclicked");
}
If you want I could make you a sample file.
Reply With Quote
  #3 (permalink)  
Old Feb 6th, 2007, 19:16
Junior Member
Join Date: Feb 2007
Location: London
Posts: 44
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Help!! A silly Question

EXCELLENT!!!...
...But when you click on the button a second time it goes to the next frame. and then goes back and forth to _peace and _jungle (the next frame label).

All I did though was was paste the actionscript you sent me onto the movieclip, I didn't change the labels within the movie! I don't quite understand where I should put the labels "goback" and "youclicked" on the timeline. Can you explain, please.

If you could send me the sample it might help me understand.

Also would you know any good tutorials on the net to show me how to build a drop down menu similar to the ones in here 'http://www.aveda.co.uk/index.tmpl'...see the 'our products' drop down menu.

Thanks so much for your help and please excuse my cheekyness for asking for the links.

Thank again, Adam
Reply With Quote
  #4 (permalink)  
Old Feb 6th, 2007, 19:53
Junior Member
Join Date: Jan 2007
Location: Michigan
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Talking Re: Help!! A silly Question

Quote:
Originally Posted by JacobHaug View Post
I find the easiest...
Code: Select all
    with(_root){
    gotoAndPlay("_peace");
    }
this wont solve your NEW problem its just a more efficient way, in staedt of the above code, its more efficiant to just write it in on line unsing "_root.method" syntax :
Code: Select all
_root.gotoAndPlay("_peace");
Reply With Quote
  #5 (permalink)  
Old Feb 7th, 2007, 16:30
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Help!! A silly Question

Let's see your edit file, and we can help solve the problem...whatever that problem maybe.
Reply With Quote
Reply

Tags
actionscript, button, flash, movieclip

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Silly Golf jimboready Free Web Site Critique 2 Feb 29th, 2008 13:57
Silly Question ScottR PHP Forum 3 Nov 4th, 2006 21:14
[HELP] XSL silly question windbizz Other Programming Languages 1 Oct 3rd, 2006 06:54
Probably a VERY silly question but... dharma Web Page Design 6 Sep 4th, 2006 10:33
very silly and easy question saltedm8 Web Page Design 2 Aug 22nd, 2006 22:35


All times are GMT. The time now is 07:22.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43