Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-23-2006, 02:06 PM   #1
selrahc986
Registered User
 
Join Date: Jun 2006
Posts: 8
Default Updating Dynamic Text

In Flash 8, using 1 frame, I've created a circle which appears on the stage at random positions. I created a dynamic text box below the circle and I am trying to get it to display the position of the circle as it changes.
I've assigned the text an instance name (posn) and variable (xposition), and referenced it in the code: _level0.posn.xposition = position;
but for some reason it's not working. The code doesn't have any errors but the "0" I put in as a placeholder never changes. Any ideas?
selrahc986 is offline   Reply With Quote
Old 06-23-2006, 02:43 PM   #2
sophistikat
Game On
 
sophistikat's Avatar
 
Join Date: Mar 2005
Location: Barrie, ON
Posts: 2,535
Default

you don't need to give it a variable name, just an instance name
ActionScript Code:
_level0.posn.text = position;
sophistikat is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
loading images into dynamic text boxes mprovojr ActionScript 2.0 5 10-09-2007 06:10 PM
calling a PDF file in Flash AudryLucy Projectors and CDs 20 12-30-2006 01:43 PM
email form help nikmark Simple Stuff (Newbies) 17 06-14-2006 12:01 AM
dynamic text not loading properly... bonathon ActionScript 2.0 14 04-19-2006 11:15 AM
Dynamic text - set up counter to swap text displayed from text file? confused1 Simple Stuff (Newbies) 2 09-17-2003 07:58 PM


All times are GMT. The time now is 01:55 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.