Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-20-2006, 06:01 PM   #1
TimothyMGT
Registered User
 
Join Date: Dec 2005
Posts: 32
Arrow comboBox + external text .

HI .
I would like some help here . I have a combox & a text field on the stage and i have an external txt file..
when i select an item on the combo box i want to load the corresponding text file attached to that specific lable clicked into the text filed on the stage .
i cannot figure it out . i have been at it for about 2 days now . any help before i become ieven more BALD would greatly be appreciated


Code:
//NEWB on the block , but trying :)
// Add event listener and event handler function.
var cbListener:Object = new Object();
cbListener.change = function(evt_obj:Object):Void  {
	var currentlySelected:Object = evt_obj.target.selectedItem.data;
	//trace(evt_obj.target);
	trace("data: "+currentlySelected.data);
	users_txt.text = this.currentlySelected.data;
	//trace("label: "+currentlySelected.label);
};
my_cb.addEventListener("change", cbListener);
TimothyMGT is offline   Reply With Quote
Old 01-21-2006, 07:27 AM   #2
chrisxkelley
Web Pimp
 
Join Date: Oct 2005
Location: Arroyo Grande, CA
Posts: 90
Send a message via AIM to chrisxkelley
Default

check out this tut

http://www.peachpit.com/articles/art...&seqNum=7&rl=1
chrisxkelley is offline   Reply With Quote
Old 01-21-2006, 03:59 PM   #3
TimothyMGT
Registered User
 
Join Date: Dec 2005
Posts: 32
Default

ok ....

i still cannont figure it out . i have been around the block and back so many times ,and i cant figure this 1 out . please Help
TimothyMGT 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
Loading an External Text File with HTML into a Dynamic text field mhammer616 ActionScript 2.0 5 06-09-2008 08:13 PM
calling a PDF file in Flash AudryLucy Projectors and CDs 20 12-30-2006 01:43 PM
external movie, text, css problem openeyes ActionScript 2.0 3 01-21-2006 07:07 AM
loading text into text fields from an external file… PERdesigner ActionScript 1.0 (and below) 1 11-04-2005 04:38 AM
ComboBox to load external .txt onto a Dynamic Text field getdjed Components 5 04-12-2005 01:20 PM


All times are GMT. The time now is 12:22 PM.

///
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.