Solved

How do I write to a text field action scrip3

Posted on 2010-11-18
3
260 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
  • 2
3 Comments
 
LVL 39

Accepted Solution

by:
blue-genie earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.

863 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now