Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 11th, 2007, 10:07 PM   #1
Writlaus
Hobbyist Programmer
 
Writlaus's Avatar
 
Join Date: Nov 2005
Posts: 149
Rep Power: 3 Writlaus is on a distinguished road
accessing parts of an instance in Actionscript/Flash

I am using flash, and I have a symbol that has two dynamic text fields in it. I need to access the text fields, and I thought instanceName.textField1 would do it, but it doesn't. I tried searching for the answer, but I can't find one.

Is anyone familiar enough with flash and actionscript to help me out?
Writlaus is offline   Reply With Quote
Old Jan 15th, 2008, 3:10 AM   #2
Swan
Programmer
 
Join Date: Jan 2008
Posts: 31
Rep Power: 0 Swan is on a distinguished road
Re: accessing parts of an instance in Actionscript/Flash

say "abc" is the name of the instance.
and "t1" and "t2" are the instance names of your text fields then,

abc.t1.text = " Hello" ;
abc.t2.text = "Wrtilaus" ;

would output "Hello" and "Writlaus" in the two textfields respectively.
Swan is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
No Object Instance? Kilo C# 12 Dec 16th, 2005 3:02 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:06 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC