Solved

How do I write to a text field action scrip3

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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

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…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
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.

803 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