View Full Version : change handler for comboBox
dacooldanman
04-12-2002, 01:06 AM
I'm creating my first flash site and I'm using Flash MX, I put in a ComboBox, and I've tried to find all the infromation that I can but I don't know how to set it up so that when someone clicks on a label it will take you to a certain frame. I've spent all afternoon on this and some help would be nice.
Thanks
JHallam
04-12-2002, 01:17 AM
macromedia.com/support/flash
Search for Combobox
You will find a tutorial on this
dacooldanman
04-16-2002, 01:34 AM
It didn't work. I tried to have a sereives of if value=x then goto frame (y) after having home.getValue on the comboBox. Then I decided to have a button where it would do the same thing as the comboBox hoping that would fix the problem. Does anybody know how to do this?
JHallam
04-16-2002, 01:57 AM
Watch this movie :)
http://download.macromedia.com/pub/flash/basics/flashmx/flashmx2.mov
Also use Flash > using Flash > then search for components
Also
kay, I've been playing, try these Steps:
You'll need to set that code up in a changeHandler. To do this :
1. click on the combo (pulldown) on the stage. Check out the component parameters.
2. in Change Handler, enter : changeFrame
3. on a frame in the timeline that's got your pulldown, write a function :
function changeFrame()
{
this.gotoAndPlay(pulldownMenu1.getSelectedIndex();
}
Thanks :) Enough Resource to get you started!
dacooldanman
04-17-2002, 02:29 AM
I'm still having trouble, when I test the movie, the label that I select stays hilighted and doesn't continue even when I click outside. Should I attach the file and let you see where I have messed this up?
Thank you for the help that you have provided untill now, programing always confuses me. I'm sorry to be such a hassel for you.
JHallam
04-17-2002, 02:55 AM
Did you watch that movie?
That movie will show you step by step how to create this component successfully
If you have and if you have wated it over and over until your brain blows then do post the FLa then I will sort it only if you give it 110% until you sit at your desk crying and thumping the screen then I will explain more hehee
Go on man, it's easy just view the movie and keep your flash MX open and edit as the guy edits, use Pause,play alot :)
Oh and the link is :
http://download.macromedia.com/pub/...mx/flashmx2.mov
Incase you forgot! ;)
dacooldanman
04-17-2002, 04:11 AM
My head is killing me(studying german for over an hour dosen't help much either), but I'll try somemore tommorow. I watched through the video and thought I got it because for values it posted websites, but I needed frames so I think I changed it to frame#(# refering to what ever frame number I wanted to go to) but I think I had a mistake somewhere else. I think I can fix it(with my abilities I doubt it) if I have a stroke of genius. Thanks for your help though, I would be dead if it weren't for your help no one at my school knows how to do this, not even techers and I go to a heavily computer school.
THANK YOU SO VERY MUCH!!
dacooldanman
04-18-2002, 12:31 AM
I tried everything but it wouldn't work, I am so anoided that I can't get it. I'm attaching it, it doesn't have the extra stuff I'm tried to make it small, there are labels and frame numbers for when you test the movie. I must be really stupid because I watched the movie, then I replicated it myself watching it again to make sure I did it correctly and I've still screwed it up. I'm sorry that I'm wasting y'all's time, but I thank you so VERY MUCH for your helping me!!
JHallam
04-18-2002, 12:35 AM
No worries thats why we are here, I'll sort it for you :D
Come back later/tomorrow as it is like 1am here
thanks
dacooldanman
04-20-2002, 05:28 PM
are you having trouble with my combobox problem, someone somewhere else said that I should use == instead of = in my the script that I came up with first,
stop();
navigation.getValue();
if (value==62) {
gotoAndStop(62);
if (value==63) {
gotoAndStop(63);
if (value==64) {
gotoAndStop(64);
if (value==65) {
gotoAndStop(65);
if (value==66) {
gotoAndStop(66);
if (value==67) {
gotoAndPlay(67);
}
}
}
}
}
}
}
Is that wrong? I also have stop before the script that I got out of the movie? Could this be effecting it because when I test the movie the item stays highlighted and when I press enter it just goes to the next frame.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.