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 05-17-2002, 09:08 PM   #1
jwpop
Registered User
 
Join Date: May 2002
Location: Washington DC
Posts: 1
Send a message via AIM to jwpop
Question comboboxes & actionscripting

I'm new to actionscript and have learned a tremendous amount from this and other forums - thank you all for your help!! Now I am stumped and sure this is something simple I am overlooking. I am attempting to create a combo box to list pictures on my site. I have placed the pictures individually in frames on the layer below the layer containing the comboboxes. In frame 1 on the combo box layer and as actions for the combobox, I have placed the following script:

---begin---
onClipEvent (load) {
function combo() {
value = combo1.getSelectedItem().data;
gotoAndStop(value);
}
combo1.setChangeHandler(combo);
combo1.addItemAt(1, "Big Ben",photo1);
combo1.addItemAt(2, "Charing Cross Station",photo2);
}
---end---

I've labeled my frames with the pictures photo1, photo2,.... and my combobox is named combo1

What do I need to add or remove to make this work??? Any help will be greatly appreciated!
jwpop is offline   Reply With Quote
Old 05-18-2002, 05:51 AM   #2
bplus
Registered User
 
Join Date: Apr 2002
Location: Whangaparaoa, New Zealand
Posts: 16
Default

put your changehandler in quotations:
[code]
onClipEvent (load) {
function combo() {
value = combo1.getSelectedItem().data;
gotoAndStop(value);
}
combo1.setChangeHandler("combo");
combo1.addItemAt(1, "Big Ben",photo1);
combo1.addItemAt(2, "Charing Cross Station",photo2);
}
bplus is offline   Reply With Quote
Old 05-18-2002, 05:51 AM   #3
bplus
Registered User
 
Join Date: Apr 2002
Location: Whangaparaoa, New Zealand
Posts: 16
Default

put your changehandler in quotations:
Code:
onClipEvent (load) { 
    function combo() { 
        value = combo1.getSelectedItem().data; 
        gotoAndStop(value); 
    } 
    combo1.setChangeHandler("combo"); 
    combo1.addItemAt(1, "Big Ben",photo1); 
    combo1.addItemAt(2, "Charing Cross Station",photo2); 
}
bplus is offline   Reply With Quote
Old 05-18-2002, 05:51 AM   #4
bplus
Registered User
 
Join Date: Apr 2002
Location: Whangaparaoa, New Zealand
Posts: 16
Default

oops,
double clickey..
sorry.
bplus 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
ComboBoxes droping down at stage 0,0 ?? HHSlap Components 0 01-08-2005 02:51 AM
replacing mx comboboxes w/ mx2004 comboboxes = white rectangle?? robgobbler Components 1 10-15-2004 09:18 PM
Comboboxes and XML malpeigne Components 0 07-27-2004 06:31 PM
Problem with comboboxes pichto ActionScript 1.0 (and below) 0 01-11-2003 01:12 PM
ActionScripting Job - London trinders Projects and Positions 0 03-07-2002 01:42 PM


All times are GMT. The time now is 10:19 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.