Solved

How do I write to a text field action scrip3

Posted on 2010-11-18
3
267 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 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

688 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