Problems With Input Texts
In one of my flash applications, I have a frame on the main timeline that contains an mc, and inside that mc lies an input text, which I want to use to enter a code to active something after. The problem is it will never work. I have put something to check the code like if(code==1234) { trace("good"); } but it never worked...HELP PLEASE!
FlashKit > Flash Help > Flash General Help
Posted on: 05-10-2005, 07:55 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Buttons And Input Texts In A MC
I have a movieclip with input textfields and buttons in it,and when i Play the scene in the movie clip, they all work fine, but when i play the movie, the buttons and textfields cant be selected. In the movie,too, the movieclip is moved around with arrow buttons, not sure if this is the problem, but im thinkin it might be.
Thanx in advance
Use 2 Input Texts To Create Output Dynamic Text?
if I have two input text values, such as two numbers 1-99, is it possible to have a dynamic text that spits out a result of the two, such as text field A * text field B = dynamic output text C?
and is there a way to do this so it updates automatically when the numbers are changed (i.e. recalculates/refreshes each frame?) or do I need to have a keylistener for something like enter or a button?
Thanks :)
Texts
When I type in txts using some typefaces, it came up really THIN compared to the ones in Photoshop or another applications etc. Even when I do it as 'bold' , it is like barely readable.
So I ended up importing from Photoshop every times...it is just really wasting time.
Is there any solution to this, anyone??
The Texts...help
What is the difference between all the texts like dynamic and normal text and all that please give like what they are used for I can understand them better, that would be great thank you
The Texts...help
What is the difference between all the texts like dynamic and normal text and all that please give like what they are used for I can understand them better, that would be great thank you
Flash MX Texts?
Hello All,
I'm looking to start using Flash MX with database connectivity (Action Script as well). Anyone have any feedback on books on this subject? I'm going to buy tomorrow, but would like some idea as to which text is the best.
Thanks,
ChubChub
Dynamic Texts
Is there anyway to predetermine the number of dynamic texts that show up in a movie?
For example if I wanted to load an ASP Database and have name1=eric&name2=richard&name3=mike
could I have the flash movie with actionscripting only show 3 text fields or do I need to prepare as many as the database has in case it shows more than 3...
for example if I have 5 texts setup (name1,name2, etc) 5 of them... and only 3 records show up could I just have 3 dynamic text fields show up instead of all 5 and have 2 blank?
I appreciate and admire anyone who can determine what the hell I'm talking about nevermind help
Thanks lol tried to make it as clear as I could.
Texts In A Movie.....
Hi.....I d/l a movie from flashkit n wanted 2 play around with it....and I changed all the texts 2 sumthin new.....but there's this one word which appears in the movie....and I can't figure out where to change it.....its always been in the movie....and I still dont knw where 2 find it and change it....is there any easier way to find out where the word is?
Mutliple Texts
hi there flashers
i'm trying to pull in three text files into three text fileds that are all visible at the same time within the one page using this actionscript (this as is on the timeline)
on frame one
loadVariables(update/contact01.txt, "");
on frame two
loadVariables(update/contact01.txt, "");
on frame three
loadVariables(update/contact01.txt, "");
but alas, when i play the movie it loads 'contact text 01' and then 'contact text 02' and then 'contact text 03' into all three text boxes and then stops with all three tet boxes displaying the text from contact03
any offers?!?!
a confused tasVino
Texts Swapping
Please help...
Why doesn't it work? What's wrong with the script?
Why Do Some Texts Justify While Others Don't? Help
I'm using flash five, and I'm trying to get different blocks of text to justify. I know this seems like a relatively simply situation, but for some reason, i'm dumbfounded. Sometimes blocks of texts will justify, and other times they won't. I can't find out why this happens, but I would really like all the texts I'm selecting to fully justify. Can someone please help me out with this? I apologize, as I understand this is a relatively stupid question.
Thanks,
Joel
Appearance Of Texts
Hello,i have a few questions that i hope somebody will be able to explain to me.
1.how do you make text appear out of nowhere?(i can make it just fly in but i want it to kind of fade in,like the ''did you know'' thing in flash 5 movie)
2.how do you make text fade away?
3.what are other ways of having the text appear and how is it done?
Thanks
Texts Become Thin
When I type in txts using some typefaces, it came up really THIN compared to the ones in Photoshop or another applications etc. Even when I do it as 'bold' , it is like barely readable.
So I ended up importing from Photoshop every times...it is just really wasting time.
Is there any solution to this, anyone??
Scrollbar Texts
Hi there,
may i know how to do a Scrollable-bar message box?
Does anyone have a fla file to demostrate or something?
Thanks
XML Images And Texts
I am creating a gallery of Wallpapers, that has the image and under I would have 800x600 or 1024x768, with one link for download.
I am obtaining to pull the images and the texts, each one in one xml different, probably the certainty would be alone one xml for the two, but I do didnīt make.
In the Images, I have a table that he would be 3x3, but my images alone are in a row, all the 9 images, what I would need I was 3x3x3, with the texts under.
I make this with some tutorials.
my actionscript
Code:
// texts xml and css
var estilo = new TextField.StyleSheet ();
var arquivo_css = "estilos.css";
estilo.load (arquivo_css);
estilo.onLoad = function (OK)
{
if (OK)
{
var meuXML:XML = new XML ();
meuXML.load ("noticias.xml");
meuXML.ignoreWhite = true;
meuXML.onLoad = function ()
{
_root.noticias_txt.text = meuXML;
};
}
noticias_txt.styleSheet = estilo;
};
//posicao do conjunto das imagens
x = 0;
y = 0;
//altura e largura das imagens
largura = 160;
altura = 200;
//numero de colunas
numero_colunas = 3;
//xml
imagens = new XML ();
imagens.ignoreWhite = true;
imagens.onLoad = function (Okay)
{
if (Okay)
{
for (var i = 0; i < this.firstChild.childNodes.length; i++)
{
galeria = this.firstChild.childNodes[i].attributes.imagem;
_root.createEmptyMovieClip ("imagem_mc" + i, i + 100);
item = _root["imagem_mc" + i];
item.loadMovie (galeria);
//posicao X e Y
item._x = x;
item._y = y;
x += largura;
largura += 1;
if (coluna == numero_colunas)
{
coluna = 0;
x -= (largura * numero_colunas);
y += altura;
}
}
}
};
//carregar XML
imagens.load ("imagens.xml");
xml texts
Code:
<titulo>imagem 1</titulo>
<a href='http://www.teste.com'>800x600</a>
<br>
<br>
<titulo>imagem 1</titulo>
<a href='http://www.teste.com'>800x600</a>
<br>
<br>
<titulo>imagem 1</titulo>
<a href='http://www.teste.com'>800x600</a>
<br>
<br>
<titulo>imagem 1</titulo>
<a href='http://www.teste.com'>800x600</a>
<br>
<br>
<titulo>imagem 1</titulo>
<a href='http://www.teste.com'>800x600</a>
<br>
<br>
<titulo>imagem 1</titulo>
<a href='http://www.teste.com'>800x600</a>
<br>
<br>
xml images
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<imagens>
<imagem1 imagem="imagem1.jpg"/>
<imagem2 imagem="imagem2.jpg"/>
<imagem3 imagem="imagem3.jpg"/>
<imagem4 imagem="imagem4.jpg"/>
<imagem5 imagem="imagem5.jpg"/>
<imagem6 imagem="imagem6.jpg"/>
<imagem7 imagem="imagem7.jpg"/>
<imagem8 imagem="imagem8.jpg"/>
<imagem9 imagem="imagem9.jpg"/>
</imagens>
Custom Texts
On my web page im using a custom text from flashkit, its ok when i have it as an image but when i have the custom text in a scrolling text box it just comes up as 'times new roman'. I assume this is because who ever is looking at the web page does not have the text, how can i get it so the text file downloads automatically on to there pc, is it even possible???????
Uploading Different Texts
I just have this one question. I downloaded a text from a website and have no idea how to put into the flash document. Any help?
[F8] Different Texts For Each Image From Xml
hi,
its complicated for me..
swf -> www.onlinetip.org/flash/6.swf
I want to make this :
when I drag an image into the area a text will appear for this selected image...
maybe I will make an area like history area on the right. so when the selected image is shown a text for this image will be shown in the special area too.
how can I make this with xml or txt file ???
I have fla and txt files of this flash...If need , I could upload them ...
pls help ....
Help With Loading Texts
hi,
I am loading texts from the text files as folows;
this is on Frame1
//-------------------------------------------
stop();
var texts:String = "";
texts = "home";
var textLoader:URLLoader = new URLLoader();
textLoader.dataFormat = URLLoaderDataFormat.VARIABLES;
textLoader.addEventListener(Event.COMPLETE, loadTexts);
textLoader.load(new URLRequest(texts+".txt"));
function loadTexts(e:Event):void{
texts1.text = e.target.data.texts1;
texts2.text = e.target.data.texts2;
texts3.text = e.target.data.texts3;
}
//--------------------------------------------------------
then on Frame2
texts = "about";
-----------------------------------------------------------
on Frame1, it all works
on Frame2 and so on , Nothing is displayed at all
is there a way to solve this ?
Thank.
Preload <img> Tag Into Dyn Texts
Hello!
Does anybody know this case?
In order to put some dynamic content into my flash site, I have used loadvariables in order to retrieve into variables some html content.
I have also used dynamic text (renderred as html) in order to retrieve the values of those variables (using Var parameter).
My problem is that whenever html indicates <img> tags, those images are loaded when the dynamic texts first appeared in screen.
Is there any way to preload those images?
Thanx in advance!
Ted
PS: Is there any hope if I preload those images outside flash using e.g. javascript?
Changing Texts
Hey guys i'm new on this forum as well as rather new to Actionscript but i'm familiar with programming and very very familiar with Flash.
I don't necessarily have a direct question about what i need an answer to, but rather i have an example that i would like to have fixed.
I pretty much am trying a "test" program which involves money, or any int variable. If you select Option A, Then, lets say, that an amount of $5 is deducted from a $1,000 balance. If you select Option B, then $10 is deducted.
I was wondering if/how you could make a text variable that displays the current balance and then after the option selection (two separate buttons) the new balance is displayed.
I know how to logically do this on my own but i just don't know the actionscript code. Any help would be greatly appreciated!
thanks!
Remove Many Texts..
Hi guys.. I have these two functions:
ActionScript Code:
my_mc.onMouseUp = function(){
var num = 0;
for(; num<=200;){
_root.createTextField("txt"+num, num, int(circle._xmouse+num), circle._ymouse, 50, 20);
num = num + 50;
}
}
my_mc.onMouseDown = function() {
// I want to remove all created texts field.. how to do that?
}
NOT Antialiased Texts
Hi all,
I want to delete the default antialias for some text so that they become more html-style. Especially small texts are difficult to read when anti-aliasd. Simple question, but I canÂīt find where to do it.
Thanks in advance!
Dynamic Texts
I have a problem with dynamic texts. I have made a .txt file that looks something like this:
(file name is test.txt)
&siteName=ZuuL.tk
&siteSlogan=Art and Design to you
&indexTitel=Welcome to ZuuL.tk
&indexText=Text text text text goes here...
&aboutText=Portofil text goes here..
&webbdesignText=Webbdesign text goes here...
&downloadsText=Download text goes here...
&guestbookText=guestbook text goes here...
&linksText=Links links links links goes here...
&email=johan.ottosson@lanplanet.se
&textloaded=OK
And in Flash, Im working on this document, my new homepage. To the point, I have only made 1 dynamic text box yet, (just wanna try if it worked correctly). But it didn't work. This Error message shows:
Error opening URL "file:///E|/J%20o%20h%20a%20n/Mina%20Hemsidor/zuul.tk%20goes%20pro/flash/assets/test.txt"
The AS i use is:
ActionScript Code:
loadVariablesNum("assets/test.txt",0);
I have checked the URL, but its the right one, And i checkt the spelling in the "Var" and the text.
Please, help me out.. Im going crazy!!
Easing Texts
Hi, I am new here, and very new to Macromedia Flash.
I have a question to ask: How to ease texts from right to left, with a smooth start and smooth end, letter by letter?
I'm grateful for an answer.
Too Small Texts In Help...
I wonder why the help text for Flash MX 2004 and Dreamweaver MX 2004 is too small im my system. I am running on a windows 2000 professional.
I tried to run the Flash and Dreamweaver in windows XP professional as well but the problem persists.
I cant read the contents of the Help at all as those are too small in size. Is there any way to increase the font size of the help for Flash MX 2004 and Dreamweaver?
or my installation is wrong?
Help please..
Dynamic Texts
Do you know how to load different parts of dynamic text from one txt file into several dynamic text boxes ???
I want to put all my text content into one text file.
I know how to load my text into the dynamic text box, but it load all my text. I want to load only a part of that text.
How do I separate my text file ? Is there a particular syntax ?
I've tried with different var names in my text file, but it doesn't work.
What can I do ???
Thanx in advance for your help.
Dynamic Texts
I have a problem with dynamic texts. I have made a .txt file that looks something like this:
(file name is test.txt)
&siteName=ZuuL.tk
&siteSlogan=Art and Design to you
&indexTitel=Welcome to ZuuL.tk
&indexText=Text text text text goes here...
&aboutText=Portofil text goes here..
&webbdesignText=Webbdesign text goes here...
&downloadsText=Download text goes here...
&guestbookText=guestbook text goes here...
&linksText=Links links links links goes here...
&email=johan.ottosson@lanplanet.se
&textloaded=OK
And in Flash, Im working on this document, my new homepage. To the point, I have only made 1 dynamic text box yet, (just wanna try if it worked correctly). But it didn't work. This Error message shows:
Error opening URL "file:///E|/J%20o%20h%20a%20n/Mina%20Hemsidor/zuul.tk%20goes%20pro/flash/assets/test.txt"
The AS i use is:
ActionScript Code:
loadVariablesNum("assets/test.txt",0);
I have checked the URL, but its the right one, And i checkt the spelling in the "Var" and the text.
Please, help me out.. Im going crazy!!
Texts Not Clear
Hi,
I made my site in flash and I published for test in:
http://www.connectcom.com.br/teste/indexflash.htm
I think that the texts is not clear (it seems to me dimmished). Is there something i can do for this?
Other problem: When I click in a button, it takes me to the right frame where is the content, but when I click again in the same button, it takes me to the next content in the timeline.
What can I do?
Thanks
XML Images And Texts
I am creating a gallery of Wallpapers, that has the image and under I would have 800x600 or 1024x768, with one link for download.
I am obtaining to pull the images and the texts, each one in one xml different, probably the certainty would be alone one xml for the two, but I do didnīt make.
In the Images, I have a table that he would be 3x3, but my images alone are in a row, all the 9 images, what I would need I was 3x3x3, with the texts under.
I make this with some tutorials.
my actionscript
ActionScript Code:
// texts xml and css
var estilo = new TextField.StyleSheet ();
var arquivo_css = "estilos.css";
estilo.load (arquivo_css);
estilo.onLoad = function (OK)
{
if (OK)
{
var meuXML:XML = new XML ();
meuXML.load ("noticias.xml");
meuXML.ignoreWhite = true;
meuXML.onLoad = function ()
{
_root.noticias_txt.text = meuXML;
};
}
noticias_txt.styleSheet = estilo;
};
//posicao do conjunto das imagens
x = 0;
y = 0;
//altura e largura das imagens
largura = 160;
altura = 200;
//numero de colunas
numero_colunas = 3;
//xml
imagens = new XML ();
imagens.ignoreWhite = true;
imagens.onLoad = function (Okay)
{
if (Okay)
{
for (var i = 0; i < this.firstChild.childNodes.length; i++)
{
galeria = this.firstChild.childNodes[i].attributes.imagem;
_root.createEmptyMovieClip ("imagem_mc" + i, i + 100);
item = _root["imagem_mc" + i];
item.loadMovie (galeria);
//posicao X e Y
item._x = x;
item._y = y;
x += largura;
largura += 1;
if (coluna == numero_colunas)
{
coluna = 0;
x -= (largura * numero_colunas);
y += altura;
}
}
}
};
//carregar XML
imagens.load ("imagens.xml");
xml texts
Code:
<titulo>imagem 1</titulo>
<a href='http://www.teste.com'>800x600</a>
<br>
<br>
<titulo>imagem 1</titulo>
<a href='http://www.teste.com'>800x600</a>
<br>
<br>
<titulo>imagem 1</titulo>
<a href='http://www.teste.com'>800x600</a>
<br>
<br>
<titulo>imagem 1</titulo>
<a href='http://www.teste.com'>800x600</a>
<br>
<br>
<titulo>imagem 1</titulo>
<a href='http://www.teste.com'>800x600</a>
<br>
<br>
<titulo>imagem 1</titulo>
<a href='http://www.teste.com'>800x600</a>
<br>
<br>
xml images
Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<imagens>
<imagem1 imagem="imagem1.jpg"/>
<imagem2 imagem="imagem2.jpg"/>
<imagem3 imagem="imagem3.jpg"/>
<imagem4 imagem="imagem4.jpg"/>
<imagem5 imagem="imagem5.jpg"/>
<imagem6 imagem="imagem6.jpg"/>
<imagem7 imagem="imagem7.jpg"/>
<imagem8 imagem="imagem8.jpg"/>
<imagem9 imagem="imagem9.jpg"/>
</imagens>
Problem With Dynamic Texts
Hi
I'm working on a terrain generator. Basically the terrain is made of x columns and y rows of square tiles.
Now I'd like to write the coordinates on every tile (1,0 ; 2,0 ; etc...)
Each tile is a movieClip so I thought I could put a dynamic text field inside it and write x+","+y...
But every dynamic text needs a variable name, and you can't instance a dynamic text...
Is there a way to create dynamic text on the fly and assign a variable to it, or is there another way?
Thanks!
Embedding Dynamic Texts
is this possible? if then... how? somebody please teach me.
I used a pixel font as a dynamic text. My swf file seem not to display the same font in other PC's (like in my friend's)... it was replaced by "_serif" instead.
Is there a way to embed a dynamic text? Please help. thanks.
Dynamic Texts And LoadMovie
I have this problem where I load swfs into my current movie, and all the dynamic texts in my swf disappear. Now i've checked the code time and time again. I tried leaving in just the variable name ( for instance textbox = "blablabla" ; i've tried it with _root.container.textbox (where container is the mc where i load my swf into, using loadMovie("mySwf.swf", _root.container)).
When I test just the swf itself the textfields appear just fine.
Anyone know what the problem might be?
Thanks. Any help is greatly appreciated.
Fast Blur On Texts
i was wondering how the fast bluring texts are done like the intro of www.webbasis.com
is this done with programs like SWFX or something?
Dynamic Texts Question?
Hi, issit possible to make a dynamic texts into a button?? eg.. if i hv this para of text and just wanna make a particular word into a button, is it possible? and one more.. can we control the style of text? like the headline to be bold and the common text to normal? when i changed the headline to bold, the whole texts became bold too...
thksssss...
My Arabic Texts Are In Reverse.........?/?/
Hi...
I am looking for some one how could help me locating and sorting the problem.
I am using windows 2000 Professional and I have enabled Arabic in my regional settings.
I have a presentation that displays english or arabic text depending on user option. Both the texts are displayed but in Arabic I find the sentence is in reverse....
for example:
When I write "WELCOME TO THE PRESENTATION" in arabic it displays as:
"PRESENTATION THE TO WELCOME"
can U tell me what is the problem....
Similiar thing is happening in my Acrobat Writer also....
Creating Stack Of Texts
hi,
how to create stack of text boxes one by one on a mouse click? I am new to this.pardon me if it is a easy question.
Thanks
John.
How To Post Texts With Colors...
How to post TextBox's(text type=input text) texts into another dynamic textbox area with choosen color???
pls take a look at my attachement... you'll get it
thanx
-GM
Big Texts Smooth Fade
Hey!
Do you guys know how to make a smooth fade in and fade out on a big text when a button is pressed?
Thanks in advance!
Color Texts Not Working
I created an mc containing a dynamic text and I have a function that change the mc's color with "set.rbg()". But when I run the file an output window says that the instance name of the text file is not a suported action of flash 5 or so. The thing is that when I copy the mc into another empty flash file and run it, it work. Why then it does not always works? Please help me!
Highlighting Dynamic Texts
I have a form imitating a computer system screen, with several lines of input and dynamic txt fields. The dynamic fields have drop down boxes. The input fields have several txt boxes with slashes or decimals seperating them.
I've worked through getting the entire line to highlight as a group, but my dynamic fields are not wanting to play nice.
There are so many "restrictions" and "legal entry hints" for each txt field, in different areas of my code. I have the txt fields broke down (following my "colorChange function" properties)
as such: switch(this) {
case txt0:
if(this.length ge 1) {
Selection.setFocus(txt1);
}
break;
case txt1:
and so on. Once I finish the first couple of lines (input txt w/several boxes ea line), I can't get the following dynamic line to hl in this same manner. Why? They are set as selectable.
I have created the boxes through code without luck, and then drew them on the stage, without luck. What am I doing wrong?! The Selection.setFocus does not work for the dynamic fields.
Thank you for your time!!
How Do I Substitute Texts In Loaded Swf?
Hi, I've been looking for a clue how to do this but haven't found a solution yet.
I'm loading animated swf's into movieclips based on XML that I am parsing in my main swf, and for translation purposes I sometimes need to substitute the textdata of the textfields in the loaded swf's. I've declared instance names for the textfields, "text1", "text2", and have put a name in the "var" field for each textfield, in this case "textobj1" and "textobj2".
After I have loaded the swf into a movieclip that I have called "myMc", I've tried to list it's objects using this code with no result:
Code:
for (var myObj in myMc) {
trace('Found: '+ myObj + '.' + typeof(myMc[myObj]));
}
// this returns nothing
While this code in my main swf produces nothing, the same code put in the swf that is loaded, and looping over "this" returns:
Code:
for (var myObj in this) {
trace('Found: ' + myObj + '.' + typeof(this[myObj]));
}
// this returns output:
Found: textobj1.string
Found: textobj2.string
Found: $version.string
Found: text1.object
Found: text2.object
If I somehow could get help in accessing these textobjects I could easily write the code to replace the textdata myself.
Is there any way of accessing these textobjects without adding code to the loaded swf's? And if not, how do i go about it?
Thx!
[F8] Loading 2 Different Dynamic Texts
Thank you for your interests in my problem.
I need help to figure out how to load 2 different dynamic text variables in two different text boxes in one frame. Example: I have 2 text boxes (textboxA and textboxB) and I want A.txt to load in textboxA and B.txt to load in textboxB.
Here is the action script I have to load one variable:
loadVariables("A.txt", "");
[F8] Loading 2 Different Dynamic Texts
Thank you for your interests in my problem.
I need help to figure out how to load 2 different dynamic text variables in two different text boxes in one frame. Example: I have 2 text boxes (textboxA and textboxB) and I want A.txt to load in textboxA and B.txt to load in textboxB.
Here is the action script I have to load one variable:
loadVariables("A.txt", "");
Texts Don't Show In Opera?
Hi...
first of all sry if subject is allready been talked about... didn't find anything trough...
problem is that simple texts, using AA 4 readability in textareas (font is verdana) don't show on Opera....
pliiz help me! -got a timelimit on finishing the page....
http://www.mixib.com/temp/northstar/projekt99994.html
if u can check it out with opera and IE or Mozilla u understand what i mean...
under links "our neighbors" and "about estonia" theres a lot of it....
bitmap no AA works but it's quite ugly....
or just check thisone with opera and a nonopera...
http://www.mixib.com/temp/northstar/lingid/41.html
TextField Texts From An Array
Hi,
A question on how to create a number of textFields dynamically and assign text to them from an multi dimentional array:
I am creating textFields like this:
ActionScript Code:
for (row=0; row<resultArray_arr.length; row++) {
var resultField:String = "result"+row+"_txt";
createTextField(resultField, level, 20, placeY, 25, placeHeight);
level++;
}
This works ok, but the problem comes when adding the text to the fields.
How could I get this to work?
ActionScript Code:
for (resultRow=0; resultRow<resultArray_arr.length; resultRow++){
result[resultRow]_txt.text = resultArray_arr[resultRow]["Result"];
result[resultRow]_txt.multiline = true;
result[resultRow]_txt.wordWrap = true;
}
Any ideas on how to do this correctly?
( It works when I write all rows from the array...number of which I cannot know beforehand.
Like this:
result0_txt.text=resultArray_arr[0]["Result"];
result1_txt.text=resultArray_arr[1]["Result"];
...
)
Regards, Jari
|