Referencing Dynamic Text Boxes By Instance Name
Hey Guys,I have some code below here that creates a bunch of textfields based on the len variable which is the length of the initial for loop in the function. The first time the function is run, everything works perfectly. When the function is run a second time all I am trying to do is modify the text in the fields that were created the first time around. I am having great difficulties referencing the name and only one of the text fields are switching as it stands.. see the code: ActionScript Code: private function buildTextFields():void { var i:uint = 0; // Number of textfields on this page len = courseXML..module.(@num==moduleNum).page.(@num==pageNum).@txtFields; // If this is the first run, create the text fields and populate them with text if (textActive == false){ for (i=0; i<parseInt(len); i++){ console(courseXML..module.(@num==moduleNum).page.(@num==pageNum)["txtField"+i].(@langPref==lang)); txt = new TextField(); //Text Field Inits txt.styleSheet = _styleSheet; txt.wordWrap = true; txt.multiline = true; txt.border = true; txt.width = courseXML..module.(@num==moduleNum).page.(@num==pageNum)["txtField"+i].(@langPref==lang).@w; txt.height = courseXML..module.(@num==moduleNum).page.(@num==pageNum)["txtField"+i].(@langPref==lang).@h; text_loc = courseXML..module.(@num==moduleNum).page.(@num==pageNum)["txtField"+i].(@langPref==lang).@l; text_x = courseXML..module.(@num==moduleNum).page.(@num==pageNum)["txtField"+i].(@langPref==lang).@x; text_y = courseXML..module.(@num==moduleNum).page.(@num==pageNum)["txtField"+i].(@langPref==lang).@y; txt.text = courseXML..module.(@num==moduleNum).page.(@num==pageNum)["txtField"+i].(@langPref==lang); console(text_x); console(text_y); contTextVers.addChild(txt); sm.addItem(txt, text_loc, parseInt(text_x), parseInt(text_y)); } }else if (textActive == true){// During the second run, just change the text.. however, we cannot reference the name txt here as the items we want to reference were created previously and are already on the stage? How do I reference them by name? Tried using an array to store the name, but I cannot access the variable directly?? Only changes one text field. for (i=0; i<parseInt(len); i++){ txt.text = courseXML..module.(@num==moduleNum).page.(@num==pageNum)["txtField"+i].(@langPref==lang); } } textActive = true; } Thanks for any assistance.
ActionScript.org Forums > ActionScript Forums Group > ActionScript 3.0
Posted on: 11-18-2008, 08:30 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Dynamic Referencing An Instance Name
Ok, What I want to do is dynamically reference the instance of an object. My goal is to avoid writing _root.box1.engine.homeX a million times. Everything is the same in this except "box1". Box1 changes from "box1" though "box72" so I am trying to write it in a way that uses the least amount of code. Is their a way to change "box1" on the fly.
Here is the script.
function moveThing(point1, point2)
_root.box1.engine.homeX=point1;
_root.box1.engine.homeY=point2;
}
Dynamic Referencing The NumChildren In A Mc Instance
I am trying to dynamically read the number of children in movieclips that are created at runtime. These mc "windows" have several items in them, (scrollbars, text fields, image, etc...). I can run tweens and stuff by referencing these mc instance with:
DocClass(root).popupPages.getChildByName(pageToBuild) // works as a reference to a specific item
However, this same syntax fails when I add: numChildren
DocClass(root).popupPages.getChildByName(pageToBuild).numChildren // generates an error.
DocClass(root).popupPages[getChildByName(pageToBuild)].numChildren // generates an error.
What I want to do is run a for() statement on the mc to have it read back all of its contents. However, it fails to do that because it can never give me the number of children it contains.
Variables Using Instance Names And Text Boxes
OK, a tricky one this.
I have a movie clip. It has 21 frames (not important) but in each of these frames there is a button, and an action to take the variable from one text field ("status") and make it go to the frame in that movie clip with a label equal to the value in "status", and then that frame put the value of "status" into another text box.
The problem is, that the movie will eventually have 116 of these movie clips. Yes, a hundred and sixteen. So, the current method I am using requires me to replicate the contents of this movie clip 116 times (I can't just copy and paste the original clip, because each one has to write to a different text box!), so I thought there must be a way of just having one...right?
The idea I had was to make one movie clip, copy it 116 times, and give each one a different instance name. This would be g1, g2, g3...g116. Then, instead of this:
On (Press)
Go to and Stop (/:status)
End On
and also
Set Variable: "/:g1" = /:status (changing "g1" in every one...which is what I have currently been doing)
Couldn't I have one mc, copy it, and instead, I'd have this inside it:
Keep the button action:
On (Press)
Go to and Stop (/:status)
End On
but then in the frame, instead of
Set Variable: "/:g1" = /:status
I could have
Set Variable: /:_name = /:status
Where "_name" is the name of the INSTANCE for each MC. Is this possible? So I would end up with 116 of the same MC, each with different instance names, then have 116 text boxes with the same names of the instances.
When called, the Set Variable action will take the value of "status" and write it into the text field (in the main timeline) with the name equal to that of the MC instance.
I hope that makes sense.
Tne problem is that
Set Variable: /:_name = /:status
DOes not work. Nor do any variations of it. I think I mjst be doing something wrong, as it seems a perfectly logical way of doing things.
If I have to have 116 diffferent movie clips, hte movie size will be about 1.5MB!! With one copied 116 times, it will only be about 250 ish.
Any help, please?? Pretty urgent too, sorry!
If a reply is too complicated to explain here, then please email me (noodlesdunn@yahoo.com).
Thanks!!
Input Text Boxes & Instance Names...
Hi there,
I have Input text boxes in a flash form
First Name : [______] instance name = box1
Email Address: [______] instance name = box3
and a submit button that retrives variables from a php
file i.e. firstname, and email,.. then "Posts" those details
back to the php file to email the form results...
[submit button]
on (release) {
thankyoubox = "Thank you " + + box1.text;
thankyoubox2 = "Thank you " + + box1.text + ", Please Check Your Inbox For Your Confirmation Email.";
firstname = box1.text;
lastname = box2.text;
email = box3.text;
inquiry = box4.text;
if (box1.text.length != 0 and box3.text.indexOf("@") != -1 and box4.text.length != 0) {
loadVariablesNum("email-script.php", 0, "POST");
gotoAndPlay("confirm");
} else {
warning = "Opps! Are Your Details Correct?";
}
}
ALL That works fine!
Here's where my headbanging begins...
After I've sent that email off, I have another "email form" ready
to send straight after that one...
Once they send it. they get the msg :
"Thank you " + + box1.text;
(Thank you aj)
Would you like more information on blah, blah, blah?
the user has the option to say [No Thanks] or [YES, Send Me More Info],
When the user clicks [YES], the forms not sending the users firstname & email from the box1.text input boxes, returning the value as "Undefined".
I guess my question is how can I store the "box1.text" info and retrieve
them later on for the next [YES] submit button??
I'd really appreciate any further advice or assistance!
It's probably something really stupidly simple...
Im still only a newbie!
Dynamic Text Boxes / Resizing Text Boxes
I have a site with a dynamic text box that I have initialized (I'm not sure that that is the correct term) at the beginning with:
myText = new LoadVars();
myText.onLoad = function()
{ textBox_txt.htmlText = this.content;
};
myText.load("text/bio.txt");
stop();
Then I have just used a text box throughout with the same instance name, although sometimes I have it on a new keyframe. I assumed I could just keep loading text into it on different frames with:
stop();
myText.load("text/performances.txt");
This appears to be working, except that sometimes it seems to be confused and the text box on a certain frame has the wrong text in it. Do I have to initialize one for each frame in order for them to display the right code? What could be causing it to load another text file if it's frame action is telling it to load something else? It seems unnecessary to have to re-initialize it for a new text box instance in every new frame, but is that the way it has to be done?
Also, I'm not clear on resizing text boxes. It seems like if I use the width and height numbers to resize this text box on different pages then it changes the size of the text inside, and the scroll bar (the UIScrollbar) is a little squishy looking sometimes. How does this work?
Thanks for any help.
Code In One Instance Is Referencing The Previous Instance
I have the following code in a button symbol:
on (release) {
gotoAndStop (2);
_root["answer" + this._name.substr(1)] = "true";
}
I also have an instance of the button in 2 consecutive keyframes. The first instance is named "Q5" and the second instance is "Q6".
I expected the code: this._name.substr(1)]
to reference "5" and "6" from the instance names (Q5 and Q6), but instead instance "Q6" is referencing "Q5"!
The *really* strange thing, is that when I insert a blank keyframe between the two original keyframes, the code works perfectly!
Does anyone know what's happening?
Input Boxes - Then Printing A Frame With Dynamic Boxes With The Input Text In Them...
I have created a flash document with input text... I put the input text with a a variable for each.. I need to print the variables on a seperate page. I used a bounding box inside a movie clip and the printing is working correctly... However it is not reading my input boxes into the dynamic text boxes..
What I did is I have the input boxes on the root timeline........ You input it and go through a few frames and you get the option to print from a button (which is printing 2nd frame of a movie symbol) NOTE: the printing is working correctly using #b.... This is what I have on the 2nd frame of the movie clip for the dynamic text boxes to read the input boxes and place those variables inside of those dynamic text boxes so it will print them as they inputted them...
Here is what I have for my button:
on (press) {
print(_root.Printing, "bmovie")
}
Here is what my variables are on the input boxes which are sitting on the root timeline, each word is a variable:
curious
passionate
accountable
resourceful
commited
teamwork
open
engerizing
External_focus
Clear_thinker
Imagination_courage
Inclusive_leader
Expertise
INSIDE THE PRINTING MOVIE I HAVE A FRAME WITH THIS ACTION ON IT FOR THE DYNAMIC TEXT BOXES TO READ THE INPUT TEXT BOXES:
External_focus1 = _parent.External_focus;
Clear_thinker1 = _parent.Clear_thinker;
Imagination_courage1 = _parent.Imagination_courage;
Inclusive_leader1 = _parent.Inclusive_leader;
Expertise1 = _parent.Expertise;
curious1 = _parent.curious;
passionate1 = _parent.passionate;
accountable1 = _parent.accountable;
resourceful1 = _parent.resourceful;
commited1 = _parent.commited;
teamwork1 = _parent.teamwork;
open1 = _parent.open;
engerizing1 = _parent.engerizing;
FOR SOME REASON IT IS NOT PRINTING MY INPUT BOX INFORMATION IN THE DYNAMIC TEXT BOXES.... DOES ANYONE KNOW WHY?
Referencing Dynamic Text Fields
Hi,
I'm a C/java/php programmer and I decided to pick up actionscript.
The transition has been smooth thus far. Actionscript is so very forgiving! No seg faults.
However, I've been pulling my hair out over one issue:
creating text fields in a loop and referencing them later.
What I am attempting to accomplish:
given an array of strings, or objects with a string variable, I want to create a text field for each, a text field which I can specifically move or resize later.
Now, this would be trivial if createTextField actually returned something!.
Now, it works fine for simple stuff like this:
PHP Code:
_root.createTextField("blah",5,10,10,20,20);
_root.blah.text = "silly";
but my weak attempt to do it dynamically didn't work out
PHP Code:
size = 10;
for(var i=0;i<size;i++) {
_root.createTextField("blah" + i,5+(i*10),10+(i*10),10+i,20,20);
("blah" + i).text = "silly";
}
By the way, _root.("blah" + i).text = "silly"; gives an error message.
I'm not used to referencing things as strings. That's crazy.
Anyway, any help would be appreciated.
Referencing Dynamic Text Field On Button
I have a button which has a colored square as well as a dynamic text field (buttonText). The over state inverts the color of the text and square.
I place the button in a MovieClip(ButonMC) and put an instance on the timeline (Button1). I put other copies on the timeline as well (Button2, Button3).
How do I refer to the dynamic text field in each instance?
_root.Button1.buttonText does not seem to work. I guess I could take the text field out of the button symbol and place it in the ButtonMC movie clip. But then I would lose the 'over state abilities'
TIA
Referencing A Frame Label With Dynamic Text
Hi All,
I'm trying to reference a frame label which incredments by 1 every time it goes through a for loop. I don't know the correct syntax to reference the frame label when it needs to be part hand coded and part dynamic. i.e.:
gotoAndPlay('video'+i);
FULL CODE HERE:
Code:
for(l=0; l <= 11; l++){
_root["vid"+l].onRelease = function(){
_root.vid_container.gotoAndPlay['video'+l];
}
}
Hope you can help,
Cheers,
Gareth.
Referencing External Loaded Dynamic Text
I found this tutorial on Kirupa that explains how you can load and display external text loaded from a text file.
http://www.kirupa.com/developer/mx/m...ynamictext.htm
They place code on buttons that loads seperate text files into a dynamic text field in the flash app.
Here is the code for the button
Code:
on (release) {
loadText = new loadVars();
loadText.load("TEXT1.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
}
I would rather use one text file for all my text and have certain pieces displayed when required.
On frame 1 of my movie I am going to need to have the loading code for my textfile. Then when I go to certain frames in my movie, I have code there that populates a textfield.
Any ideas?
Referencing Instance
I'm very new to Flash and Actionscript in general, but not to programming. Here's my question: I have a class game, that's linked to my document.
Within the game classes constructor I have the following code:
ActionScript Code:
addChild(player);
player.init();
mouseInput = new mouse(this);
Within the mouse class I've created a track function:
ActionScript Code:
private function track(event:MouseEvent) {
x = event.localX;
y = event.localY;
player.applyForce(player.x + (x - player.x) / 10, player.y + (y - player.y) / 10);
}
However, I'm having problems accessing the player class from within the mouse class.
Here's a look at the mouse classes constructor:
ActionScript Code:
public function mouse(movieclip) {
movieclip.stage.addEventListener(MouseEvent.MOUSE_DOWN, buttonDown);
movieclip.stage.addEventListener(MouseEvent.MOUSE_UP, buttonUp);
movieclip.stage.addEventListener(MouseEvent.MOUSE_MOVE, track);
}
I have a hunch that I should be trying to access player via a reference to the movieclip that I pass into the mouse classes constructor (as player is a child of game). If this is the case, what's the best way to go about this? I suppose I'd want a pointer or reference as a private var within the mouse class?
Instance Referencing
Hi All,
I am new to Flash and would like some help understanding how instances on the timeline are referenced.
I have a movie that needs to load all the text via XML, this I can do. I am storing all the text values in an array and would like to update all dynamic text instances at the start of the movie (to keep all the code in one place for easy maintenance).
If I use the following code on the first frame of the movie, nothing happens:
Code:
_root.movieclip_name.instance_name.text = value;
If I use the same code on the frame where the instance is placed on the stage it works. Why can I not refer to an instance on the timeline in my first frame or am I just doing something wrong?
TIA
Phil.
P.S - I am using Flash 8 Pro
Referencing MC's Through Their Instance Name In AS3
I have no problem instantiating Movieclips fully programmatical through actionscript (linking MCs in the library with a class and then creating a new instance and adding it to the stage).
But sometimes these movieclips already have quite a lot of content that is already positioned and styled. Lets say i made a MC 'textDisplayMC' (in the library, its not on the stage), that MC has for example a button on its stage and a dynamic text field, both have instance names, 'textFld' and 'closeBtn', i link this to a class TextDisplayer that extends MovieClip.
So i can create new instances of TextDisplayer and put them on the stage
var textDisplay:TextDisplayer = new TextDisplayer();
textDisplay.x = 10;
textDisplay.y =10;
addChild(textDisplay);
cool, that works ... but now i would like to put text inside that dynamic text field with instance name 'textFld', but i dont know how to get hold of that from my textDisplay. or i would like to add eventlisteners to that button ... but i dont have a clue how to get hold of that button.
Ideally in my TextDisplayer i have some private property of the type TextField, but then i would need a way to 'link' that existing dynamic text field in the MC to the private property in the Class somewhere in the constructor
I hope you guys understand, because i guess its sounds a bit confused ...
[AS2] Changing Text In Dynamic Text Field With Dynamic Instance Name
I dont know what I am missing here but what I want to do is change the text inside a dynamic text field via actionscript. the code I am using runs in a loop within a function. Trace is outputting the correct values.
PHP Code:
for(i=0; i<=4; i++) {
if(_root["order_"+ q][i] == 0) {
["order_"+ i]text = "First";
trace("first");
} else if (_root["order_"+ q][i] == 1) {
["order_"+ i]text = "Second";
trace("Second");
} else if (_root["order_"+ q][i] == 2) {
["order_"+ i]text = "Third";
trace("Third");
} else if (_root["order_"+ q][i] == 3) {
["order_"+ i]text = "Fourth";
trace("Fourth");
} else if (_root["order_"+ q][i] == 4) {
["order_"+ i]text = "Fifth";
trace("Fifth");
}
}
basically I want to do this -
PHP Code:
order_0.text = "First";
So how can I change this line to work as expected?
PHP Code:
["order_"+ i]text = "First";
EDIT- The instance names for the dynamic text fields are set
Thanks
Dynamic Text Boxes
I have several dynamic text boxes which consist of user input on my site. The user fills them out then clicks on a submit button. I have this all figured out, but what I want to do is clear the text from the boxes after I play the successfully sent message.
Dynamic Text Boxes
ok, this may be confusing.
I have a swf which opens inside another. The one that opens inside the other has a dynamic text box linking to a notepad file. When I change the resolution to a lower setting (to see how it looks) the text box does not appear to scale. The linked text does scale so what happens is some of the text disssapears.
If this makes sense to anyone, please help!
Dynamic Text Boxes
Hi folks.
Im using the dynamic text tutorial in flash kit to load up an exterior text file into some dynamic text boxes.
The following code loads the text into the movie:-
loadVariablesNum("Files/student_info_1.txt", 0);
The trouble is that when I embed the dynamic text boxes into a MC and then drag it onto the stage, it stops working
Why oh why?
Please help
Help With Dynamic Text Boxes
Hello,
I am trying to make A input text box react with a
Dynamic text box.
Here is what i mean.
The input text box is called "Box1" and The Dynamic
text box is called "Box2". Now say if i type the word
"flashkit rules" I want the dynaic text to to say "I
agree".
Does anyone know what i mean?
Or do you want me to expalin it more?
Thanks in advance, William Jenkins
Dynamic Text Boxes
ok, I got a few small, nigley problems with these damn text boxes and I'm hoping someone else has experienced them and found a solution.
Problem 1: I use two seperate dynamic text boxes each formatted differently (text size and colour) that refer to the same variable from a text file. Both of them have no trouble reading the text, but sometimes the second text box adopts the formatting of the first. very annoying and I've no idea why it does this. I don't want to have to refer to another variable with exactly the same data as the first.
Problem 2: Text wrapping in dynamic text boxes....some of my dynamic text boxes have a few paragraphs of text in. Sometimes, the second or third paragraph of text doesn't wrap but disapears beyond the boundary of the box. If I zoom in and out of the movie, it will often correct itself???
Any ideas greatly appreciated.
O.
Dynamic Text Boxes
Can you put lines and squares etc into a dynamic text box?
I want to be able to have boxes in the dynamic text field so that I can seperate the text.
Thank you for your time,
Ben
Dynamic Text Boxes
Hi All,
I'm working on Flash-MX and want to develop a series of dynamic text boxes. I've a list of items in an Array and i show them with Check boxes, and when user selects items in that list, in next step all those options should be displayed in separate text boxes.
How is it possible? I don't want to use movieclips to create it dynamically.
TIA
Shailendra
Dynamic Text Boxes
I've created a scolling dynamic text box, which uses a text file to fill the text box. I've got two problems with this -
1. The font is squashed. How do I stop this?
2. How do I make some of this text bold font?
Any help is gratefully accepted!
ZapCat
Dynamic Text Boxes :D
im using Flash MX and what really weird is that i cant get variable to write into the text boxes im using, i trace them, and they work in the out put window, but not actually in the dynamic text field.
is there something new i dont know about. ?
the way im doing it is in the first frame i have this
Code:
textBox = "test"
trace(textBox)
the trace works , but nothing appears in the dynamic text box.
Dynamic Text Boxes
Hey all!
I’m creating a game where in order to shoot at enemies you need to collect your ammunition first. I’ve created a dynamic text box where it displays the amount of amo you have collected, and as you shoot…your ammunition decreases.
I would like to make it so that if you have zero ammunition…you don’t have the ability to shoot anymore, but I’m having a little trouble making it work.
Here is my code…what am I doing wrong?
if (amo >= 1){
collect(); //function which allows the character to shoot
}
if (amo <= 0){
walk(); //function which does not allow the character to shoot
}
is there a certain way you have to read values from dynamic text boxes??
Please help me!! Thanx so much!!
Dynamic Text Boxes
Hi there
i am tring to send text from a input text box to another dynamic text box, it works fine using the varible name option and when the dynamic box is on the same timeline, but no ive moved within a movie clip and now it does not work,
ive tried _root. and _global. but no luck
Please help
Jonathan
Dynamic Text Boxes
I have a problem with dynamic text boxes...
I have a complex but self-contained movie clip that works just fine AS IS when I put it into its own .swf file on its own. BUT, when placed inside another movie clip, it stops working the way I want. I know how dynamic text boxes work, as evidenced by the fact that on its own, this movie clip works just fine. It doesn't reference anything outside of itself.
Can anyone give me some common problems people have for not getting their data to show up in dynamic text boxes? I mean, I have a text box right on screen with actionscript giving the variable a value. It doesn't work unless its in its own movie. Any ideas? (I HATE FLASH)
Cannot See Dynamic Text Boxes
Hi All,
I Urgently need help with this one. I never had such a problem before. I made an email validation form in FlashMX, then I saved it as Flash 5 and exported it in Flash 5. This email form works fine when I look at it in the player alone, but as soon as I load it into the main movie the dymanic textboxes become invisible. But the button still appears. Can anyone please help. I thank you in advance.
Look at the main movie here: http://www.air-tecm.com and click on 'contact' to see the email form. Then also see the form alone at http://www.air-tecm.com/contact.swf
G-towr
Dynamic Text Boxes
How do you anti alias the text in dynamic text boxes, xo they look ugly.
Dynamic Text Boxes
Is it possible to create text boxes dynamically in FLash, like we do in VB.
Please let me know.
Jayakumar
Dynamic Text Boxes.
ok. so i can load my textfile variables into a dynamic text box...thats cool.
am i correct in the assumption that i CANNOT load anything else into them.
i.e. MC's.
if this is the case...does unloadmovieclip work with getting rid of loaded text files already showing in my dynamic text field?
Dynamic Text Boxes
Can you have multiple dynamic text fields in 1 mc and load different data into all of them at the same time? How is this done since I've been trying for the past 2 days and can't get it to work. Thanks!
Dynamic Text Boxes
Does anyone know whether dynamic text boxes have to be white? This is probably a really stupid question + I am sure I have missed something very simple but I am new to flash and I want to create scrollable text on top of an image.
I have created the buttons but the dynamic text box always comes up solid white so instead of seeing the image under the text I just have a white box containing the text.
Any help or pointers would be much appreciated because I can't seem to find the answer to this anywhere.
Dynamic Text Boxes
can you have two dynamic text boxes in 1 scene? i am trying to load two different texts to two different boxes and one will work but the other says undefined. i have check everything and cant figure out why it isnt working.
Using Dynamic Text Boxes...
Alright, I've heard plenty of rather complicated answers to my simple problem. I'm making a website for a local organization, and I want to make it in flash. I have a design all laid out in my mind and everything. The problem is that all the members of the club need to be able to access and change the text in it. None of them have Flash or Frontpage.
Here's what I need to do:
I need to have dynamic text boxes which call on a .txt document which is located in the same "folder" as the flash document.
That way, the members can just update the .txt document! It CAN'T be that difficult to do. All I need is the actionscript necessary for doing this.
Thanks for your time!
Dynamic Text Boxes
i cant seem to change the output font, using the properties inspector, whoudl i be using script?
Dynamic Text Boxes
What are dynamic text boxes?
haha, ok Im joking
Anyways, hey everyone. I have a question about Dynamic text boxes that could realy help me out.
Ok, as you know, when you place a scroller component and target it to a dynamic text box, the scroll bar will appear once the text box's text passes the height of the text box itself.
Hence the scroll.
But until the text gets to that point, the scroll is not visible but the bar is, leaving the simple white rectangle. Looks rather bad.
So my question is this. Is there way, when you put text into a dynamic text box, to tell if the text needs to be scrolled in which you then make visible a scroller component?
Thanks everyone!
Oh, and for those who helped me and my brother out on our first website, thanks alot (especially Kortex for his patience). You can see our website here at www.littlephotographer.ca
Dont judge too harshly, it is our first website afterall
Dynamic Text Boxes
Hello,
I am using Flash 8 Pro.
1) Is there anyone to show and hide text boxes? i.e. _visible etc.
2) Is there a command to flush and clear a dynamic text box when it is being updated every 5 seconds.
Dynamic Text Boxes
Hi,
Not sure if this is in the correct section, sorry if not!
I have got a php page with a rich text editor that updates a dynamic text box in my flash file.
I can add bullet points etc, but i can't change the text colour, size etc via the rich text editor as it just remains how it formatted in flash.
Any ideas how i make the dynamic text box reflect the formatting of the rich text editor and not how it is set in flash.
Many thanks,
Mark
Dynamic Text Boxes
Quick question, I'm building a movie that calls in text for a slide show.
The text is loaded one line at a time in bullet form like so:
• line #1 of slide show
• line #2 of slide show
• line #3 of slide show
My question is, how do i get the next line of text to load under the last line?
If a single bullet point is 2-3 lines long, how do i tell the next line to get the height of the previous line and start say 25 px under it.
if all the text that is loaded is only one line long, then i can do something like this:
Code:
text1._y=100
text2._y= text1._y+25
text3._y= text2._y+25
but if all the lines are different heights it becomes tricky. Any help would be appreciated.
Dynamic Text Boxes
I have to make a mobile phone in Flash and when each of the numbers are pressed it makes a sound and the corresponding number comes up on the screen.
I have used a dynamic text box to display the number. The problem is that when another number is clicked, the previous number is cleared from the screen and replaced. How can I get it to display all the numbers clicked in the correct order?
Any help is much appreciated, thanks.
Dynamic Text Boxes And '
I'm calling in text into a dynamic text box that uses ' a lot, in words such as I'm and I've and also words that have an 's. Where ever ' apears the text stops from displaying in the dyamic text box.
I have been told to try to avoid ' & and ! in dyanamic text.
I want to know if there is at all any way I can use ' in the dynamic text box, I don't want to have a bunch of misspelled words on my site.
I have tryed using "’" but that also kills the text. Does any one have any advice with dealing with this problem?
Thanks
~Chris
Dynamic Text Boxes
FL8
I have a class extending movieclip. The class has a property 'info'
which is an instance of another class.
The movie clip has a dynamic text box. Can i set its var to info.prop??
Or something similar? I dont want to break out the info from 'info'
just to display its props
Alex
Dynamic Text Boxes
Hello,
I have a flash application at the moment where i need to create labels to add to a diagram, where they can be dragged around. However i am having difficulties with the dynamic text boxes. I use an input text box, where the contents entered goes into a dynamic text box within a movie clip, which is dragable. As this application is completly dynamic, i dont know how much text will be entered into the boxes, therefore i was wondering if there was any way in which i could dynamically resize the text box depending on the amount of text entered??
Hope this is possible,
If anyone can help it would be greatly appreciated :)
Cheers
Dynamic Text Boxes
Hi
I need to place a few dynamic text boxes one under other. The problem I have is that the number of lines in the top text box will vary and I want the text boxes underneath to be aligned relative to that text box. Does anyone out there know the best way to do this.
Cheers
Dynamic Text Boxes
I have developt a site http://www.momentumdesign.com.au/
and when the dynamic text boxs in the fla file are set and I publish the swf all works BUT when I go to make changes to the text boxes copy etc I have to re size all the boxes again??
also can I link URL to dynamic text ?
Thanks
Dynamic Text Boxes
I was wondering if it's possible to have a dynamic text box that can change sizes, without distorting the text displayed in it...
I would also like to set it up dynamically... is there a way that I can do that?
Dynamic Text Boxes
Hi all
I've got a problem with some dynamic text boxes, I've drawn the boxes 100 x 100 and there's text going to be fed into them from an xml file. I've got no idea how much text will be going in the xml so is there a way that the dynamic text box can grow depending on how much text is in the xml file?
At the moment anything that's really long just gets cut off by the dynamic text box.
Any help or ways around this would be greatly appreciated.
Thanks
Rob
|