Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-12-2002, 01:06 AM   #1
dacooldanman
Registered User
 
Join Date: Apr 2002
Posts: 6
Question change handler for comboBox

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
dacooldanman is offline   Reply With Quote
Old 04-12-2002, 01:17 AM   #2
JHallam
Dosed...By Flash!
 
Join Date: Feb 2001
Location: England - Nottm
Posts: 1,192
Send a message via Yahoo to JHallam
Default

macromedia.com/support/flash

Search for Combobox

You will find a tutorial on this
JHallam is offline   Reply With Quote
Old 04-16-2002, 01:34 AM   #3
dacooldanman
Registered User
 
Join Date: Apr 2002
Posts: 6
Default

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?
dacooldanman is offline   Reply With Quote
Old 04-16-2002, 01:57 AM   #4
JHallam
Dosed...By Flash!
 
Join Date: Feb 2001
Location: England - Nottm
Posts: 1,192
Send a message via Yahoo to JHallam
Default

Watch this movie

http://download.macromedia.com/pub/f...x/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!
JHallam is offline   Reply With Quote
Old 04-17-2002, 02:29 AM   #5
dacooldanman
Registered User
 
Join Date: Apr 2002
Posts: 6
Default

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.
dacooldanman is offline   Reply With Quote
Old 04-17-2002, 02:55 AM   #6
JHallam
Dosed...By Flash!
 
Join Date: Feb 2001
Location: England - Nottm
Posts: 1,192
Send a message via Yahoo to JHallam
Default

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!
JHallam is offline   Reply With Quote
Old 04-17-2002, 04:11 AM   #7
dacooldanman
Registered User
 
Join Date: Apr 2002
Posts: 6
Default

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 is offline   Reply With Quote
Old 04-18-2002, 12:31 AM   #8
dacooldanman
Registered User
 
Join Date: Apr 2002
Posts: 6
Default

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!!
Attached Files
File Type: zip comboboxdoesn'twork.zip (16.2 KB, 108 views)
dacooldanman is offline   Reply With Quote
Old 04-18-2002, 12:35 AM   #9
JHallam
Dosed...By Flash!
 
Join Date: Feb 2001
Location: England - Nottm
Posts: 1,192
Send a message via Yahoo to JHallam
Default

No worries thats why we are here, I'll sort it for you

Come back later/tomorrow as it is like 1am here

thanks
JHallam is offline   Reply With Quote
Old 04-20-2002, 05:28 PM   #10
dacooldanman
Registered User
 
Join Date: Apr 2002
Posts: 6
Default

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.
dacooldanman is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ComboBox Change Handler doesn't work -- proj needs to be done soon! ninjapheret Components 8 08-27-2004 06:59 PM
Combobox and change handler randocommando Components 0 06-30-2004 06:32 PM
automatically trigger a change handler? finnstones Components 5 02-16-2004 10:45 PM
change handler function on drop down menu component DEROY ActionScript 1.0 (and below) 1 01-30-2004 05:29 PM
change handler not working!!! finnstones ActionScript 1.0 (and below) 0 09-04-2003 12:12 PM


All times are GMT. The time now is 04:44 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.