Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 05-09-2003, 12:14 PM   #1
there's 8 pixels missing!
eggnogg's Avatar
Join Date: Apr 2003
Location: Portugal
Posts: 784
Default getSelectedItem and setSelectedIndex

heya ppl!

i need to pass some information between two frame in the same movie:

i have a comboBox, and when i choose an item from it's drop down menu and click a button, the movie goes to frame2 and displays the data associated with the item i chose, in a dynamic text box (variable). that's easy :
ActionScript Code:
_root.variable = (myMc.comboBox.getSelectedItem().label);

what i don't know how to do is retrieving the index number of the item i selected in the comboBox, when i go back to frame1! is there a way to save that information so that the user can go back and see the item he selected?


Last edited by eggnogg; 05-09-2003 at 12:18 PM.
eggnogg is offline   Reply With Quote
Old 05-09-2003, 02:42 PM   #2
Senior Member
webguy's Avatar
Join Date: May 2003
Location: west palm beach
Posts: 1,652
Send a message via ICQ to webguy Send a message via AIM to webguy

I'm not sure what you are asking, but you can save any information in either an array or as a standalone object. I don't have much experience with the later, but just push it into an array and read it from back to front.
Reality is merely an illusion, albeit a very persistent one.
webguy is offline   Reply With Quote

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

All times are GMT. The time now is 02:07 AM.

Follow actionscriptorg on Twitter


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