Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




How To Programically Change InputText To Static Type?



Ok, here comes another question.
Is there a way to change Input Text field to a Static through actionscript?



FlashKit > Flash Help > Flash ActionScript
Posted on: 08-31-2001, 01:06 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Cannot Type @ In InputText Field
Hi guys

Please go an have a look on the following link:
http://www.lanlife.be/files/waldo/dectel/mcp/

you'll see an inputText box on de upper left area. Try typing @ or ë or something like that. You'll nodtice it's not possible.

Can someone help me out here?

Thanks,
Waldo

Change The Font Of InputText Component.
Hi,
I want to change font of inputext component. Please tell me the solution of it.

Regards,
Jitendra Jadav.

Change The Font Of InputText Component.
Hi,
I want to change font of inputext component. Please tell me the solution of it.

Regards,
Jitendra Jadav.

How Can I Change A InputText's Text Color And Size
and the InputText is created by actionscript,thanks

Stage A Static Type?
I want to move along the timeline (all this code is in frame1)

function moveToNext(event:TweenEvent) {
trace(stage);
stage.gotoAndStop("body treatments");
}

I get the following error:


1061: Call to a possibly undefined method gotoAndStop through a reference with static type flash.display:Stage.

How do I make stage not a static type?


If I change to this.gotoAndStop("body treatments");

I get this error


[object Stage]
TypeError: Error #1006: gotoAndStop is not a function.
at MethodInfo-53()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio n()
at flash.events::EventDispatcher/dispatchEvent()
at fl.transitions::Tween/set time()
at fl.transitions::Tween/nextFrame()
at fl.transitions::Tween/fl.transitions:Tween::onEnterFrame()


Can someone explain why I cannot move alone the main timeline.



AK

Static Type Fl.controls:TextArea
I'm trying to remove text placed into taLog from a rss file and I get compiler error using codes below. is there any way to remove the text without removing instance from the stage?


Code:
taLog.removeAll();

1061: Call to a possibly undefined method removeAll through a reference with static type fl.controls:TextArea.


Code:
taLog.unload();

1061: Call to a possibly undefined method unload through a reference with static type fl.controls:TextArea.

Static Function Call Through Type Reference
I'm attempting to call a static member function of a class without instantiating it via a type reference as returned by getDefinitionName.


Code:
var typeRef:Class = getDefinitionByName(__class) as Class;
var width:int = typeRef.getWidth();


This isn't working, I'm getting a syntax error:

1061: Call to a possibly undefined method getWidth through a reference with static type Game.GameLogicisplayObject

I've googled quite a bit and I'm not seeing anything relating to this, is this even possible?

Static Type Class Problem: Help With Script 3 Button
I'm trying to make my button work for a basic webpage. Every time I "test movie" it ignores the stop message and just loops through continuously. I get this message: 1061: Call to a possibly undefined method addEventListener through a reference with static type Class.

here is my code:Code:

stop();
import flash.events.MouseEvent;
bbsf_btn.addEventListener(MouseEvent.CLICK,bbsfclick);
function bbsfclick(event:MouseEvent):void {
   gotoAndStop("bbsfportfolio");
}

this seems like a simple problem, I just can't figure out what it could be. Thanks!

Access Of Possibly Undefined Property Through Reference To Static Type Flash.
Hi guys, well I've created a slide show. Only problem is that I keep getting error messages which say "access of possibly undefined property through reference to static type flash." or they say "access of undefined property.."

I did a bunch of research and my situation doesn't change whether I use Action Script 2 or 3. In the example its three. I've made number buttons which are supposed to allow you to go through the slide show. I'd hugely appreciate any suggestions.
You can see the slideshow here:

http://paragon-nj.com/slideshow.html

and the fla:

http://paragon-nj.com/slideshow.fla


Currently I'm using this code with one, two and three being the butttons:

one.onRelease=function(){
gotoAndPlay(90);
}

two.onRelease=function(){
gotoAndPlay(175);
}

three.onRelease=function(){
gotoAndPlay(260);
}

1119: Access Of Possibly Undefined Property BigC Through A Reference With Static Type Flash.display:DisplayObjectContain
I am working on a script that enables the user to move items around on the screen. They do this for several trials. On each new trial I would like the items to return to their original positions. When I try to make it do that, I get the error indicated in the title above. I cannot seem to refer to those items. I have been trying getChildByName, but that does not seem to be working. The problem is in the trial function.

Any help would be appreciated.

Russ







Attach Code

import flash.display.MovieClip;
import flash.display.DisplayObjectContainer;

//EXPERIMENT SETUP
//Var declaration and Init
var myFormat:TextFormat = new TextFormat();
myFormat.size = 12;
myFormat.font = "Arial Bold";
var targetFormat:TextFormat = new TextFormat();
targetFormat.size = 14;
targetFormat.font = "Arial Bold";
var bigC:MovieClip = new MovieClip();//bigC holds all the stimuli
var sodaA:Array = ["Charming", "Cheerful", "Coca Cola", "Daring", "Diet Coke", "Diet Dr. Pepper", "Diet Mountain Dew", "Diet Pepsi", "Down to Earth", "Dr. Pepper", "Fanta", "Honest", "Imaginative", "Intelligent", "Me", "Mountain Dew", "Outdoorsy", "Pepsi", "Reliable", "Spirited", "Sprite", "Successful", "Tough", "Upper Class", "Up to Date", "Wholesome"];
var dataA:Array = new Array();
var randA:Array = [];
var trialNum:int = 0;
var bigTargetC:MovieClip = new MovieClip();
var targetC:MovieClip = new MovieClip();
var targetTF:TextField = new TextField();

//Randomize targets
for (var ii:int = 0; ii<=sodaA.length; ii++) {
randA.push(ii);
}
shuffle(randA);

function shuffle(a:Array) {
var p:int;
var t:*;
var ivar:int;
for (ivar = randA.length-1; ivar>=0; ivar--) {
p=Math.floor((ivar+1)*Math.random());
t = randA[ivar];
randA[ivar] = randA[p];
randA[p] = t;
} //end for
} //end shuffle

//Set up stimuli
for (var i:int=0; i<sodaA.length; i++)
{
var sodaC:MovieClip = new MovieClip();//these are the objects we move around
var sodaTF:TextField = new TextField();//contains the text for the object
bigC.addChild(sodaC);//adding the soda object to bigC
sodaC.addChild(sodaTF);//Adding the text to each soda object
sodaC.name = sodaA[i];//give the soda object the name as the next label in sodaTF
sodaC.y= 27*i +50;
sodaC.buttonMode = true;
sodaTF.text = sodaA[i];//Text is the same as the name of the soda object.
sodaTF.setTextFormat(myFormat);
sodaTF.selectable = false;
DisplayObjectContainer(stage).addChild(bigC);//show bigC and its contents on the stage
sodaTF.width = 140;
sodaTF.autoSize = TextFieldAutoSize.LEFT;
sodaC.addEventListener(MouseEvent.MOUSE_DOWN,startDragging);
sodaC.addEventListener(MouseEvent.MOUSE_UP,stopDragging);
} //end for

Next_mc.addEventListener(MouseEvent.CLICK, getCoords);
trial();

function trial():void//Create and place stimuli list and target item
{
for (var i:int=0; i<sodaA.length; i++)
{
DisplayObjectContainer(stage).bigC.getChildByName(sodaA[i]).x = 0;
DisplayObjectContainer(stage).bigC.getChildByName(sodaA[i]).y = 27*i +50;


//getChildByName(sodaA[i]).y = 27*i +50;

//DisplayObjectContainersodaC.name = sodaA[i];
//sodaC.x = 0;
//sodaC.y= 27*i +50;
}
targetTF.setTextFormat(targetFormat);
targetTF.text = sodaA[randA[trialNum]];
targetTF.x = 545;
targetTF.y = 365;
targetTF.autoSize = TextFieldAutoSize.CENTER;
bigTargetC.addChild(targetC);
targetC.addChild(targetTF);
DisplayObjectContainer(stage).addChild(bigTargetC);//show bigC and its contents on the stage
};//end function trial

function startDragging(event:MouseEvent):void { //Enable drag and drop
event.currentTarget.startDrag();
}
function stopDragging(event:MouseEvent):void {
event.currentTarget.stopDrag();
}

function getCoords(event:MouseEvent):void { // Calculate Ratings based on x and y
for (var j:int=0; j <sodaA.length; j++) {
var xDist:int = Math.pow(bigC.getChildByName(sodaA[j]).x - 545, 2);
var yDist:int = Math.pow(bigC.getChildByName(sodaA[j]).y - 365, 2);
var dist:int = Math.sqrt(xDist + yDist);
var rating:int = 4;
if (dist > 338) {
rating = 4;
} else if (dist > 255 && dist <=338) {
rating = 3;
} else if (dist > 173 && dist <= 255) {
rating = 2;
} else if (dist > 91 && dist <= 172) {
rating = 1;
} else {
rating = 0;
}
dataA.push(randA[trialNum], j, rating);
}
trace(dataA);

//for (var i:int=0; i<sodaA.length; i++)
//DisplayObjectContainer(stage).removeChild(bigC);

trialNum ++;
trace ("trialnum is" + trialNum);
if (trialNum <= sodaA.length) {
trial();
}
else {
//write dataA to an external file and name that file
gotoAndStop(2);
}
}//end Program

Change Static Var's Value, Possible?
hey guys, is it possible to change the value of a static variable through a static function?

let say I have something like this:

ActionScript Code:
class myclass {
    static var myvar:Number = 1;

    function myclass() {
    }
    static function changeMyvar():Number {
        myvar++;
        return myvar;
    }
}

this does not work, it returns the original value "1"...

thanks

Change A Static TF With AS
Hi - Is there any way to address a static textfield in a movieClip with AS? I want to change the color and selecability of the text using Actionscript (because I have about 50 of them and don't want to open each mc to get at the textfield.) The mc has an instance name but, natuarally, the textfield doesn't.

I used static text because there are less problems with the font displaying on different computers. Now, down the road I have to make these changes. Am I screwed?

TIA some expertise.

JL

Error 1119:Access Of Possibly Undefined Property McName Through A Reference With Static Type Flash.display:DisplayObject
Hello,

I have an SWF which I'm loading into a movieCiip in a main movie at runtime and it has a framescript:

this.parent.myMC.play();

which is meant to instruct the movieClip instance "myMC" (which resides on the root timeline of the main movie) to play. However, when I publish that SWF I get the error:

1119: Access of possibly undefined property myMC through a reference with static type flash.display:DisplayObjectContainer.

Font Changes When I Change From Static Txt To Dynamic Txt?
How come the font changes when i change from static txt to dynamic txt?

Is It Possible To Change Dynamic Text To Static Via AS?
Is it possible to do through actionscript? Ideally I want to be able to allow users to INPUT text and then a "confirm" button will lock it in by turning the answer static so they can no longer interact with the field.

Thanks

How To Change Static Text Color?
Hello All,

I have an instance of a static text movie clip and a separate button instance.

What I want to happen is when the button is rolled over it changes the color of the static text. I know how to do the rollover event and address the movie clip in action script, but I need to know how to change the color. I've played with TextFormat.color and setProperty but haven't got it to work.

I know this is basic stuff, and I've tried to find the answer on my own, but I'm at the point that I've got to ask.

Thanks, Scott

How To Change Static Text Color?
Hello All,

I have an instance of a static text movie clip and a separate button instance.

What I want to happen is when the button is rolled over it changes the color of the static text. I know how to do the rollover event and address the movie clip in action script, but I need to know how to change the color. I've played with TextFormat.color and setProperty but haven't got it to work.

I know this is basic stuff, and I've tried to find the answer on my own, but I'm at the point that I've got to ask.

Thanks, Scott

Is It Possible To Change The F/R From A Public Static Function?
I am trying to change the frame-rate inside a public static function but keep getting the error:


Code:
1120: Access of undefined property stage.
My import statement:


Code:
import flash.display.Stage;
makes no difference. Any wise ideas to get around this problem?

How To Change Static Text Color?
Hello All,

I have an instance of a static text movie clip and a separate button instance.

What I want to happen is when the button is rolled over it changes the color of the static text. I know how to do the rollover event and address the movie clip in action script, but I need to know how to change the color. I've played with TextFormat.color and setProperty but haven't got it to work.

I know this is basic stuff, and I've tried to find the answer on my own, but I'm at the point that I've got to ask.

Thanks, Scott

How To Change My Background With Static And Dynamic Contents
Hi all,

I am a newbie in flash, and it's my first time here, so please forgive my ignorance.

I am building my own website, and I have, with the help of tutorials in this site i created some dynamic contents, and then i wanted to put an interactive background, i.e. the user can change the the background with a button. there are 4 of them. now the backgrounds are just jpgs, but i plan to make them movie clips.

so, my problem is that when i use create a dynamic movie with AS, and load the background, it totally covers up everything else that i have. i can see the text box, but not the other stuff.......

is there a way to make it work....?

thanx so much!!

yours,
thomas

Change Data Type
problem: I need to get around strict object typing and change a clip on the stage from type MovieClip to type Highlight (Highlight is my own custom class). Is there a way to do this with actionScript.

The following will not work for this situation:
- edit the clips linkage property in the library.
- create the clip from scratch via actionScript and declare it type Highlight.
- place actionScript on or inside the clip. The actionScript needs to be on the timeline.

Detailed discription of what I'm doing:
I'm quickly creating movie clips on the stage. Because this process happens over 300 times, I'm not going to link the clips to a class at this point. These items are of type MovieClip with names of "instance1", "instance2", instance3, etc. With actionScript on the main timeline I want to change instance1 from type MovieClip to type Highlight (this is my custom class).

Thanks in advance,
Craig

Change Font Type With A Button
I have an input text field, and a dynamic text field, so i typed something on my input text field and the text shows on the dynamic, this is ok.

But what i need is, once you typed the text, you can have 3 options to change the font (Arial, Tahoma or Times) pressing a button (one button per each font) so once you click on the desired font, it will change on the dynamic field.

How can i do this?

Thank
Gian

Change TextField.type By Script?
Hello people,
can I change the type property of a textfield by script? I would like to change a "dynamic" textfield to an "input" field onRelease.

in the Flash Help there's no mention about the type property being "read only"
TextField.type="dynamic";

thanks

Runtime Change The Type Of Textfield?
is it possible to change the type (Static Text, dynamic Text or Input Text) at runtime?

thanks for your help again.

Combobox To Change Font Type...
I have a textarea I want the font changed for when they choose the corresponding font from a combobox.

On the combo box itself I have it named "myCombo". This is the code for it..

Code:
on (change) {
if (myCombo.getSelectedItem() == "Garamond") {
user_output.setStyle("fontFamily", "Garamond");
} else if (myCombo.getSelectedItem() == "Arial") {
user_output.setStyle("fontFamily", "Arial");
} else if (myCombo.getSelectedItem() == "Verdana") {
user_output.setStyle("fontFamily", "Verdana");
}
}
the textarea is called user_output.

Ideas?

Combobox To Change Font Type...
I have a textarea I want the font changed for when they choose the corresponding font from a combobox.

On the combo box itself I have it named "myCombo". This is the code for it..

Code:
on (change) {
if (myCombo.getSelectedItem() == "Garamond") {
user_output.setStyle("fontFamily", "Garamond");
} else if (myCombo.getSelectedItem() == "Arial") {
user_output.setStyle("fontFamily", "Arial");
} else if (myCombo.getSelectedItem() == "Verdana") {
user_output.setStyle("fontFamily", "Verdana");
}
}
the textarea is called user_output.

Ideas?

How Do I Change The Type Font In This Xml Document Thanks
Hi

I am quite new to xml in flash and I am trying to change the font type in this xml document.

<images>
    <image source = "images/Image1.jpg" thumb = "thumbnail/Image1.jpg"> Picture of my car .</image>
    <image source = "images/Image2.jpg" thumb = "thumbnail/Image2.jpg"> an orange or something.</image>
    <image source = "images/Image3.jpg" thumb = "thumbnail/Image3.jpg"> a book.</image>
    <image source = "images/Image4.jpg" thumb = "thumbnail/Image4.jpg"> Poster in Holborn.</image>
</images>

Thankyou for helping!
Matt

Change Default Graphic Symbol Type?
i've been playing with an animating knot tying strategy; that has reuseable 'pieces', that can be used in other knots. Presently just have a clove hitch animated.

i use mostly mc's, but on the 'top layer' (with mc's loaded internally in the graphic symbols) have chosen to use graphic symbols instead. Is there a way to get them to default to play once, rather than loop forever when placed on timeline? Just an annoyance really, but figured i'd ask..

Thanx!

Fancy Box Type Moving Graphic Type Cool Efect But Im To Dumb Type Thingy
i am tring to make a box thinky simaler to the one on www.starvingeyes.com but cant even work out how to start it. is there anyone who can point me in the right direction or to a tutorial ?

the box has a graphic inside a grided box the sections of the graphic fade in and out as the mouse goes over them and displays random sections when the user is not moving the mouse over the box

i did find java tutorials for this effect but would much preffer it to come from flash as java is a bugger to get working on some machines

Any way thanks in advance for any help

Steven Green one_mad_punk@yahoo.co.uk

Flash Headers That Change Depending On Language Type?
I'm doing a project for a client and they are s aying how they want the headers to be flash, this way they can change the language of the website and the headers will change. This is what was just sent to me


Quote:




From what I can tell (looking at the
code that outputs the HTML for the news area), the parameters to SWFObject
include the x, y and font size parameters. I'm not familiar with SFWObject -
it is a standard flash routine? In addition, there are parameters for the
actual text and the link. Lastly, the so.write() writes the id of a
preceding HTML element that is used in the case that flash is not installed.




Does anyone know what hes talking about?

InputText Box Help
In desperate need of some help! I have an assignment to hand in soon for university, but ive just got terrbily stuck

I want a text box which the user can type a message and then press a button, which then 5ish seconds later the same message gets relayed onto another box later on in the movie.

Can this be done? Ive been searching the Macromedia website for ages trying to find extensions to Flash MX, but I cant find anything.

I was told that the UI components set 2 have them in, but I cannot find them anywhere.

I hope someone can help me

If I Type Array[1]=array[2] Their Values Are Permanently Linked. How Do I Change This
e.g.

Code:
array[2][0] = 4;
array[1] = array[2];
array[1][0] = array[1][0] + 3;

trace("array[1]= " + array[1]);
trace("array[2]= " + array[2]);


Result:
array[1]=7;
array[2]=7;


The result I want is:
array[1]=4;
array[2]=7;




How do I achieve this?

Is It Possible To Change A Text Field From Dynamic Text To Static Text At Runtime?
The reason is because the dynamic text appears to be taking up about 90 % of the CPU usuage and I dont know any other way to reduce the CPU usage.

The text areas pull in lots of data from text files which slows down the program.

Any ideas?

V2 Component InputText
When I publish my flash movie I cant input text in the v2 inputText component. It shows me the typing cursor and its blinking but I can't type anything in the box. Am I missing the fonts (I thought it defaulted to _sans).

I know it is in focus 'cause that ugly green outline is around the box.

Confused.

Thanks.

Inputtext.text
how do i achieve this:

when u click a button then a text input box text changes to something else.

visual basic e.g myText.value="New Text"

now how do i do it in flash?
ta

Inputtext Question
Hi!!! I'm new in Flash MX I want to ask how to change the color of highlighted text in inputtext thanks.

Intercept The Key Before The InputText
Hi
I need to change the char before write it in the input Box.
Please help.
Thank you

InputText Form
Hey shockers, can anyone help me out. I just want to use one textinput box for the user to write their email address and a submit button. So they can send me their email address for a newsletter.. I find tons of flash forms but they all have 3 or 4 input boxes.. Im just looking for a tut on single textinput..using PHP. Thanks all.

Matching InputText To .swf File
I have a need in my Flash project to match a movie clip with something that is input by the user like their name. So they enter "Mi" for the M i want to call or load a movie clip an M doing some animation, and for the "i" likewise, call a movie clip of animated "i".

Anyone have any ideas?

I trying to use the same concept for a calendar. I've seen the wonderful Flash calendars out there-but I'm wanting basic, check the UTC date and if it's June- then load june.swf.......but how do you match such things?

How To Pass InputText Var Name Thru A Function
I've got a function that does some things to an input text field with a var name of txtVarName. When I use the input text's var name in the funciton directly, the function works properly. Ex:
Code:
function myFunction(endQuote) {
this.txtBox1 = endQuote
}
and then this is how i would call it:
Code:
myFunction("this text will show up in txtBox1");
But, i'd like to set the function so that i can use it on multiple text boxes and pass in the Var name of the input text box i'd like the function to operate on....like this:
Code:
function myFunction(endQuote, targetTxtBox) {
this.targetTxtBox = endQuote;
};
and call the funciton with this:
Code:
myFunction("this is supposed to show up in txtBox2", "txtBox2");
But when i call the function, it won't work. I've tried putting the input text Var name in quotes, without quotes. I'm just not sure why the Var name of the input text box won't just go through the function. Is this not possible?

[F8] How To Create InputText With Actionscript
There are these codes
<input type="hidden" name="v" value="1">
<input type="hidden" name="aid" value="">
<input type="hidden" name="c_code" value="">
<input type="hidden" name="submit" value="Lookup Domain >>">
<input type="hidden" name="submit_domain" value="register">

all of these "inputs" will not be shown in the flash, and together with them there is another input box which will be shown and be filled by the users and then the value of which will be sent to a server.

so my problem is how to add those "hidden" inputs to a flash.
and how to manipulate the properties such as "type","name" and so on.

and at first I thought that the "variable" of the InputText is equals the "name" of input. but after making some tests, it came out that it was not right.

This is my first time coming here and asking question.
and I really hope that this problem can be resolved.
and thank you in advance.

Today is Beijing time on Friday, wish everybody a nice weekend!
and last my English is not very well, if there are some places which I said is not very clearly, I should say sorry about that.

Stylesheet With InputText Issue
hi,

Does anybody know why when setting stylesheet on an input texfield it is no loger editable?

example: http://www.videodrome.hr/podly/fffstyle.swf

Any help with this would be appreciated

cheers

AS Problem With InputText.text
I am dynamically creating duplicate movie clips in each of these movie clips there is an InputText component call quantity. When each of these clips are created i attempt to set the .text field and I can not get the value to display in the box. Any suggestions ?









Attach Code

duplicateMovieClip(item_default, "cartItem" + position, this.getNextHighestDepth());
setProperty("cartItem" + position,_x,clippos);
setProperty("cartItem" + position,_alpha,100);

tempItem = eval("cartItem" + position);
tempItem.quantityBox.text = quantity;

InputText Fields Having Free Will
i'm designing an email form FLASH<->ASP...

in it there is an actiionscript that validates the data on the form...(code attached)
if it's ok, send it through email, if there's an error, goes to another frame, that has a pop-up warning what and where is the error...

But the problem is... Sometimes i just can't edit the textboxes... Or i can type 2 or 3 letters and than no more... only if i type it form the middle of the text...

Any idea of what's foing on???









Attach Code

on (press) {

function ConferirDados() {
if (form.nome.length == 0) {
gotoAndStop(57);
dynCampo.text = "Campo: Nome";
dynDesc.text = "Descrição de erro: Campo vazio. Coloque seu nome.";
return false;
}

if (form.email.length == 0) {
gotoAndStop(57);
dynCampo.text = "Campo: E-Mail";
dynDesc.text = "Descrição de erro: Campo vazio. Coloque seu e-mail.";
return false;
}

var sEMail:String = form.email.text
if (sEMail.indexOf("@") == -1) {
gotoAndStop(57);
dynCampo.text = "Campo: E-Mail";
dynDesc.text = "Descrição de erro: E-Mail inválido.";
return false;
}

if (form.ddd.length < 2) {
gotoAndStop(57);
dynCampo.text = "Campo: Telefone - DDD";
if (form.ddd.length == 0) {
dynDesc.text = "Descrição de erro: DDD vazio.";
} else {
dynDesc.text = "Descrição de erro: DDD inválido.";
}
return false;
}

if (form.tel.length < 7 ) {
gotoAndStop(57);
dynCampo.text = "Campo: Telefone - Número";
if (form.tel.length == 0) {
dynDesc.text = "Descrição de erro: Telefone vazio.";
} else {
dynDesc.text = "Descrição de erro: Telefone inválido.";
}
return false;
}

if (form.assunto.length == 0) {
gotoAndStop(57);
dynCampo.text = "Campo: Assunto";
dynDesc.text = "Descrição de erro: Campo vazio. Coloque um anúncio.";
return false;
}

if (form.msgm.length == 0) {
gotoAndStop(57);
dynCampo.text = "Campo: Mensagem";
dynDesc.text = "Descrição de erro: Campo vazio. Digite uma mensagem.";
return false;
}

return true;
}

dadosOK = ConferirDados()
if (dadosOK == true) {
form.loadVariables ("email.asp", "", "POST");
} else {
gotoAndStop(52)

}


}

Create Inputtext At Run Time
I need to create textinput at run time when the user click a new textinput in the place where he click

I tried to use
var Myinputtext=new TextInput() ;
or
var Myinputtext:TextInput;
also when i try to import
import fl.controls.TextInput ;

I got error
I did it before in AS2

InputText + Erease Text
How I can load arrays into a textbox using two buttoms. I use append text but the text appear next the other.
I had serach for method to make erase I think ti doesn exisits










Attach Code

var listaDiscos:Array = new Array();
listaDiscos.push({nombre:"Motorhead"});
listaDiscos.push({nombre:"Ace of Spades"});

var listaTracks:Array = new Array();
listaTracks.push({nombre:"rock n roll"});
listaTracks.push({nombre:"ace of spades"});
listaTracks.push({nombre:"shoot you in the back"});
listaTracks.push({nombre:"fire fire"});
listaTracks.push({nombre:"the hammer"});


btn1.addEventListener(MouseEvent.CLICK, mostrarUno);
function mostrarUno (ev) {

for (var i:int = 0; i < listaDiscos.length; ++i)
{
cajaDiscos.appendText(listaDiscos[i].nombre);
}

}

/////////

btn2.addEventListener(MouseEvent.CLICK, mostrarDos);
function mostrarDos (ev) {

for (var i:int = 0; i < listaTracks.length; ++i)
{
cajaDiscos.appendText(listaTracks[i].nombre);
}

}

How To Eneble And Disable Inputtext
Hi!!!! to all How to disable inputtext in onload and enable using double click event.. Thanks

Read Variables From InputText?
I was wondering if anyone knows wether it's possible to create variables from text inside an inputText.

Example -> if I put the text "bDead = false" inside an inputBox, and I press some button, the variable bDead is created and initialized with "false".

I tried loadVariables with the box.text as a parameter, but I guess it expects a link to some file instead of a text...

Inputtext-embed Characters
Hey Guys,

i have a little problem here: On my flashsite i have a few input-textfields. The inputText is sent to a PHP script, which in turn forwards the text as am email. The PHP-document is encoded with iso-8859-1 (since i´m here in germany). Now, while the part of the message, which is automatically added in the PHP-script does display all special characters like ö,ä etc., the text which comes from flash doesn´t display these charcters right in the email.
I hope i´m explainig myself well...
What might be the problem here?

Thanks,
j

Copyright © 2005-08 www.BigResource.com, All rights reserved