Formating Numbers In Flash 8 Dynamic Text Boxes
I have a created a simple calculator in Flash 8. The calculator computes dollars. How do I format the dynamic text boxes to have $, commas, decimal place and cents? The code I have now is attached. The results are displayed in a dynamic text box.
Can anyone help?
Attach Code
oldDate = new Date(2008,11,31);
newDate = new Date();
elapsed = newDate - oldDate;
savings.text = 39000+ (Math.floor(elapsed/(1000)*.0013));
Adobe > Flash General Discussion
Posted on: 01/20/2009 11:30:15 AM
View Complete Forum Thread with Replies
Sponsored Links:
How Do I Add A Few Numbers From Dynamic Text Boxes?
ok so i searched the forum an i cant really figure it out
i have some numbers load from an external text file into a few dynamic text boxes, ok so lets call them scoreA, scoreB, an scoreC. An say i want those numbers to all add up into a dynamic text box named SCORE.
now ive seen something about Number(string); to make the numbers in the boxes real numbers because they only add like 3+4= 34 instead of 3+4 =7. But for one where does that Number(string); go or how does it work?? an then once that is complete what should the script look like to add all 3 to equal in another dynamic text box. thank your very much if can help me
View Replies !
View Related
How Do I Add A Few Numbers From Dynamic Text Boxes?
ok so i searched the forum an i cant really figure it out
i have some numbers load from an external text file into a few dynamic text boxes, ok so lets call them scoreA, scoreB, an scoreC. An say i want those numbers to all add up into a dynamic text box named SCORE.
now ive seen something about Number(string); to make the numbers in the boxes real numbers because they only add like 3+4= 34 instead of 3+4 =7. But for one where does that Number(string); go or how does it work?? an then once that is complete what should the script look like to add all 3 to equal in another dynamic text box. thank your very much if can help me
View Replies !
View Related
Passing Numbers Through Text Boxes
Hi all,
I'm trying to make a keypad (0-9), where you can enter time amounts into a box. The box is made up of four dynamic text boxes (secondsOne, secondsTwo, minutesThree, hoursFour).
Numbers always enter into secondsOne first, and they can be run through the four boxes infinitly, until you stop pressing the keypad buttons (this just means you are not limited to entered four buttons, but if there are four and you do enter one, the last one will disappear).
Here is what I have, and things don't seem to be working. I havn't coded the other buttons, because once I get this one to work, its just a matter of copying and pasting the code.
So to summarize: This thing is a clock, i.e. 02:45, and as you press buttons, the respective number gets placed in the ones spot (5), and the hours spot (0) gets bumped out while the other two numbers get bumped to the left one spot, etc etc.
01:23
12:34
23:45
34:56 etc
The code may be completely off track, I was working it out with other people.
Code:
btn1.onPress = function () {
secondsOne.text = numOne;
if (secondsOne == true){
secondsOne.text = secondsTwo.text;
if (secondsTwo == true){
secondsTwo.text = minutesThree.text;
if (minutesThree == true){
minutesThree.text = hoursFour.text;
}
hoursFour.text = secondsOne.text;
hoursFour = true;
}
secondsOne.text = secondsTwo.text;
secondsOne = true;
}
secondsOne = true;
}
Any clarity would be great!
PS: Oh, and is there an easier way to do all this?
Haus
View Replies !
View Related
Dynamic Text And Formating
Right Im going potty here with this!
I got a swf file with 2 dynamic txt boxes set to HTML formating on, that call in text from a .txt file on the server....all works fine apart from the formating of the text.
I got a pixel font for normal character and a bold version of the same pixel font for the headings.
In the news txt box I want the dates to appear in the bold pixel font and the story in the normal. Now Ive got it to work by putting the <B></B> around the dates, but it only works when the dynamic text box that it's loading into, has embeding characters turned off..if its turned on all words between the tags dont show at all.....which is obviously no good cause it messes up if you dont have the font.
Ive tried putting in the <FONT> tags in the text file and naming the font to be used but again it doesnt show with the Dynamic txt box set to embed all characters......plus to top it all off....all my carriage returns in the text file end up as big line spaces online!
Please please please can someone tell me exactly how my text in my text file should be tagged up for bold pixel font and normal pixel font and how to show a return so it all looks proper on screen and how I can get the dynamic boxes to load the text and embed the fonts!
Thanks!
View Replies !
View Related
Dynamic Text Formating
Hello all,
I'm working on a web site where the main body text is being called from a TXT file. However, when a hard return exists in the txt file, Flash treats it like a paragraph break. For Example:
If my txt file read:
---------------------
"myText=Hello!
My name is Tim"
---------------------
Flash would render it:
---------------------
"Hello!
My name is Tim"
---------------------
Why does my dynamic text box interpret every hard return as a double return?
Thanks,
-Tim
View Replies !
View Related
Dynamic Text Formating
hey guys,
have created a dynamic textbox the loads an extrenal text file.
using the
Mytext=
blah
&
format.
I can get it lookign ok using htm formatting when i preview it on my machine , but when I upload to the web it changes the way its displayed.
any idea where I can find out formating standards for this?
cheers
vamps
View Replies !
View Related
Dynamic Text Formating
I have a dynamic text box im making scrollable so i put in the actionscrip as following:
textbox.txt = " TEXT HERE ";
The only problem is that it is a lot of text with paragraphs and what not and it wont let me add paragraphs or changes titles to bold etc. Its all just uniform.
Is there a better way to do it? If I just put the text directly in the dynamic text box with no ationscript it just keeps enlarging the text box instead of allowing scrolling....
What should I do?
Thanks
View Replies !
View Related
Dynamic Text And Formating <img>
Hi, wonder if there is a quick solution.
I have a dynamic text box that holds text and shows images using the <img> tag.
all works fine - however...... <br> or <p> will not put the next lines of text under the image... you have to keep adding them until there are enough
this isnt good for dynamic text boxs if I dont know how many lines to add.
any Ideas
John
View Replies !
View Related
Dynamic Text And Formating <img>
Hi, wonder if there is a quick solution.
I have a dynamic text box that holds text and shows images using the <img> tag.
all works fine - however...... <br> or <p> will not put the next lines of text under the image... you have to keep adding them until there are enough
this isnt good for dynamic text boxs if I dont know how many lines to add.
any Ideas
John
View Replies !
View Related
Formating Dynamic Text With HTML
Please respond, if you can help. I've been trying to figure this out on my own for several days now to no avail. I've made this post before on other forums and I haven't recieved a response. Perhaps it is because it is a common question and they are tired of answering it. Please point me in the general direction, I will figure out the rest. I would REALLY apprieciate ANY help .
Here is a short explaination of what I am attempting to do, and the first few steps I have taken to achieve this goal:
I have created a scrolling, dynamic text box within a movie clip. I would like to BOLD the headings within the dynamic text. I have used HTML within the TEXT FILE (not the text field). For example:
var7=<B>Subject Heading</B>
Question #1: Did I apply the HTML in the correct way? And is it o.k. to place the HTML tags in the TEXT FILE?
Should It look like this instead?:
var7.text.htmlText=<B>Subject Heading</B>
I then highlighted the TEXT FIELD in the movie clip and selected "render text as HTML" in the Properties Pane.
Next I attempted to embed "ArialBold" Font. But when I tried to export the Bold Font I ran into some difficulties. I selected Options>Linkage and in the Symbol Linkage Properties dialog box, I could not figure out which option to choose (Export for ActionScript, Export for runtime Sharing, Import for runtime Sharing).
The book I am using "ActionScript the definitive guide" by Colin Moock says to select "Export this Symbol". I am using MX and I belive this book predates MX. I'm assuming that I should choose "Export for runtime Sharing". But it requires a URL before Exporting. This file is for a C.D. that will not appear in a browser window. What should I do about the URL I am being asked to inclued before export? And do I also have to embed the normal Arial font in addition to the "ARIAL BOLD"?
When The .fla is exported it loads the text perfectly, the only problem is that the <B> and </B> appear within the text field as well.
What step am I missing or confusing? Thank you for responding to my post.
View Replies !
View Related
Formating Dynamic Text From Input
I'm trying to format 2 dynamic variable text boxes on one line.
1. The 1st Input text box is for a first name on a separate line
2. The 2nd Input text box is for a last name on a separate line
3. On a separate frame in my mc, it displays the firstname and lastname on a single line.
Question: Is there a way I can script which will check the length of the first name and give a little bit of space between the last name so I do have to define the lengths manually and have it look awkward if the first name and last name differ greatly between 2 sets of people
Example:
- John Doe
as opposed to
- Jonathan Doe
View Replies !
View Related
Dynamic Text Formating Problems
I am using dynamic text fields with a set width and the ability to to expand lengthwise as needed. When a line would end with the last letter of a word the next line of text contains the space that wrapped down to the next line even though it is a the beginning of the line. example:
_________________
|this is my text|
| example here. |
-----------------
I am using bulleted lists via <ul><li> tags. All my content is coming from XML. If anybody could shed some light on this subject it would be well appreciated. Thanks for taking the time.
Andrew
View Replies !
View Related
Linking Dynamic Text With Formating
Hello Everyone,
I have a quetion. Please read the posting carefully as I have specific things that I need my .swf to do.
I need to create a scrollable field in my Flash movie and then link to an external(text) file. This way a non-technical person can easily update this external file without have to go through Flahs.
HOWEVER this external file willhave formated texts(color, font size, etc.) AND images.
Please advise how I can do this. I have go through some tutorials but they do NOT help b/c they only show how to link to external text file(with no formating nor images) AND the scrolling does NOT work.
Please help.
Thank you.
Leon
View Replies !
View Related
Formating Dynamic Text Via Actionscript
I've got a dynamic text box that I am controlling from actionscript, but I can't figure out how to make a certain sentence be centered. I tried using the center tags for html but it won't work.
ActionScript Code:
TextFieldInstanceName.htmlText = "<a href='asfunction:gotoAndPlay,frameNumberOrLabelHere'>THIS IS WHAT I WANT CENTERED, BUT <CENTER> DOESN'T WORK</a>";
View Replies !
View Related
Formating Dynamic Text Via Actionscript
I've got a dynamic text box that I am controlling from actionscript, but I can't figure out how to make a certain sentence be centered. I tried using the center tags for html but it won't work.
ActionScript Code:
TextFieldInstanceName.htmlText = "<a href='asfunction:gotoAndPlay,frameNumberOrLabelHere'>THIS IS WHAT I WANT CENTERED, BUT <CENTER> DOESN'T WORK</a>";
View Replies !
View Related
Dynamic Text Formating Using External Variables?
Is there a way to store variables in an external .TXT file and use those variables in a TextFormat object? Like if I made a text file that contained the variables Underline1, font1, color1, etc. Is there a way to use those in the TextFormat object? I tried it but i could not get the external variables to work with the TextFormat object. I could use internal variables just fine. I also tried to assign the external variable to an internal variable and that did not work either.
Any ideas?
View Replies !
View Related
Formating Dynamic Text From An External Source
Is there a way to format text when loaded into your flash movie from an external source? If I load the text from a .txt file can I maybe include html tags to get it to look the way that I want it to look, with paragraphs and indents? Also can I still make it scrolling if it is loaded from an external source?
View Replies !
View Related
CSS Trouble With Dynamic Text Boxes In Flash MX
Hi all,
Thank you for reading this.
I have a dynamic text box reading content from a text file with custom scrollbars to scroll it. All this is in a movie clip. I am using a Flashkit tutorial but I can't remember which one so sorry I'm not too much use on that but I think it may have been from a guy called Patrick if that helps.
Anyway, I want to link to a style sheet that my text files can read from. How would I go about doing this? Also, how can I tell my HTML files to read from the style sheet in particular areas (i.e. links and news headings)?
Thank you very much and hope to hear from you.
Take care,
Mark
View Replies !
View Related
Is There A Way To Tween Dynamic Text Boxes In Flash 8?
actual site:
https://filebox.vt.edu/~gyanez/flash_test/
source in:
https://filebox.vt.edu/~gyanez/flash_test/source/
I am trying to do the following:
Create a dynamic text field that autosizes to fit the text both in horizontal and vertical directions (dynamic text field filled in with text by external .txt file using LoadVars).
When the user rolls over the main image the text field will tween into place (act like a caption for the picture) and when the user rolls off the image the text field will tween off the page.
I got the autosizing to work but the tween is getting confused. The way I am doing it right now is I actually created a text field on the stage and tweened it. So I think Flash is getting confused b/c the text field I created is a certain width but than at the end of tween I use actionscript to autosize it. See the site to see what I mean. The tween effect is contained in home.fla.
So I am wondering if actually just doing the creation of the textfield and the tween of the textfield in AS is the best way. Can this be done? I would then have the tween autoadjust so depending on the height of the textfield it would have to tween further up than a textfield that is only 1 line high (again look at site to see what I mean).
Thanks a bunch guys. This stuff can be frustrating but feels good when you get stuff done along the way ;-).
View Replies !
View Related
Formating Loaded Text In A Dynamic Text Box
I need help!
I designing a text heavy CD ROM. Everything is going fine so far, I am loading the txt files into scrollable dynamic text boxes. This works fine. my query is this: Is there any way to format the text that i have loaded in e.g. font size, tabs, bold etc. I havent a clue how to do it.
Please, please help someone!
View Replies !
View Related
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.
View Replies !
View Related
Problems With Loading .txt Files To Flash Dynamic Text Boxes
Hi,
I can successfuly load external txt files to dynamic text boxes, however i am having some issues when the text loads and appears in the text box.
When i test the movie and the text populates the dynamic field, the text comes out perfect however, any text after a "&" symbol does not appear.
i am using the same font(times new roman) in the note pad and in flash. I also made sure that i imported the font in the movie, just to be sure.
Ne one know how to fix this problem?
thanx
View Replies !
View Related
Dynamic Text Boxes That Store Data Into A Database From Flash 5
Hi,
I'm new to programing with flash. I know that it's possibe to store Data into a Database, but if it's possible from Flash 5 and how, I don't know! I am limited to Flash 5 at work. I am to create a program that allows the user to sumbit sentences in a text field and have the data stored to be reviewed. Any suggestions?
Also, is there a way to select words from a paragraph of text. The only way that I can think of is to make each word a button, which is really time consuming. Any guideness is greatly appreciated.
Sincerely,
tarafenton
View Replies !
View Related
Dynamic Text Boxes That Store Data Into A Database From Flash 5
Hi,
I'm new to programing with flash. I know that it's possibe to store Data into a Database, but if it's possible from Flash 5 and how, I don't know! I am limited to Flash 5 at work. I am to create a program that allows the user to sumbit sentences in a text field and have the data stored to be reviewed. Any suggestions?
Also, is there a way to select words from a paragraph of text. The only way that I can think of is to make each word a button, which is really time consuming. Any guideness is greatly appreciated.
Sincerely,
tarafenton
View Replies !
View Related
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?
View Replies !
View Related
Flash Text Formating At Runtime
Hi!
I remember seeing a flash site where there is a normal text entry box where the user can type whatever they want to.
I can do that no probs. (Set a box up as multiline input text and give it a variable name)
BUT.. you could also alter the text attributes like font, size, style and alignment (presumably by actionscripting and setting the text field up as HTML) from a menu at the top of the screen (just like MS Word etc..)
The end result was text that could be made up of text of many different sizes, fonts, colours etc...
Anyone know how this is done?
Thanks.
View Replies !
View Related
Formating Text In Flash From A .txt File?
im trying to learn how to format text in flash. i think im doing prity good so far but i need a little help. are you up for it? heres what i have,
_root.createTextField("mytext", 1, 50, 50, 300, 100);
mytext.html = true;
mytext.htmlText = "i want this text to load in from a .txt file";
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
myformat = new TextFormat();
myformat.color = 0x000066;
myformat.leftMargin = 10;
myformat.rightMargin = 10;
myformat.font = "arial";
myformat.size = 11;
myformat.underline = false;
mytext.setTextFormat(myformat);
if you copy and paste it into a flash movie you can see what it looks like. what i want to do is load some text from a .txt file and format it. right now the text is in the action(3 lines down).
now, before you jump right into it, lets talk about how to load text from a .txt file. how do you do that? what I really want to know is, how many different ways can you do that? what way is the best(in your opinion). how do you do it without declaring your var in the .txt file(bob= the text you want to use.)
Show me what you got.
View Replies !
View Related
15 Different Numbers One Dynamic Text Box.
I have 15 different numbers (corresponding to 15 different movie clips) that I want to add (when the user makes a movie selection) as part of the dynamic text box variable, as shown below. Ideally I want the numbers to dynamically change if the user changes movie clips selection on stage. How do I get that view area variable to correlate to 15 different movie clips? Or other suggestions. Thanks in advance.
on (rollOver) {
_root.viewAreaText = ("Number shows the optimal width of the ideal viewing area" + viewArea);
}
on (rollOut) {
_root.viewAreaText = " ";
}
View Replies !
View Related
Dynamic Text Numbers
hello again if i did a code like this
onClipEvent(load){
var x = _root.skillboard.attackmove1;
var y = _root.skillboard.attackmove2;
}
onClipEvent(enterFrame){
if(enemy.hitTest(_root.attackmove)) {
_root.hp1 -= (random(x)+y);
}
}
i use this is in my game as an attack system, but anyways
right now attackmove1 is set to1
and attack move 2 is set to 25
but say during gameplay the char levels and increases the attack move number up, would flash keep 15 and 25 or would it use the new number?
View Replies !
View Related
[F8] Summation Of Numbers From Input Text & Dynamic Text
i have 2 input texts and 1 dynamic
i want to sum all the three numbers
PHP Code:
on (release)
{ var write:Number = write_grade.text; //input text
var record:Number = record_grade.text; //input text
var Total:Number = write + record + wors_grade; //wors_grade is dynamic text
total_txt.text = Total;
}
this is the result for the input 4 & 5 in input texts & 2 in dynamic
45_level0.wors_grade
View Replies !
View Related
Dynamic & Input Text Numbers?
hi, I'm trying to get a box to move on the x axis a number of pixels equal to the number I enter in the dynamic/input text , after clicking a button/mc; instead of just putting the text from an input into a dynamic output text box. There's tons of uses for this technique if it works so it's really important to get this kind of technique working, even though there's easier ways (like slider bars) to do it.
I have three objects: a box_mc; an activate_mc; and a dynamic textbox called input_text. I've tried both dynamic and input settings and fiddled with the inputs, but I think I need a root or global variable somewhere. My actionscript right now doesn't work, but it's basic:
stop();
activation_mc.onRelease = function() {
box_mc._x += input_txt;
}
View Replies !
View Related
Dynamic Text Numbers Increase
Hey guys,
This may be a dumb question but I'm pretty new to actionscript. I have a movie clip with a starting number of 3.75 and I was this number to increase to 6.00 and then stop. I know this should be pretty simple to do with a little actionscript...any ideas?
Thanks
View Replies !
View Related
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.
View Replies !
View Related
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!
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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
View Replies !
View Related
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.
View Replies !
View Related
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!!
View Replies !
View Related
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
View Replies !
View Related
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)
View Replies !
View Related
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
View Replies !
View Related
|