Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Help with Combo box

This is a discussion on Help with Combo box within the Flash CS3 eng forums, part of the English Forums category; I need to make a combo box so that when u select one of the labels it takes you to ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Flash CS3 eng

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 23-08-08, 03:49
Junior Member
 
Join Date: Aug 2008
Posts: 3
Rep Power: 0
oliveros_daryl is on a distinguished road
Help with Combo box

I need to make a combo box so that when u select one of the labels it takes you to other frame
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 23-08-08, 09:02
Onsitus's Avatar
CSS.FlepStudio.org
 
Join Date: Jul 2007
Location: Nettuno Beach
Posts: 1,012
Rep Power: 3
Onsitus is on a distinguished road
Re: Help with Combo box

Quote:
Originally Posted by oliveros_daryl View Post
I need to make a combo box so that when u select one of the labels it takes you to other frame
Hi,

you need to add a listener to your combo box and from there call the frame label with the same name as the value choosen

Example:

Code:
var myListener:Object=new Object();  // a new listener
cb_name.addEventListener("change", myListener);  //add listener to combobox
myListener.change=function(){  //function called
    _root.gotoAndStop(cb_name.value);  //go to the frame label based on the value of the item of the cb.  Change the _root part as needed
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 23-08-08, 18:36
Junior Member
 
Join Date: Aug 2008
Posts: 3
Rep Power: 0
oliveros_daryl is on a distinguished road
Re: Help with Combo box

Plz talk in english ok xD, i dont know much about actionscript
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 23-08-08, 18:51
Junior Member
 
Join Date: Aug 2008
Posts: 3
Rep Power: 0
oliveros_daryl is on a distinguished road
Re: Help with Combo box

Well i copied the script in the frame actions and changed my_cb for the instance name of the combo box and worked but theres something wrong, you ill see, there are 4 frames and i placed a combo box and the same script on every frame, with this i can go from frame 1 to any frame but, once i go to other frame i cant go back to frame 1, how do i fix that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 23-08-08, 20:56
Onsitus's Avatar
CSS.FlepStudio.org
 
Join Date: Jul 2007
Location: Nettuno Beach
Posts: 1,012
Rep Power: 3
Onsitus is on a distinguished road
Re: Help with Combo box

You do not need to repeat the action for the combobox on each frame.

Anyway, check that in the other frames, the cb has the right instance name!

I attach a fla as example (for flash8, I can not save it for lower version)
Attached Files
File Type: zip addListener_comboBox_as2.zip (87.2 KB, 25 views)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Flash Multi Gallery
Reply

Bookmarks

Thread Tools
Display Modes

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Flash CS3 Combo Box transferring variables to submit button help spencersmb Flash CS3 eng 1 22-10-08 08:51
Trying to bring a .png to the stage through xml and a combo box Zane5100 PHP | mySQL | Flash CS3 1 20-05-08 19:16


All times are GMT. The time now is 16:01.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406