Setting Dynamic Text With Dynamic Path's
Hey guys,
I am pulling in this info with XML and trying to pass it thru a loop to plug in all of the news posts...however, for some reason, I cannot get the paths to work while I have a variable in it.
Any ideas?
ActionScript Code: import flash.net.*;import flash.events.*;var xmlLoader:URLLoader = new URLLoader();var xmlData:XML = new XML();var numz:Number = 0; xmlLoader.addEventListener(Event.COMPLETE, LoadXML); xmlLoader.load(new URLRequest("news.xml")); function LoadXML(e:Event):void { xmlData = new XML(e.target.data); ParseBooks2(xmlData);} function ParseBooks2(tourInput:XML):void { var tourList:XMLList = tourInput.Newspost.datez; for each (var dateElement:XML in tourList) { // create entries newsTitle_txt ["newsButton"+numz+"_but"]addEventListener(MouseEvent.CLICK,onClick); function onClick(e:Event):void{ trace(this) //launch news story } // THIS IS WHERE I AM HAVING TROUBLE...ANY IDEAS? It pulls the info in, but I cant set this text using the variables.. var newsTitles:String = "newsButton"+numz+"_but.newsTitle_txt"; trace(this[newsTitles].text); this[newsTitles].text = tourInput.Newspost.title.text()[numz]; numz++ }}this.stop();
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 12-07-2007, 03:23 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Setting Dynamic Text...
Hello!
I'm having some problems when trying to set some dynamic text in flash mx. I've got a main scene with a bunch of instances of a button, that button has a movie attached to the over. The movie has an instance of a graphic that has a dynamic text feild. For each button, I want the text to be different. I've done it this way to make the size of the file as small as possible.
Scene1 contains multiple named instances of Button1
Button1 contains Movie1
Movie1 contains Graphic1
Graphic1 contains a dynamic text field.
I've tried loading the values on load and when over the button but nothing seems to work.
Any ideas?
Setting Dynamic Text With Php
Ok, is there a way to set the dynamic text inside a flash file ( say $flashtext ) with php ie. ( text.swf?flashtext=Text Here )?
any help appreciated
Moving Dynamic Text Along A Path
I have a significant amount of text that I want to scroll along a path (single line). I was thinking that I could store the text in a .txt file since it's so long, store it in a variable, and import it into flash as dynamic text -- that part I know how to do -- but I'm not so sure on how to get the dynamic text to scroll along a path (that's my first question).
I'm also sort of going for a "perspective" effect -- as in, the path is really along a one-perspective road, and I would be too excited if I could get the text to get smaller as it goes along the curvy, vanishing road (that's my second question).
I could probably figure out a messy way to do both of these, but I'm sure this has been done before, and there's probably a neater way to do them -- I'd certainly appreciate any input : )
Thank you!!
Dynamic Text On A Curved Path?
Is it possible to create a curved path for dynamic text in flash? I am desperately trying to make an arched path that users can dynamically type a logo into.
Can't Set Dynamic Text Using Variables Within Path...
I have a bunch of dynamic text boxes called date0_txt + date02_txt, date1_txt + date12_txt, and im trying to put the text in using the following xml stuff, but nothing comes up in the text boxes. If I set it without the [] variable in the path, it works fine..any ideas? The XML is working, for sure.
ActionScript Code:
//this does not work
this["date"+numz+"_txt.text"] = tourInput.Tour.datez.text()[numz] + " " + tourInput.Tour.showtime.text()[numz];
this["date"+numz+"2_txt.text"] = tourInput.Tour.city.text()[numz];
numz++
ActionScript Code:
//this does work
date0_txt = tourInput.Tour.datez.text()[numz] + " " + tourInput.Tour.showtime.text()[numz];
date02_txt = tourInput.Tour.city.text()[numz];
numz++
Dynamic Text Path Issue...
I have no problem displaying dynamic text in a textfield on the _root of my movie using - this.loadVariables("myText.txt");
But my problem begins when I try to do the same thing with a text field nested inside of a movieclip on the root timeline. I've tried every path variation I can think of but it won't appear. Even tried to embed the font to no avail.
Any ideas...I'm running out of them.
Dynamic Text Path Problem
alrighty, another problem guys.
I'm trying to affect a dynamic text field which is inside a button on the _root.
text field is called 'aboutus'
button is called 'but_about'
So to reference this I tried the code :
_root.but_about.aboutus.text = this.about;
..which is inside a text load function (which works fine)
now this didn't work so I tried to trace the ._x value of the text field, ie:
trace(_root.but_about.aboutup._x);
and this returns undefined
There's no masks here and all the fonts are embedded.
Is there an issue with referencing buttons in the same way we do MC's?
any help would be super! cheers
Dynamic Text Path Issue...
I have no problem displaying dynamic text in a textfield on the _root of my movie using - this.loadVariables("myText.txt");
But my problem begins when I try to do the same thing with a text field nested inside of a movieclip on the root timeline. I've tried every path variation I can think of but it won't appear. Even tried to embed the font to no avail.
Any ideas...I'm running out of them.
Re-setting Dynamic Text Box Variables..possible?
I have 2 dynamic text boxes receiving text from an HTML tag. The movie needs to be changed to loop 3 times, each with different text. One box uses the variable "header", the other "text".
Here's what I'm doing:
+ feeding in text via OBJECT and EMBED tags (header1=xxxx&content1=yyyy&header2=aaaa...etc) (6 vars in all)
+ init a loop on frame 1 to = 1
+ pushing all the vars imported into an array (for ease of use and tidyness) newsArray with 6 elements
+ then, killing the imported variables, header1=0 (to save memory)
+ on frame 2 I have a looper check (if loop > 3 then loop = 1)
+ also an if, else if statement to choose the news based on loop's value:
(pseudo-code) If loop==1 then header=newsArray[1], text=newsArray[2]
else if
loop==2 then header=newsArray[3], text=newsArray[4]
etc
It's not working though. Is there something I don't know? I am learning ActionScript as I go so it may be my fault. Can the value of a variable assigned to a dynamic text box be changed during a movie? Is it going to be easier to set the visible of boxes overlaid on each other?
TIA
Leon
Dynamic Text Alpha Setting
How is it possible to change alpha property of a MC with a dynamic text field? I tried this code with both MCs, one with dynamic and another with static text ...
onClipEvent (load) {
this._alpha = 20;
startDrag (this, true);
}
... it works fine with static text, but just the dragging works for the dynamic.
Any idea? Could the Color object be the solution?
Please, bring some light!!! Thanks!
gokito
Help - Setting Dynamic Text From HTML
Would be grateful if someone could tell me how to set the value of dynamic text in a movie from HTML.
Can it be done with Javascript ?
Can it be done within the syntax of the <OBJECT> element ?
Any help appreciated,
Dominic.M
Setting Text Of Dynamic Textfield
Hello!
Okay, I have a movie in my library which contains one dynamic textfield. I set the Var of this textfield to "MyText" and added 2 instances of this movie to the scene.
How can I change the text of this 2 textfields now seperatly? When I use:
onClipEvent(enterFrame)
{ MyText = "Hello!"
}
... then only the first instance is change. When using something like:
_level0.Movie1.MyText = "Hello1";
_level0.Movie2.MyText = "Hello2";
... nothing happens. Help!
Martin
_alpha Setting For Dynamic Text
When I use the an onMouse event and myVariable = “ text” Can I make the text a lighter shade? Can you set the _alpha transparency on dynamic or input text?
THX
Setting A Text Field As Dynamic
When you change a text field to dynamic text, the format of the text changes. As in the font becomes nothing like it's suppose to look and the text also loses it's boldness. Does anyone know if there is a way around this? Is there a solution that will allow the text to remain unchanged when using dynamic text??
Thanks.
Setting Dynamic Text As Html Via As2
I have a dynamic text feild tht is created once my loadVars is successful. The issue is when I try to set the dynamic text to html it doesn't display at all. Her is the code
Code:
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function(success) {
if (success) {
holder.createTextField("new_txt", holder.getNextHighestDepth(), 10, 10, 300, 200);
holder.new_txt.setNewTextFormat(my_fmt);
holder.new_txt._alpha = 50;
holder.new_txt.autoSize = true;
holder.new_txt.embedFonts = true;
holder.new_txt.html = true;
holder.new_txt.htmlText = myLV.info;
trace("hippy");
} else {
holder.createTextField("new_txt", holder.getNextHighestDepth(), 10, 10, 300, 200);
holder.new_txt.setNewTextFormat(my_fmt);
holder.new_txt._rotation = 45;
holder.new_txt._alpha = 50;
holder.new_txt.autoSize = true;
holder.new_txt.embedFonts = true;
holder.new_txt.text = "There was a problem loading in the text content through the load vars function.";
}
If I comment out the line:
holder.new_txt.html = true;
everything thing works fine with my embedded font.
Setting Dynamic Text Attribs
I pressed F1, looked all over, checked my FlashMX Saavy book and another one I have laying around and could not figure this out. I need to know the syntax of changing a dynamic text box's text size and bold/normal attributes. I have set it to html rendering. Here's what I use when I change the contents:
_root.inf_01.PPBOX.presNFO
The instance name is: PNboxinfo
Thanks.
Setting Dynamic Text Not Working In AS2
I'm working on a complex file given to me by another designer and I'm having a problem with being able to set dynamic text. Basically, I just want to set the text of a nested instance (e.g., with an instance called foo and a instance inside foo called bar, I'm using foo.bar.text = "test".) This works beautifully and as expected in a test file. But when I move the symbols and code to the other designer's file, nothing happens. I.e., the dynamic text is blank.
I feel confident that I'm not making any errors (I'm using tested code and symbols!), but I cannot think what else could be causing the error. Mine is the only ActionScript in the entire file.
Are there bugs with dynamic text? Could this have to do with font substitution? I did change the fonts to Arial and "device fonts" without effect.
Thanks!
Dynamic Textbox > Setting Text > XML Value
Why won't this work?
Code:
var galleries = this.firstChild.childNodes;
for(var i=0;i<galleries.length;i++) {
var gallery = galleries[i];
trace(gallery.attributes.name);
duplicateMovieClip(_root.btn_dummy,"btn_" + i,i);
_root["btn_" + i]._x = 50;
_root["btn_" + i]._y = 50 + i*22;
_root["btn_" + i].btnText.text = gallery.attributes.name;
trace("++++ " + _root["btn_" + i].btnText.text);
}
So I duplicate a button I made on the root called btn_dummy and the duplication works just fine but only the text doesn't show.
My first trace shows my XML child nodes, but the second trace just shows "++++ undefined".
Isn't this the right way to do it?
_root["btn_" + i].btnText.text = gallery.attributes.name;
Any one?
Thanks!
Setting Dynamic Text As Html Via As2
I have a dynamic text feild tht is created once my loadVars is successful. The issue is when I try to set the dynamic text to html it doesn't display at all. Her is the code
Code:
var myLV:LoadVars = new LoadVars();
myLV.onLoad = function(success) {
if (success) {
holder.createTextField("new_txt", holder.getNextHighestDepth(), 10, 10, 300, 200);
holder.new_txt.setNewTextFormat(my_fmt);
holder.new_txt._alpha = 50;
holder.new_txt.autoSize = true;
holder.new_txt.embedFonts = true;
holder.new_txt.html = true;
holder.new_txt.htmlText = myLV.info;
trace("hippy");
} else {
holder.createTextField("new_txt", holder.getNextHighestDepth(), 10, 10, 300, 200);
holder.new_txt.setNewTextFormat(my_fmt);
holder.new_txt._rotation = 45;
holder.new_txt._alpha = 50;
holder.new_txt.autoSize = true;
holder.new_txt.embedFonts = true;
holder.new_txt.text = "There was a problem loading in the text content through the load vars function.";
}
If I comment out the line:
holder.new_txt.html = true;
everything thing works fine with my embedded font.
Setting Dynamic Text Colors
Okay, I thought this would be easier, but I must be missing something. I have a dynamic text box with an instance name of "messagebox". I want to change the color of the text in this box. However, my code isn't working.
Here is my code:
CODEtextCol = new TextFormat();
textCol.color = 0xFFCC00;
textCol.underline = true;
messagebox.setTextFormat(textCol);
Setting Dynamic Text In A Button
My main timeline has a movie clip called "all_buttons"
All_Buttons
---------------
The "all_buttons" movie clip has 6 instances of the same button. This button a dynamic textbox variable name called "txt"
Each button inside 'All_Buttons'
------------------------------------
Each button is name button_1, button_2, button_3, etc... With the behavior of a button.
Problem
------------
When trying the following in Scene 1, Frame 1, Actions layer.....the text doesn't change.
all_buttons.button_1.txt = "Text goes here";
Dynamic Text On Sine Curve Path?
Hi,
This is really a kinda urgent requirement, I hate being urgent on forums since help takes as long as it takes usually, but I'm being pressured at the moment and can't do it.
Basically I need to have text from a dynamic/input textfield to appear in a wavy line pattern automatically. Now I'm pretty sure it can be done fairly easily with the right knowledge but I unfortunately lack that knowledge.
The idea I had was that a string is broken into individual letters and each is placed along a sine curve of a set length/width - the string/characters are repeated if necessary in order that the full width of the curve is covered. Also note that the text need not be rotated to match the lines, only _x and _y values need to be adjusted.
I have to produce a design with dynamic text similar to this (my ascii art skills are crap so please imaging that these are wavy lines rather than zig zags):
/////////////////
/////////////////
/////////////////
/////////////////
/////////////////
Please please please, I need your help - desperately, I have nothing to offer apart from the satisfaction of producing a wavy text pattern and from knowing that you have saved me from a breakdown.
Thanks guys,
Jon
Dynamic Text On Sine Curve Path?
Hi,
This is really a kinda urgent requirement, I hate being urgent on forums since help takes as long as it takes usually, but I'm being pressured at the moment and can't do it.
Basically I need to have text from a dynamic/input textfield to appear in a wavy line pattern automatically. Now I'm pretty sure it can be done fairly easily with the right knowledge but I unfortunately lack that knowledge.
The idea I had was that a string is broken into individual letters and each is placed along a sine curve of a set length/width - the string/characters are repeated if necessary in order that the full width of the curve is covered. Also note that the text need not be rotated to match the lines, only _x and _y values need to be adjusted.
I have to produce a design with dynamic text similar to this (my ascii art skills are crap so please imaging that these are wavy lines rather than zig zags):
/////////////////
/////////////////
/////////////////
/////////////////
/////////////////
Please please please, I need your help - desperately, I have nothing to offer apart from the satisfaction of producing a wavy text pattern and from knowing that you have saved me from a breakdown.
Thanks guys,
Jon
Setting A Dynamic Text Fields Content
I have am creating text fields dynamically using:
this.createEmptyMovieClip("shape", 2);
shape.createTextField("textField", 1, 0, 0, 100, 200);
with (shape.textField) {
selectable = true;
type = "input";
html = true;
border = true;
background = false;
multiline = true;
text = "enter lable here";
autoSize = true;
}
path to each of these is on a count as follows
_root.MC1.shape.textField.text
_root.MC2.shape.textField.text
What I want to do is have a path like:
"_root."+target+".shape.textField.text" = TextVar;
But for some reason it will not work - guess it is something to to with the path to text being text not a var called text?!?
Can anyone help?
Cheers in advance
Ol
Setting Variable From Dynamic Text Field.
ok im getting close now.
i have a dynamic textfield with an instance name of recorde_id
my code goes to a database and brings back a number an displays it in this dynamic text field. this works fine.
im trying to set a variable called finalScore = "the dynamic text field";
how do i do this.
cheers aron.
Dynamic Text Field Setting Bold
I have ran into a problem. Its very simple really I have a dynamic text filed in the text field properties I have set it to bold and I talic. when run the movie the text field never show bold or itelic. What am I doing wrong
(NUB) Setting Dynamic .text And Variable Scope
Hello all,
First, using flash9 and ASC3.
Complete newbie to flash programming but couldn't find answers in this or the newbie forum. I am an artist but have some limited programming experience. But always seem to get caught up on simple logic issues.
I am trying to set (and keep track of) a dynamic text field in a movie clip. I am adding the movie clip from the main timeline and trying to set its properties as well.
//Main timeline code
//create key
var addkey = new key();
gameclip.addChild(addkey);
addkey.name = (j+"_"+i);
addkey.x = i*tileSize;
addkey.y = j*tileSize;
addkey.blockletter.text = game[j][i];
//this is the problem line. game[j][i] references an array of text letters. i.e "A"
trace(addkey.blockletter.text);
//Movie clip code
function initblock(letter){
blockletter.text = lettter;
blockletter.x = 10;
blockletter.y = 1;
//blockletter is the name of the dynamic text field
}
initblock("A");
So, the problem line in the main code above does not give an error and the trace confirms I am setting *a property correctly. However, it's obvious I'm not setting the dynamic text field in the addkey because it does not change.
I have also tried setting a global variable in the main timeline to hold the value for letter and reference that when I call the initblock function in the movie clip but I can't seem to create or reference global or root variables. -- I know, pretty pathetic.
Any help or logic insights would be greatly appreciated. I hope this post is appropriate for this and not the newbie forum.
-cheers
Setting Variables For Dynamic Text Boxes...
i'm trying to set up a PHP / Flash email form. I know how to set up the PHP portion but i dont know what to do in flash.
I have the dynamic text boxes labeled as (name_txt, email_txt, message_txt) and i'm kind of lost as to where to go from there.
Any help would be appreciated.
Setting Dynamic Text Via Class Function
I'm trying to use a button class and add the text label to the created buttons dynamically via an array.
The other functions in the button class are working correctly, except for this one:
private function setTitle(_val:String):Void
{
title_mc.title_txt.text = _val;
}
"title_mc" is the instance name of a movie clip containing the button background and a dynamic text field with the instance name "title_txt".
The button text is being passed into the function correctly via "_val". (I can trace it and see that it is there.)
When I run the movie, however, I get the following error:
"There is no property with the name 'title_mc'."
I'm just about ready to junk the whole object-oriented class thing and go back to setting up the buttons manually (where I would easily have had it completed by now).
All thoughts greatly appreciated.
Thanks!
CP
Dynamic Text Box - Setting Character Limit
I'm able to do this with an Input field, but the project I'm working on requires that the text field be dynamic. There isn't an option to set the character limit for a dynamic text box like there is with an input field. Is there an actionscript for this?
much thanks
Setting Dynamic Text In Tweened Animation
I'd like to be able to dynamically control text in an imported clip, where the artist has used shape tweening to animate the text.
From my reading of the documentation, to do shape tweening of text you have to convert it to objects which can no longer be accessed as a text field. So clearly I can't do this directly. Is there any trick or work-around that might help?
Like, could the text be left as a text field, then somehow, the main application does the work of converting it to an object at runtime so that it will work with the tweening? (That seems like a pretty dubious prospect honestly, but it's all I can think of...)
Setting Dynamic Text Field In Buttons?
Ok, I'm a newb
And I have a problem: I want to make completely dynamical buttons in which I want to set the text field.
I have a pretty plain movie in which I have created a button which only has an UP-state. In this button is a dynamic text field, which has the instance name dynText.
What I want to do is to drag, say like 10, instances of the button on to the stage and give them unique instance names. For ex button1, button2.... button10.
Then I would like to be able to change the text on each button individible...
Please, help - anybody???
Variable Path Refering To A Dynamic Text Field
I'm creating a dynamic text fields and need to refer to these by a variable path. The "tf" in the following script has to be variable depending on a counter.
Code:
tf.text="Hello I'm the first text";
I tried following code put it doesn't work!
Code:
[_root.counter].text="Hello I'm the first text";
...any Ideas?
thx, alex
Problem Getting Dynamic Text To Update Using Varibales In Path
hey guys,
i cant seem to get this working. I am using a variable in the path to set a bunch of dynamic text fields as my actionscript parses the XML file...however, the time I try to set a text value using a dynamic path it doesnt work, but when I type in the direct name without using a variable, it works. Any ideas? Im lost.
Thanks!
Here is just the part that isnt working
ActionScript Code:
date1_txt.text = "testing"; // THIS WORKS
var boxName:String = new String("date"+numz+"_txt.text");
this[boxName] = tourInput.Tour.datez.text()[numz] + " " + tourInput.Tour.showtime.text()[numz]; // THIS HOWEVER DOES NOT WORK...
Here is the whole thing with XML and all.
ActionScript Code:
import flash.net.*;
import flash.events.*;
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
var numz:Number = 0;
var varz:String;
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("tour2.xml"));
function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
ParseBooks2(xmlData);
}
function ParseBooks2(tourInput:XML):void {
var tourList:XMLList = tourInput.Tour.datez;
for each (var dateElement:XML in tourList) {
// create entries
["but"+numz+"_but"]addEventListener(MouseEvent.CLICK,onClick);
var ur:URLRequest = new URLRequest(tourInput.Tour.ticketurl.text()[numz]);
function onClick(e:Event):void{
navigateToURL(ur, "_blank");
}
var boxName2:String = new String("date"+numz+"_txt.text");
this[boxName2] = "TESTING";
date1_txt.text = "testing"; // THIS WORKS
var boxName:String = new String("date"+numz+"_txt.text");
this[boxName] = tourInput.Tour.datez.text()[numz] + " " + tourInput.Tour.showtime.text()[numz]; // THIS HOWEVER DOES NOT WORK...
trace(this[boxName] + "TESTHILSFHLSHGDSHGKHSGLJSXXXX");
numz++
}
}
this.stop();
Problems With _txt.text Setting Dynamic Text
When a user clicks a button, I want the feedback to reflect various text. In this case they click continue to read additional text that does not fit on my stage.
I have a dynamic text box with an instance name of feedback_txt with all characters embedded.
In my actionscript in the frame actions I have the following:
continue_btn.onPress = function(){
feedback_txt.text="This is the text to display in the dynamic text field"
};
Problem is, only the first couple words show up. Once I click on the dynamic text box, the rest of the text is displayed.
Any idea why this is happening?
Thanks.
Setting Text In Scrollable Dynamic Text Field
This is not really a question, though maybe someone can explain this behaviour.
1. Create a dynamic text field
(instance name: yadda_txt; variable: yadda)
2. Drag a scrollbar component on it
(target textfield: yadda_txt)
3. Set text
Method 1:
yadda_txt.text = "some very very long text... etc... etc...";
Method 2:
yadda = "some very very long text... etc... etc...";
If you use method 1, the scrollbar will become active.
If you use method 2, the scrollbar will NOT become active.
Is it because the target textfield is yadda_txt?
Perhaps the scrollbar is listening to events on yadda_txt?
I'm actually wondering if the scrollbar really is disabled, because I can't enable it with setEnabled(true);
Unless the scrollbar checks yadda_txt which is still quite empty.
Anyone know how any good Flash books?
Setting Dynamic Text Field Variable Dynamically
Hiya guys
I know that we can set up a var for a dynamic textfiled by putting it in the box but is there a was to do it by code, every route I have taken has failed,
any help greatly appriciated
ta
Zen
Setting Input Text To Dynamic Text
ok here's my problem:
i have a few textfields that are at first dynamic.
when clicked a button they change to input text. that works
in my script i have this :
Code:
editFields = [Name, lastname, adress, phone, email];
later in the script when clicked the button
Code:
editFields[i].type = "input";
all ok up untill now...
i created another button and when clicked on that i want all textfields again set to Inputtext, al except the 'name'textfield
that one has to stay dynamic.
my problem is that i can't figure out how to keep one textfield
dynamic.
anyone know how i can achieve this ?!
thnx in advange
assenoost
Setting Text In Dynamic Text Movieclip?
Is it possible to set the text in a movieclip that used to be a dynamic text field?
Create a dynamic text field with the Text Tool from the toolbar.
Convert to Symbol.
How to set its text? Looking at the available Movieclip methods and properties, I don't think it's possible.
But.. if I don't convert my text field to a movieclip, I can't target it for printing.
Problems With Setting Dynamic Text To "multiline."
Lately, I've been having problems with dynamic text. Everytime I set dynamic text to be multiline, it doesn't work. Well, sometimes it does, for some unknown reason, but most of the time, it doesn't. I also set it to "render as HTML" and I add a link to it, but doesn't wrap. This is getting quite frustrating because I have to keep deleting the .swf from my site, editing it, re-publishing it, and then uploading it again. Can anyone help my bad self?
Dynamic Path
Hi there, I am using Flash 8 Actionscript 2,
I have in a variable some data I want to load into a dynamic textbox. The var of the textbox is str1. My script looks like
str1 += rootMC.My_1_TextBox;
The system works fine, the reason I used += is I want it to go through and add different data to str1. The way this is setup is that I want My_1_TextBox to be used for all this data. so I want the number to be dynamic, sort of like.
numbervar += 1
str += rootMc."My_"+numbervar+"TextBox";
But of course it doesn't work. I'm not sure how to do this, I'm no pro at actionscript, so please help me out. Thanks.
Dynamic Path
I can't seem to figure this out, but it has to be simple. Something like this maybe?
Code:
var varPath = "430";
_root.mcAdmin4.mcJack + varPath + .onRollOver = function() {
//do stuff
}
I just want a variable in the middle of my path.
Dynamic Path
I have a variable called: _root.activeButton
This variable contains a path to a movie clip (i.e. _root.menu.aboutMe) witch i want to control. How do I do that without using the Tell Target command?
Dynamic Path. HOW?
How do i control a movie clip which path is contained in a variable?
I.E.: I have a variable called:
_root.activeButton
The variable has this path as a value:
_root.buttons.button1
Q: How do I tell _root.buttons.button1 to go to frame 1?
I think it is something like this, but I can't remember exactly:
[_root.activeButton].gotoAndStop(1)
Dynamic Path
I have a variable called: _root.activeButton
This variable contains a path to a movie clip (i.e. _root.menu.aboutMe) witch i want to control. How do I do that without using the Tell Target command?
|