Trouble With Updating Text Box Location
Okay so, on my onEnterFrame function, I just want to keep updating a Dynamic Text Box location.
It's giving me more trouble than I anticipated, and the solution is probably very easy. I have spent 30 minutes (give or take) on trying to figure it out, but to no avail.
This is what I have at onEnterFrame:
ActionScript Code: _root.HPnum._y += _y - 60; _root.HPnum._x = _x + 20;
Fairly simple, it's in the as code file that I want it to track.
What happens is, it does get moved, but I cannot see it anywhere.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 01-22-2009, 02:24 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Trouble Updating Flash Player In Firefox
I'm having trouble upgrading Flash player 9,0,28,0 to the newest version which is 9,0,47,0. One way I tried to do this was by going to Adobe.com, clicking the get flash player button, downloading the package and installing it. When I restart Firefox, it tells me I still have 9,0,28,0 so the update didn't help. I ran across another site I wanted to try which uses the newest version:
http://www.buzzword.com/. It prompted me to install an update through the site. So the site downloaded and installed the update, but when I restarted Firefox, it still said I have 9,0,28,0. I then called Adobe support and the rep told me to uninstall Flash Player Plugin and Shockwave player, and re-install. I removed both, restarted my browser, installed 9,0,47,0 and restarted again and I still had 9,0,28,0 on my browser. Can someone help please?
Movie Clip Location Trip Trouble
Hello All,
I'm working on a project where each menu button scrolls a movie clip onto the stage. I want each movie clip to be in position before playing and resetting when off stage. How can I accomplish this?
Updating Text In A Flash Site Using A Text File
I am setting up a site that will be maintained by workers that have little or no knowledge of using Flash. The site will need to be updated on a regular basis but the information will not be apparent until the day. What I would like to do is allow a user to update a text file, which will subsequently update the site. Is this possible? Or would I require Generator to do this?
The site is running from the hard drive, it is almost acting like a program. I would like to keep them away from the ActionScripts if possible, but if they had to kep them away from the important scripting.
Not the easiest or straightforward of questions, but I would appreciate the help.
Steve
Problem With Dynamic Text Field When Updating Its Text
hi friends,i am new to Flash and i have a problem with dynamic text fields using flash mx.. My movie contain single layer and 2 frames. First frame contains a form with static text fields, input text fields and push buttons and 2nd frame contanis single dynamic text field. When user entered the details and click submit button it moves to 2nd frame and displays some dynamic text. Everything is good except text in 2nd frame is not displaying some times.
I am attaching my code,
Code:
1st Frame :
//txt_message is instance name not variable name
function onSubmit()
{
alert_txt.text='';
userData = new LoadVars();
userData.fname = txt_fname.text;
userData.middle = txt_middle.text;
userData.lname= txt_lname.text;
userData.email= txt_email.text;
dataReceiver = new LoadVars();
dataReceiver.onLoad = function(){
var txt = this.response;
if (txt == "success") {
// use result values
txt_message.text =" Thank you for your interest in our site !";
}
else
{
// display error
txt_message.text = dataReceiver.error;
}
}
userData.sendAndLoad("register.php",dataReceiver,"POST");
play();
}
}
2nd Frame :
stop();
php will send either echo 'response=success'; or echo 'response=failed&error=Some Error';
it may be simple/silly thing but i am unable to find what went wrong
thanks for your help
bye
userm
[F8] Live Updating Of Text In Flash Via Text File?
I'm creating a Flash document for the company I work for that displays a Top 10 list of the sales people. I'm running it locally off a PC that's connected to a 37" inch LCD mounted in our office. It's sort of a way to raise awareness about everyone's standing throughout the month and to encourage competition.
There's three scenes in total. The first displays the top 10 sales people from the previous month. The second displays the top 10 for the entire year to date. And the final displays the top 10 for the current month to date. The problem is that they want this leaderboard to be updated daily. I'm hoping there's a way to automate this in some way.
I was thinking that it might be possible to tell Flash to pull sales numbers and sales person's names from a locally stored file. Is there any chance something like this is feasible? I'm relatively new to Flash but I'm a quick learner.
Any and all help will be greatly appreciated!
Problem With Dynamic Text Field When Updating Its Text
hi friends,i am new to Flash and i have a problem with dynamic text fields using flash mx.. My movie contain single layer and 2 frames. First frame contains a form with static text fields, input text fields and push buttons and 2nd frame contanis single dynamic text field. When user entered the details and click submit button it moves to 2nd frame and displays some dynamic text. Everything is good except text in 2nd frame is not displaying some times.
I am attaching my code,
Code:
1st Frame :
//txt_message is instance name not variable name
function onSubmit()
{
alert_txt.text='';
userData = new LoadVars();
userData.fname = txt_fname.text;
userData.middle = txt_middle.text;
userData.lname= txt_lname.text;
userData.email= txt_email.text;
dataReceiver = new LoadVars();
dataReceiver.onLoad = function(){
var txt = this.response;
if (txt == "success") {
// use result values
txt_message.text =" Thank you for your interest in our site !";
}
else
{
// display error
txt_message.text = dataReceiver.error;
}
}
userData.sendAndLoad("register.php",dataReceiver,"POST");
play();
}
}
2nd Frame :
stop();
php will send either echo 'response=success'; or echo 'response=failed&error=Some Error';
it may be simple/silly thing but i am unable to find what went wrong
thanks for your help
bye
userm
edit: i am attaching sample files
Problem With Dynamic Text Field When Updating Its Text
hi friends,i am new to Flash and i have a problem with dynamic text fields using flash mx.. My movie contain single layer and 2 frames. First frame contains a form with static text fields, input text fields and push buttons and 2nd frame contanis single dynamic text field. When user entered the details and click submit button it moves to 2nd frame and displays some dynamic text. Everything is good except text in 2nd frame is not displaying some times.
I am attaching my code,
Code:
1st Frame :
//txt_message is instance name not variable name
function onSubmit()
{
alert_txt.text='';
userData = new LoadVars();
userData.fname = txt_fname.text;
userData.middle = txt_middle.text;
userData.lname= txt_lname.text;
userData.email= txt_email.text;
dataReceiver = new LoadVars();
dataReceiver.onLoad = function(){
var txt = this.response;
if (txt == "success") {
// use result values
txt_message.text =" Thank you for your interest in our site !";
}
else
{
// display error
txt_message.text = dataReceiver.error;
}
}
userData.sendAndLoad("register.php",dataReceiver,"POST");
play();
}
}
2nd Frame :
stop();
php will send either echo 'response=success'; or echo 'response=failed&error=Some Error';
it may be simple/silly thing but i am unable to find what went wrong
thanks for your help
bye
userm
Problem With Dynamic Text Field When Updating Its Text
hi friends,i am new to Flash and i have a problem with dynamic text fields using flash mx.. My movie contain single layer and 2 frames. First frame contains a form with static text fields, input text fields and push buttons and 2nd frame contanis single dynamic text field. When user entered the details and click submit button it moves to 2nd frame and displays some dynamic text. Everything is good except text in 2nd frame is not displaying some times.
I am attaching my code,
Code:
1st Frame :
//txt_message is instance name not variable name
function onSubmit()
{
alert_txt.text='';
userData = new LoadVars();
userData.fname = txt_fname.text;
userData.middle = txt_middle.text;
userData.lname= txt_lname.text;
userData.email= txt_email.text;
dataReceiver = new LoadVars();
dataReceiver.onLoad = function(){
var txt = this.response;
if (txt == "success") {
// use result values
txt_message.text =" Thank you for your interest in our site !";
}
else
{
// display error
txt_message.text = dataReceiver.error;
}
}
userData.sendAndLoad("register.php",dataReceiver,"POST");
play();
}
}
2nd Frame :
stop();
php will send either echo 'response=success'; or echo 'response=failed&error=Some Error';
it may be simple/silly thing but i am unable to find what went wrong
thanks for your help
bye
userm
Input Text Updating Dynamic Text In MC's?
The Main Timeline has 4 input text areas and a MovieClip loaded into it.
The MovieClip has 4 dynamic text fields that should display the default text in the input fields AND update automatically as this text is changed.
How? Please help.
Thank you
John
Updating A Text Box
I have a text box which displays the amount of fuel remaining (variable "_global.fuel") but it only updates when the main timeline moves, I need it to update constantly, or at least be able to tell it to update from within the ActionScript. Does anyone know how to do this? Thanks
Text Not Updating
I'm trying to update a text field through either a MouseMove event of an enterFrame event but neither seem to work. Am I missing something here?
Joe
Updating Text
Hi all,
I have a client that wants to update a text section on a regular bases that is part of a swf file how do i link the the external text file to the swf file?
(the build is a HTML page with a 1x1 table in it that contains the pages swf content.)
Should the text doc go into the same parent folder as where the swf file is ?
thanks if anyone can help
andy
How To Move An Object Slowly And Smoothly From Location 1 To Location 2?
Hi,
I am new to ActionScript. I wish to use ActionScript to move an object slowly and smoothly from location 1 to location 2.
I learned that I can use the following to move an object to location 2 (x2, y2):
mThisObject.x = x2;
mThisObject.y = y2;
However the object just "swift" from location 1 to location 2, not moving slowly and smoothly from location 1 to location 2.
Could some experts here provide a guideline for me?
Thanks and best regards
Alex
Updating With Text Document...
What would be my actionscript if I wanted to Update a Flash site with Text documents?
Thanks!
( Example of what I mean: http://www.geri-halliwell.com)
Updating Text-fields?
First of all I want to thank all of you for helping me out so many times, especially Musicman.
Now I don't understand how I should update a text-field. With a lot of help from the flash-kit site I made my own guestbook on my personal web-page. My problem is that if the user first go to read the entires in that guesbook and go back to sign it and then go to view the entires again, he/she will not see what he/she wrote. Not until he reloads the whole page and starts the *.swf from the beginning again.
It is probably something about the variables is not updating or something, but how do I solve this.
If you want to take a look at this guestbook go to:
http://home.no.net/rlandsem/
click "Enter Robert's homepage!" then "menu" and finally "G.book"
I'm an amateur, but if you could help me out this time too it would be nice.
Metaman
Text Object Not Updating
I have created a text object with the "createTextField"
_root.createTextField(textName, i+totalPerPage, Text_OffSet + Text_PositionX, Text_PositionY, 95, 50);
I'm doing this in a "loadVarsText.onLoad = function(success)".
Then I have a button that calls another function which is supposed to get a string from an array and update the text field created. All the values look right based on my traces. The array gives me a string, and I have the correct text object name. I can read the old string in the field so I know the object instance name is correct.
When I try to set a new string to the field the field goes blank.
Here is a hardcoded version I have tried of the code I'm using to set the field, this way I know it's not the array call or any variables messing up:
_root.MyText1.text = "Hi";
That's not working either.
Any help is appreciated.
Updating From A Text File
Hi,
Wondered how i would have text in my swf that is referred from a .txt or .rtf file.
Would i have to use A/S and Php or is there another way?
Basically i have so much text to update it would be easier to do that as a single file and then the swf updates from that.
thanks
cuse
Updating A Variable Text Box
I have a text box which displays the amount of fuel remaining (variable "_global.fuel") but it only updates when the main timeline moves, I need it to update constantly, or at least be able to tell it to update from within the ActionScript. Does anyone know how to do this? Thanks
Help: Non-updating Buttons And Text...
Hello,
working on a Flash site, and I've run into an odd problem. I made a change in some of my buttons (basically I went from anti-aliased text to non-anti-aliased text). When the site loads, the first frame shows the buttons just fine, but when we navigate to subsequent frames, the buttons show the old text, the fuzzy anti-aliased version. I checked to see if I had just edited instances, but the library shows that the master buttons were modified. Also, the difference does not show up on my Flash workspace, only when I test or export the movie. This is also happening with simple static text, I change the alias, but it doesn't show up in the export.
Any help would be great.
Thanks,
Periodic Updating Of Text
I have a Dynamic Single Line text contol that has as instance name of scoreDisplay which has a var _global.score, when i start the game it displays 0, ok but when the score changes it does not update itself. how can i make it update itself for the new score every time it goes through a certain frame?
Oh BTW, using flash 8
Updating Text Content
I am using Flash CS3 to build a website for a band. When finished, I want to hand the site over to them and leave it up to them to update the (mainly) textual content such as news and tour dates. Is there a way they can do this easily without any knowledge of Flash? I've heard that Flash can pull information from a linked text file some how.
Thanks for any suggestions.
Updating Text File
Beforehand..I am beyond a nube, have no idea what I am doing. i had my website done for me(vargascomedy) and asked that the programmer allow me to change pictures and text in the site, such as schedules and contact info. I have figured out how to change the jpg files, (I assume the audio is the same) however I try to upload a new schedule.txt file and there is no change. i get "undefined" on the site. I use WISE FTP. He told me all i needed to do was update the text in the schedule.txt file and upload...what am I doing wrong.
[F8] Help Updating Dynamic Text Box
I'm using a slider to update a text box with the slider position. Works great. But I want to also move the slider by entering a number in the text box - but when I try to enter a number, it doesn't populate. I can create another text box that can move the slider, but I want a single text box that does both. Help please?
Doesn't work:
Code:
txtPosition.onChanged = function() {
slider.handle._x = Number(txtPosition.text);
}
This works - it updates the text box:
Code:
handle.onEnterFrame = function() {
_root.txtPosition.text = handle._x;
}
So to summarize - the slider works - it updates the field. But when I try to enter a value in the field, it doesn't take it. What am I doing wrong?
Thanks!
Updating Text In MC Every 5 Seconds
I'm either dense or just had a very long and rough day... :-)
I have the following code:
Code:
function handleText()
{
import it.sephiroth.Serializer
dynamic_mc.textbox_txt._alpha = 100;
var timer;
var k = 0;
function addLine(thecount)
{
dynamic_mc.textbox_txt.text = myTextArray[k];
if(k == thecount)
{
clearInterval(timer);
}
}
/**
* Receive data from PHP page
*/
MyVars = new LoadVars ();
MyVars._t = this;
//MyVars.loadVariablesNum ("http://www.mydomain.com/flash/handleFlash.php?ct_id=" + _root.ct_id + "&flash_area=" + _root.flash_area, 0);
MyVars.load("http://www.mydomain.com/flash/handleFlash.php?ct_id=9&flash_area=header-left");
MyVars.onLoad = function ( success )
{
if (success )
{
//dynamic_mc.textbox_txt._alpha = 0;
var id:Number;
this._t.unserialized = new Serializer().unserialize(this.flashvar);
//trace("walk the array");
var thecount = this._t.unserialized["content"].length;
myTextArray = new Array();
for(i = 0; i < thecount; i++)
{
//mytext = this._t.unserialized["content"][i];
//setInterval(showText(mytext),8000);
//trace(this._t.unserialized["content"][i]);
myTextArray[i] = this._t.unserialized["content"][i];
}
timer = setInterval(addLine(thecount), 5000);
}
}
function showText(thetext)
{
dynamic_mc.textbox_txt.text = thetext;
trace(thetext);
id=setInterval(fadeIn,20);
}
function fadeIn()
{
dynamic_mc.textbox_txt._alpha+=1;
}
}
_root.dynamic_mc.onLoad(success)
{
handleText();
}
What I am trying to accomplish is this:
I'm loading in some variables from PHP (working)
I've got a movie clip named 'dynamic_mc' with a text field called 'textbox_txt'
What I'm attempting to do is take the various phrases that I'm receiving from PHP and display each one, one at a time, in the textbox_txt (also with a fadein and then out)... The problem with the above is that as soon as the setInterval(addLine,xxxx) is called it will only display the first phrase and never gets beyond it... I'm stumped. Help!?
Updating Images And Text
does anyone have any suggestions on how to update text in a flash movie? I would like to have a seperate text file load into the movie. I know it can be done with an html file. Although, i would like it to be in a text file for someone who doesn't know html.
also, is there a way to update images for someone who doesn't know flash.
any suggestions or comments would be greatly appreciated.
thanks
Remote Text Not Updating In SWF
How do I get my SWF to update when I make a change to the text file?
I call the text file using
Code:
_root.loadVariables("text/schedule.txt");
The problem is sometimes it updates, and then other times, even after reloading the web page I cannot get it to update.
Updating Text In A Button?
Hi
I would live some help with updating text within button.
I am currently working predominantly of the timeline. I have created a button symbol and added a dynamic text field to the up, over etc... keyframes. I have given the text field the var and instance name of btn_text.
Back in the main timeline I have added the button 8 times and given each button a different instance name. For example the first button I have given an instance of contact_btn.
In actionscript I can add the onRelease listener by using:
floors_btn.onRelease = function() {
trace("Clicked Floors");
floors_btn.btn_text.text = "Floors";
}
The trace works fine but the text doesnt change to Floors, I have tried this a few different ways and I just cant seem to change the text from outside the button.
Any help on doing this would be great.
Anthony
Dynamic Text Not Updating
This seems the most basic of basic questions, but I am having trouble with dynamic text not updating. I have the application status shown in dynamic text.
I have a function that when fed a status message and a boolean value, should update a status display with the message and lock all buttons from being able to be clicked.
Any function I call will first, in turn, call this status function to update the status and lock all buttons. When the function is complete, a second call to the status function is made to change the message back to READY and release the buttons. The problem is that the status message is not being updated. If I put a prompt in the status function, just after the dynamic text is set, then it updates. So it seems that the dynamic text is not getting enough time to update. Is there something I can do to fix this? I know in other languages when this is an issue there is a simple pause function or similar that can be used.
Help:updating With External Text Changes
Hello, I need a quick help.
Does anyone know how to make flash update each time the browser is loaded/reloaded automatically with any changes that are made to an external text file?
For instance, I created a text file that will be changed maybe 3 times daily. I need for people's browser/flash player to automatically update and display the changes. For some reason now, the flash player only shows with the info that was in the text file from the first test/load. When I changed the text file info, flash player did not update to show the new info in the ie browser as expected. What should I do?
216-544-7681
Updating Text The Easy Way?
I have to create a website where my customer can update text and add text..
say jobs that are available...
I have no knowledge of CMS or mySQL or PHP , so are there any other options?
Updating Dynamic Text
I am using Flash 5 and trying to have dynamic text update on differnt frames.
I created a very simple flash. I have an empty dynamic text with the varible name of "TextField1"
On a keyframe I put an action text that says:
TextField1.text = "ABC"
And yet the text always stays blank.
What else do I have to do?
Any suggestions would be very appriciated!
Automatic Updating Dynamic Text
Hello,
I would like to make a dynamic text and then every time I would like to update the content, I'll have to change it from an other file (for example txt or html) that it will be inside the same dir. So every time I would like to change it do not change the swf but an txt or html file.
I hope that you'll understand what I saied--
Thank you very much.
Problems Updating Dynamic Text
i have a function that reads text from a file and "parses" it's content, puting it in 3 diferent text fields
it works ok in Flash player 6, but not in flash player 5... i have to run the function twice to make it work...
anyone has a clue about whats happening?
Dynamically Updating Text With A Scrollbar
I have a problem that may seem elementary to most of you hard-core developers out there, so hopefully you can give me a suggestion. I have a sliding scrollbar that the user can control (sliding left to right). Next to it I would like to have a dynamically updating text box that changes from "0" when the slider is all the way over to the left to "100" when it's all the way over to the right. I've got the slider down, but can't figure out how to do the text box. Any suggestions or hints? I'm working in MX, but saving to Flash 5 for compatibility issues.
Looking forward to your answers. Thanks in advance!
Auto Updating Dynamic Text
Well...here I am again!
I'd like to know if it's possible to update a text field that is in a flash mx file. I mean, I set a blank dynamic text field and save a .txt file in my webserver and if I input any information into that .txt file it goes automatically to the dynamic text field.
I know ít has something to do with loadvars, but my flash has not been designed for webpage, it's for the standalone flash player.exe.
Is that going to work without PHP, CGI/ASP...??? Just using loadvars????? How do I do that???
I'm going to save a copy of my FLASH FILE.EXE on two computers AND THE .TXT file on the webserver (which would be the third computer.
PEASE HELP!!!!
THANK YOU SOOOOO MUCH FOR HELPING ME OUT!!!!
Updating Dynamic Text Each Week. Help?
I want to make a .SWF file that users can download, that has a dynamic text field that changes each week. Obviously there'll be 52 sets of text. Can this be done? Also, without having to include a .TXT file?
Thanx for any help.
Updating List Box With Text File
I am trying to figure out if you can update a list box using a text file.
I am making a little miniapp the lets users select from different styles for buttons and stuff. I want to release updates in a txtfile, (to update their list of styles), as well as the styles themselves.
OR
How do I load an external list at runtime that I can have users download, and still run of of the same onSelectedItem code..
Thanks for the help!
Actionscript/dynamic Text/updating
Good [time it happens to be where you are],
Alright, so I have this dynamic text thing, which is associated with the variable stat. Or something. Whatever, so I also have this actionscript that goes something like...
Code:
function makeMap() {
nodeDim = 10;
nodesW = 800/nodeDim;
nodesH = 600/nodeDim;
var map = new Array(nodesW);
stat = "Analyzing nodes...";
for(i=0;i<nodesW;i++){
map[ i] = new Array(nodesH);
for(j=0;j<nodesH;j++){
stat=((i+1)*(j+1))+"/"+(nodesW*nodesH);
map[i ][j]=hitTest(i*nodeDim,j*nodeDim,true);
}
}
return map;
}
Ok, so basically it's supposed to make a map of the flash file based on every 10*10 section, and while doing so [since it takes a while], draw on the screen [in the dynamic text field] the value of stat.
What it does, on the other hand, when this function is eventually called... It goes through both for loops and then it draws stat into the dynamic text field. I'm chalking this up to it not updating until it kicks out of loops, so is there any way to force it to update? Or any suggested other ways of doing this?
Any help is appreciated, thanks.
Updating Dynamic Text Fields
Hi,
I have some dynamic text fields that I am loading with text within the flash.
My problem is that once I've set a text field to a value, I can't seem to set it to anything else.
IE:
mc_menuContent.txt_title.text = "TITLE 1";
.. then at another point doing this ...
mc_menuContent.txt_title.text = "TITLE 2";
.. doesn't seem to update the text field properly. It always shows TITLE 1.
Is there a trick to getting it to refresh properly or something?
Updating Scrollbar As Text Size Changes
I'm using Flash 6. I have a dynamic text field w/ the standard scrollbar component that comes with Flash 6. Everything works fine, but now I'm giving the user the option to increase / decrease text size. The problem is that the scrollbar doesn't update: increasing the text size means the scrollbar won't scroll to the bottom of the text. (I don't care about a graphic change in *size* of the scrollbar -- I just want it to reach the bottom of the text).
I know how to count the lines using maxcroll and bottomScroll...I just can't figure out how to update the scrollbar.
I'm attaching the file, if anyone wants to look at it. Hopefully this is an easy thing to do?? The file is also at the url below. Thanks.
http://www31.brinkster.com/zjonbz/scroll.sit
Continous Updating Of Dynamic Text Box
Hi
I want to continously update a text box when the mouse pointer is been moved over a button. Presently the text box only updates when the I roll off and then roll back over the button.
Any help would be much appreciated
Many thanks
Dave
Dynamic Updating Of Text Field
when i drop movie clips onto the target (also a movie clip) i want a dynamic text field (var - 'update') of dynamically update depending on what is on the drop target ..
how would i go about this fellas.........???
Updating Text Field Scroll Bar
I’m making a "LiveHelp" client for my web company. I am almost done. However, the only problem still remaining is this scroll bar issue.
I have a movie clip that is using the loadvars command to retrieve the updated text file, and then a dynamic text field to load the variable, showing the chatroom. Now, when the text file has to extend past the limit of the text field, the generic scroll bars don't update, and they fail to work.
I know this is possible, but I’m fairly new to Flash. Any help would be greatly appreciated.
Thanks.
Dynamic Text File Not Updating
I have a small website developed in Flash Pro 8 with several dynamic text fields. I am using the
Code:
loadVariables("deltadogs.txt", _root );
to load the variables.
Each of the fields are named correctly and have the proper variables assigned, however, when changes are made to the text file and it is uploaded, I have to delete the temporary internet files (in IE) to get the change to work.
Any idea what i am doing wrong?
Dynamic TextBox Not Updating With New Text
Hi All,
I'm having a major minor problem.
I'm new to Flash and actionscript, but I'm picking it up quickly. I have recently created a music player (not perfect, but gets the job done) in which I update the song title on the player. Works just fine.
Well, now I'm developing the site I'm going to use it on, and I have a different dynamic textbox. Here is the setup (and please excuse the levels of indiretion--it's gotten this far because I'm trying to keep certain items separated).
1. Main Timeline
-> 2. Contains a ScrollingText Media Clip (controls the show/hide of MC)
-> 3. Contains a Scrolling Text Component (contains background + text)
So, the main timeline (1) contains main MC (2) and tells it to show or hide the objects it contains. This MC timeline has an object called the "Scrolling Text Component" (3) which holds the background and the text.
In (3), I have the textbox, called myText_txt, and a background graphic. In Frame 1, I leave the original text that I enetered in the GUI (stage), and insert a new keyframe on frame 2 (for the textbox). Also, I embedded the fonts (prior to that, nothing would show up). I'm not sure that it matters, but I guess I should not that I leave this clip looping from the last frame back to the second (because, the goal is to fade in and out text that will change each loop). Also, I have 3 layers, in order from top to bottom:
scripts
text
background
Ok, two cases:
Case 1: I do nothing in the new keyframe (i.e., I do NOT change the text), and the orginal text stays throughout the entire movie clip.
Case 2: I change the text in Frame 2 (where I added the new keyframe on the textbox layer), and the text disappears.
This is really mindboggling. The attempt to change the textbox is very simple:
Code:
this.myText_txt.text = "asdf" ;
I just don't get it. I've done this plenty of times, but I guess I have never done it outside of the main timeline. Does this make a difference? I have also added an extra layer with a retangle and faded it in and out, and side to side, just for my own sanity.
Not sure that it will make much difference, but you can view the mc at:
www.chadmorris.net/flashexamples/
It's the little white looking item at the bottom of the page.
Any ideas?
Thanks,
Chad
Dynamic Text Updating Number
I need a dynamically created text field to display a dynamic number var without calling an update function. Normally, when you create a dynamic text using the text tool, and then enter the variable, it updates root level variables. When I used the textfield.text method, it only displays what is initially set in the text var.
I need the myNumber to show the increments that are added onEnterFrame and not just stay at zero.
Code:
myNumber = 0;
//create text field
this.createTextField("dynamicNumber", this.getNextHighestDepth(), 10, 10, 100, 20);
//
dynamicNumber.text = myNumber;//needs to update but doesn't !!
//
_root.onEnterFrame = function()
{
myNumber++;
trace(myNumber);
};
Updating Dymanic Text Fields
Simple concept but I couldn't find any good info in the forums.
I have two input boxes which a user can only input numeric text.
(box1 & box2)
I then have a dynamic text box (total) that is suppose to hold the sum of box 1 and 2.
How can I code it so that whenever a value is entered into either 'box1' or 'box2' will automaitcally update the 'total' dynamic text field
|