?
Solved

How do I write to a text field action scrip3

Posted on 2010-11-18
3
Medium Priority
?
269 Views
Last Modified: 2012-05-10
Hi

I'm migrating a project to actionscript 3 how do I write to text field?

Many thanks,
Dan
0
Comment
Question by:danzzz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
blue-genie earned 2000 total points
ID: 34170911
it hasnt' changed

textfieldname.text = "whatever";

0
 

Author Comment

by:danzzz
ID: 34171961
Thanks for the reply.

The Flash version I was using had a variable field which you could refer to, this has changed in CS5. I also noticed it doesn't refer to _root but refers to object(root).myText.text etc

Dan
0
 
LVL 39

Expert Comment

by:blue-genie
ID: 34172461
yeah you can't use the variable field anymore. also how you refer to a textfield depends how you place it there in the first place.
if you're creating classes and adding the textfield dynamically or if you're just placing everything on the stage.
the object(root) is not technically good practice .. (IMO) more like a hack if you're just doing the odd small thing.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question