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




Alpha Of Text Fields



I'm trying to make dynamic text fields fade away. After I create text, I convert it into a movie clip. ActionScript lowers the alpha only on the graphics element in the clip, never the text itself.

Any suggestions? Please?



FlashKit > Flash Help > Flash MX
Posted on: 01-13-2003, 02:39 PM


View Complete Forum Thread with Replies

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

Gone Mad --alpha Property For Text Fields?
the book says you can do this but ... not sure what I am doing incorrectly. I have created a text field -- _root.createTextField("myField", 10, 20, 50, 200, 30);
but when I then add the code myField._alpha = 40 (or whatever value) it does nothing to the text field value. Im going mad, if anyone could shed some light, would be very greatful. ta k

About Alpha Values And Text Fields
why is it that when i set the alpha of a clip containing a dynamic text field, the textfield's alpha doesnt inherit that alpha as well?

ie: when i set alpha to 0 on the parent clip i can still see the text

also if someone could point me to a list of known actionscript 1.0 and 2.0 bugs thatd be mighty helpful

Alpha Parameter For Text Fields
I'm wondering if it is possible for a text field to have alpha, such that the background doesn't appear solid. Setting the alpha parameter seems to do nothing.

Example code below:









Attach Code

var sprite:Sprite = new Sprite;
sprite.graphics.beginFill(0x000000);
sprite.graphics.drawRect(0,0,400,400);
addChild(sprite);
var text:TextField = new TextField();
text.background = true;
text.backgroundColor = 0xCCCCCC;
text.border = true;
text.borderColor = 0x000000;
text.autoSize = TextFieldAutoSize.LEFT;
text.mouseEnabled = false;
text.multiline = true;
text.wordWrap = true;
var format:TextFormat = new TextFormat();
format.size = 12;
format.color = 0xFF0000;
format.align = "center";
text.defaultTextFormat = format;
text.text = "Trying To Create An Alpha Text Field";
text.mouseEnabled = false;
text.alpha = 0.5;
addChild(text);

Re: Alpha Parameter For Text Fields
you need to embed a font.

Alpha Transition Not Working With Dynamic Fields AS3
Dear All,

Question 1:
Hi I am new to AS3. I understand from reading various forums that if you do not embed the font in to the movie the dynamic field won't fade with alpha. But when I try to enbed the font or setting embedFonts = true the text just disappears.

I have the text now with a tween just to show that the tween is working while the alpha is not.

This is the link to the SWF:
http://www.orbitalnets.com/test/map_mall_AS3_test.html

Link to the FLA:
http://www.orbitalnets.com/test/map_mall_AS3_test.fla
In the FLA I have all the font embed try outs commented out so you can see the text

Link to the external text file:
http://www.orbitalnets.com/test/mytext.txt


Question 2. (not as important as question 1)Because if I can make this work I will need to do this for all the other locations on the map. Is there any generic way to do this? Otherwise the code will be very long for all these stores. Is their any better way to do this with AS3?

Alpha Transition Not Working With Dynamic Fields AS3
Dear All,

Question 1:
Hi I am new to AS3. I understand from reading various forums that if you do not embed the font in to the movie the dynamic field won't fade with alpha. But when I try to enbed the font or setting embedFonts = true the text just disappears.

I have the text now with a tween just to show that the tween is working while the alpha is not.

This is the link to the SWF:
http://www.orbitalnets.com/test/map_mall_AS3_test.html

Link to the FLA:
http://www.orbitalnets.com/test/map_mall_AS3_test.fla
In the FLA I have all the font embed try outs commented out so you can see the text

Link to the external text file:
http://www.orbitalnets.com/test/mytext.txt


Question 2. (not as important as question 1)Because if I can make this work I will need to do this for all the other locations on the map. Is there any generic way to do this? Otherwise the code will be very long for all these stores. Is their any better way to do this with AS3?











Attach Code

// define rolls:
function moveForward(event:Event){
event.target.nextFrame();
}
function moveBackward(event:Event){
event.target.prevFrame();
}
button.addEventListener( MouseEvent.ROLL_OVER, buttonHandler );
button.addEventListener( MouseEvent.ROLL_OUT, buttonHandler );
button.addEventListener( MouseEvent.CLICK, buttonHandler );

// event handler:
function buttonHandler( event:MouseEvent ):void
{
// get the object we moused over/out/clicked
var btn:MovieClip = MovieClip( event.target );
switch( event.type )
{
case MouseEvent.ROLL_OVER:
{
btn.removeEventListener(Event.ENTER_FRAME,moveBackward);
btn.addEventListener(Event.ENTER_FRAME,moveForward );
break;
}
case MouseEvent.ROLL_OUT:
{
btn.removeEventListener(Event.ENTER_FRAME,moveForward);
btn.addEventListener(Event.ENTER_FRAME,moveBackward);
break;
}
}
}

//Create the URLLOader instance
var myTextLoader:URLLoader = new URLLoader();
myTextLoader.dataFormat=URLLoaderDataFormat.VARIABLES;

//button.myTextField_txt.embedFonts = true;
//button.myTextField_txt.font = "Arial";
//button.myTextField_txt.color = 0x000000;
//button.myTextField_txt.blendMode = BlendMode.LAYER;

myTextLoader.addEventListener(Event.COMPLETE, onLoaded);

function onLoaded(e:Event):void {
button.myTextField_txt.text = e.target.data.f13;
}

myTextLoader.load(new URLRequest("mytext.txt"));

Alpha Transition Not Working With Dynamic Fields AS3
Dear All,
Question 1:
Hi I am new to AS3. I understand from reading various forums that if you do not embed the font in to the movie the dynamic field won't fade with alpha. But when I try to enbed the font or setting embedFonts = true the text just disappears.
I have the text now with a tween just to show that the tween is working while the alpha is not.

This is the link to the SWF:
http://www.orbitalnets.com/test/map_mall_AS3_test.html

Link to the FLA:
http://www.orbitalnets.com/test/map_mall_AS3_test.fla
In the FLA I have all the font embed try outs commented out so you can see the text

Link to the external text file:
http://www.orbitalnets.com/test/mytext.txt

Question 2. (not as important as question 1)Because if I can make this work I will need to do this for all the other locations on the map. Is there any generic way to do this? Otherwise the code will be very long for all these stores. Is their any better way to do this with AS3?

Dividing Number X (30, 25, 13, Etc..) Amongst Text Fields (1-100 Fields)
Sorry about the title of this post, but I didn't find it easy to make a descriptive title.

What I'm trying to do, isn't a huge project, and I don't believe it's infinitely complicated. I just can't seem to wrap my head around it at the moment.

Hard enough to explain what I want...

Try to picture this:

Flash file opens up.
There are 6 text fields on the screen.
You enter the number 30 into a text field located near the top and press a button.
The 5 remaining text fields suddenly have numbers in them:Field 1: 30
Field 2:8
Field 3:9
Field 4:3
Field 5:5
Field 6:5

The idea is that I need a piece of code that will divide a variable amount of 'points' between a variable number of text fields. But not only does it have to be divided it has to be randomly and often unevenly divided.

So X = Number of text fields X / 30
Won't bring about the desired results.

I think I can (but haven't tried) divide 30 evenly easy enough, but since thats not what I'm after...

Any suggestions?

Seems to me that the final code will be one of those 'Wonder why I didn't see that' sort of things. But I can't get it.

Thanks for your help.

-Lem

Help With Text Fields And Inputting Text From External Text Files
help with text files and paths

i need some help with input text field and text files.

i have a 'presentation' movie that has three buttons. these buttons influence a sliding menu that has three sections to it. the sliding menu is a movie clip made up of 3 separate graphic elements and is placed on the main stage. the code on the movie clip is:

onClipEvent (load) {
var a = 5;
var d = 3;
var newX = _x;
var oXPos = _x;
var myXspeed = 0;
}
onClipEvent (enterFrame) {
myXspeed = ((_x-newX)/a+myXspeed)/d;
_x -= myXspeed;
}



and the code on the frame action is:

fscommand ("allowscale", false);
var xPositions = new Array(0, 205, -190, -580);
function jumpTo (number) {
slider.newX = xPositions[number];
}
stop ();



i now want to be able to have an input text field on each separate element of the sliding menu that pulls text from 3 sepaprate external text files and i can't get it to work. i'm ok if i put the text field on the main stage and can pull the info in from a text file using

loadVariablesNum ("text.txt", 0);

placed on a frame action. how do i adapt this so that it works for a text field put on the sliding menu. and how do i work it if i have three separate text files and three different text fields? i'm not very good at understand the paths needed to reach certain elements within a movie and where to put these actions.

should the load variable be on a frame actions or on a button action and whats the path to my input text field???

any help appreciated - as its driving me mad.

thanks

eskymo

Changing Font And Size Of Text Added To Dynamically Created Text Fields
Whew.. That long-winded subject line pretty much covers it.

Link

In the galleries, I have text I am adding to a movieClip. I have been able to add the description text, change it's colour, but the font and size are not responding. I'm using FlashMX2004. Can anyone show me what I'm doing wrong? Here's the pertinent code:

_parent.Gallery.createTextField(["Txt_" + CVar], _parent.LevelCount + 1000, 175, _parent.EntryY, 325, 110);
_parent.Gallery["Txt_" + CVar].font = "Arial";
_parent.Gallery["Txt_" + CVar].text = _parent.Description[AVar];
_parent.Gallery["Txt_" + CVar].textColor = 0xFFFFFF;
_parent.Gallery["Txt_" + CVar].textSize = 25;


Thanks so much!

Dynamic HTML Text Fields Do Not Display Formatted Text?
Flashkit.com,

In Flash MX I am developing a lot of movies using dynamically populated html text fields. When the user does not have a font I used on their machine swapping happens on all dynamic and input fields. Only static fields display the corrent font. I make sure the text field properties are embedding the fonts. Still all of the dynamic html text fields do not display the formatted text. I have .fla samples I can email to anyone.

I have tried these macromedia solutions with NO success:

http://www.macromedia.com/support/fl...t_outlines.htm

http://www.macromedia.com/support/fl...namic_text.htm

http://www.macromedia.com/support/fl...haredfonts.htm

Does anyone have a working sample .fla they can send me?

-Jimmy

Dynamic HTML Text Fields Do Not Display Formatted Text?
Flashkit.com,

In Flash MX I am developing a lot of movies using dynamically populated html text fields. When the user does not have a font I used on their machine swapping happens on all dynamic and input fields. Only static fields display the corrent font. I make sure the text field properties are embedding the fonts. Still all of the dynamic html text fields do not display the formatted text. I have .fla samples I can email to anyone.

I have tried these macromedia solutions with NO success:

http://www.macromedia.com/support/fl...t_outlines.htm

http://www.macromedia.com/support/fl...namic_text.htm

http://www.macromedia.com/support/fl...haredfonts.htm

Does anyone have a working sample .fla they can send me?

-Jimmy

Input Text Fields Colours To Fade In And Out On Entering Text?
I am uploading a file with input text field that changes colour when you click in it - this is great, but what if i wanted the following:

in the initial state, the text box is grey as you can see, but when i click inside it, it fades to pink instead of suddenly just changing to pink. And likewise, when i click outside the box it fades back to grey.

You will see what i mean if you view the file.

it's mx not mx2004

Thanks.

Loading Text Into Mulitple Fields From A Single Text File
Hi there. I am trying, and failing(so no soucre) to make text load dynamically into multiple fields.

I am trying essentially to load text using only one text document- into several fields. This is so I can run a very primitive cms system in flash. (all the fields need to call different portions of the text.

If anyone understands what I mean and how it could be done, it would be great

Assigning Text In Dynamically Created Text Fields; Flash 8
I'm having trouble with dynamically assigning text to a dynamically created text field.

This works:
ActionScript Code:
//set font with TextFormat
myFormat=new TextFormat();
myFormat.align="left";
myFormat.color="0xFF3300";
myFormat.font="MyriadProBoldCon";
myFormat.size=25;

//create text field
this.createTextField("timText", 1, 10, 10, Stage.width,40);
timText.text="I declare a truce for robot juice";
timText.embedFonts=true;
timText.setTextFormat(myFormat);




but this doesn't:
ActionScript Code:
//set font with TextFormat
myFormat = new TextFormat();
myFormat.align = "center";
myFormat.color = "0xFF3300";
myFormat.font = "MyriadProBoldCon";
myFormat.size = 25;
//create text field; text shows up right now
this.createTextField("timText", 1, 0, 10, Stage.width, 40);
timText.text = "I declare a truce for robot juice.";
timText.embedFonts = true;
timText.setTextFormat(myFormat);
//but click a button, and the text disappears and is not replaced!!!
btn1.onRelease = function() {
timText.text="Breakfast is served all day in Hell!"
};
btn2.onRelease = function() {
timText.text="We prefer to be called Buccaneer-Americans."
};
btn3.onRelease = function() {
timText.text="It's fun to use learning for evil!"
};




I've tried setting up the TextFormat and createTextField as a function that's called on the onRelease handler. I've tried dropping the whole frackin' code in the onRelease function for each button. Neither approach works.

I've been digging around on the web, looking for answers, and nothing seems to solve my problem. Does anyone have any ideas?

thanks in advance!

CSS In Dynamic Text Fields - Font-family Causes Text To Disappear
Hi,

I've set up my dynamic text field, and I can apply other CSS properties
successfully, but when it comes to the font-family property, the text
within the class just disapears.

Does anyone have any idea why this is happening? The problem occurs
even when selecting standard fonts such as arial.

Thanks,

Dylan James

Problems With Formatting Text In Input Text Fields...
I want to set up my cursor in input text fields to be white, because my backround is black.

Is It Possible To Rotate Dynamic Text Fields? Text Blanks Out
Im doing some xml-integration, calling in xml data into dynamic text fields. the text imports correctly, but i need to change the _rotation property. Whenever i do this, the text blanks out...is it not possible to apply rotation to a dynamic text field?

Mixing Vars And Text In Dynamic Text Fields..
Hi,

My preloader has a little percentage feature/dynamic textfield so it will show say 10%, 25% etc.

My code:

_root.loadedpercentage.text = Math.round((sofar/total)*100)+"%";

does not work. Doh!

It just shows the value of the percentage eg 10, 25 but the % character does not appear.


I really dont like dynamic textfields cos they dont like me. Can someone tell me whats wrong?

Cheers.

Steven.

Highlighting Text In Input Text Fields Automatically...
hi

i've searched the forums on this topic and attempted the solutions that i found but i can't get them to work the way i need to.. so here's what i need help with..

i have created a study planner that allows students to input the amount of hours they spend on particular activities during a day.. the total hours of the day remaining updates dynamically as does the amount of time remaining in a week.. to keep it all working nicely (and avoid a 'NaN' error) i force the value of the input box to always be 0..

what i would like to have happen is when the students click in the input box the 0 is automatically highlighted so they can just type over the top of it.. at the moment i just have an instruction telling them they need to highlight the 0 before they type but this just seems clumsy..

i got automatic highlighting working with textfield.onChanged but that only highlighted the text that the user has put in, ie after the textbox changed!.. i would like to avoid having to use a button as well.. any ideas would be greatly appreciated!.. i'm going round in circles.. i have attached the .fla

i'm using flash MX2004 professional...

thanks in advance,
sars

Modifying Text In Dynamically Created Text Fields
Is it possible to modifying text in dynamically created text fields? I've been searching on Google for hours and nothing came up. What I'm try to do is have an empty dynamic textfield (which would get a variable from an external file) duplicated serveral times (depending on the number needed). Though I'm pretty sure I can duplicate the dynamic textfield without a problem, it's the part where I'm trying to pass different variables into those duplicated textfields that I'm not sure how to do properly. Does anyone have any ideas?

Load External Text Into Multiple Text Fields
Can you load one (1) external .txt file into multiple text fields ?
I'm trying to create seperate variable names for the seperate text fields and reference them from one .txt file - - Is this possible ?

[F8] Dynamic Text, Text Fields And <a Href> Tags.
I have been trying to figure this out for a very long time. My company's web designer went MIA and left us with a Flash site that is very hard to update (and no original FLA's).I have resorted to decompiling his SWF's with pretty impressive success. Only thing I can't figure out how to do is get dynamic text displayed in a text field to accurately display funtional links. If I select the text field and click the "render text as HTML" button and export the SWF, no text appears at all. If I select use device fonts, the links work, but the text looks funny. I am using Flash 8, but saving as a flash MX 2004 document because I think that's what the designer used and... I guess I don't have a very good reason, it just seemed like the right thing to do... Also I'm exporting it as a Flash 6 movie because our web stats say that almost 10% of visitors have that installed. If it helps the code looks like this:

loadVariables("blahblahblah.txt", "_root.mcData");
stop ();

Any help would be hugely appreciated.

Text Input Fields, Under Masking, Text Not Visible
I'm not sure if this is true..
but that's what I've come to the conclusion.?

when I use a text input field, for an email submit form..
if I put a masking layer on top of the text input layer..
the input field is visible, but when you type in it, the text is not..

Is there any way to prevent this from happening?

Comparing Dynamic Text And Input Text Fields
I am hoping this is simple but I need some help on checking to see if a users input text in to a Input Text matches the text in a Dynamic Text that has be input from a text file.

I have the attached the fla and a single .txt file for evaluation.

I believe it is on the submitt button code where the if statement occurs I am stuck in seeing the actual problem.

Any help is appreciated.

Thanks

Modifying Text In Dynamically Created Text Fields
Is it possible to modifying text in dynamically created text fields? I've been searching on Google for hours and nothing came up. What I'm try to do is have an empty dynamic textfield (which would get a variable from an external file) duplicated serveral times (depending on the number needed). Though I'm pretty sure I can duplicate the dynamic textfield without a problem, it's the part where I'm trying to pass different variables into those duplicated textfields that I'm not sure how to do properly. Does anyone have any ideas?

Loading Text Into Text Fields From An External File…
I have a file supplied to me with a couple of text boxes in it.

My friends would like to easily update the content of these boxes by using an external text file.

I have tryed tests with the "loadVariables" property, but can't seem to get any text to load at all. I have a text file called "Content.txt" and the dynamic text box has an instance name of text1 (original I know) and a variable name of myText.

The beginning of my text document starts of with "myText = "…

The line of code I was using was
loadVariables("Content.txt", text1);

this produced no result… does anyone have any suggestions for this problem?

Cheers.
Joel

How To Stop Text Stretching In Dynamic Text Fields
Hi,

I have many dynamic text fields in my application, wih strings of various lengths in them. All the text boxes are the same size but the boxes with les characters in are stretching the text, is there a way to stop this?

Thanks for your advice

Changing Text Spacing On Input Text Fields
It appears to me that the text spacing tool ( AV ) in the properties inspector does not work on input text fields. All other tools do seem to work though.

I'm creating a form to be used by a classroom instructor to show students how each of the 200+ input text fields should be filled in. The months, days and years are individual cells. Currently, for the date cells, you must click on each cell, type in the number, click on the next cell, type in the number, etc. It would be nice to avoud the mouse click between theses inputs.

What I would like to do is spread out an input text field that will accept 4 characters (for the year). The character spacing is needed to align the characters up with the graphical input blocks.

Any ideas?


Thanks for helping.

Loading Text Files Info Text Fields On AS3
Hey guys, I am following some examples from Flash CS3 Help files and some portions of the ActionScript 3.0 Cookbook on TextFields. Here's the code I currently have on my first frame of the timeline. When I test the file, I get "TypeError: Error #2007: Parameter text must be non-null. at flash.text::TextField/set htmlText() at textFields_fla::MainTimeline/textFields_fla::frame1()"

What's wrong?









Attach Code

import flash.display.Sprite;
import flash.events.*;
import flash.net.*;

var source:String = "html.txt";
var dataFormat:String = URLLoaderDataFormat.TEXT;


var loader:URLLoader = new URLLoader();
loader.dataFormat = dataFormat;
var request:URLRequest = new URLRequest(source);
loader.load(request);


var myT:TextField = new TextField();
myT.autoSize = TextFieldAutoSize.LEFT;
myT.width = 300;
myT.wordWrap = true;
myT.htmlText = loader.data;
addChild(myT);

HTML Text In Dynamically Created Text Fields?
Hi,
I am creating a series of text fields to display data from an xml file.

eventClips[i].createTextField("url_txt",9,0,0,250,30);
eventClips[i].url_txt.htmlText = "<a href=""+child.attributes.url+""></a>";

I can't get the text fields that I am creating dynamically to accept html, why????

I have tried .html = true;

Am I really going to have to create my own button and use getURL?

what's the secret?




I am using flash 8, as2.

How Do I Pass Text From Flash Text Fields To A PHP Script
Hello,
Can anyone PLEASE either steer me to a tutorial or perhaps explain how to do this. I'm working on a flash page that I need to assign values to 2 text fields and a button. The fields are for username and password and a go button. It will pass the information to a php script.


I know how to do this and have it working with html but I need to make it work with the flash page. I made the 2 fields and the button. How do I assign the values.

The html code I have is . . .


<form action="http://mydomain.com/phpgdv2/index.php" method=POST name=theform>
<table border=0>
<tr><td colspan=2> Please log in below.
</td></tr>
<tr>
<td class=sectiondesc>
Username
</td>
<td>
<input type=text name=username size=20 class=inputfield>
</td>
</tr>
<tr>
<td class=sectiondesc>
Password
</td>
<td>
<input type=password name=passwd size=20 class=inputfield>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>
<input type=submit name=_phpguarddoglogbut value=Submit>
</td>
</tr>
</table>
<script language=JAVASCRIPT>
document.theform.username.focus();
</script>
<input type=hidden name=_phpguarddogaction value=login>
</form>

============================

I am in hopes that someone will take a look and tell me if I am even on the right track. I need the form to send the data from the fields tht I posted in the html example and I don't know what I am doing wrong.

I have a feeling that I have turned a simple thing into something complicated and really am very new to flash.

In advance I thank you for a response and this wonderful forum.

B -



I uploaded my .fla file to http://mymediabin.com/login.fla

Masked Text Fields (dynamic Text) Bug?
hello,

is it possible that dynamic textfields won't work if they're
masked? i've tried and tried...

if this is so, is there a workaround?

thx

Text Fields - Distorting Dynamic Text
Hi there,

Can anyone tell me why text almost always deforms (shrinks or streches etc...) when it is dynamic?

I have a text field that is ARIAL BOLD, 18pt, black.
It looks fine, but when I make the text field dynamic and I do EMBED the font, the text looks terrible. The problems that occurr are never consistent.

Sometimes the text looks like it's 12pt, sometimes it is stretched out horizontaly, sometimes it's squished verticaly.....

The most common problem is that the text appears STRETCHED out horizontaly. if I make the text box an appropriate height for 18pt type, and say... 300 px long (wide) the text sometimes stretches (each letter looks very wide).

What can I do to solve this? I tried everything, and it seems like such a rediculous problem!!!!

I know several people who have the same issue, an no one has solved it yet.

Anh ideas?

Thanks in adnvance!!!!!!

Loading Text In Dynamic Text Fields
Using Flash MX.

In FlashMX I created a dynamic text box and typed my variable name in the variable field.

I created a text document...tried in Word and SimpleText...and in the first line typed the variable name followed by an = sign. It looked like this

about =

I guess after that I should type the text I want to be displayed.

On the first frame of the movie I added an action. LoadVariables and I typed the name of the text document in the URL field. It is living in the same place as my flash file.

I guess this is supposed to load the text document which loads a value for a variable which I have used to label my dynamic text element.

I did this following steps in a book called FlashMX Action Script for Designers by Doug Sahlin.

It's not working and I've tried it several times.

Anybody know of an easy way to load a text document into a dynamic text box?

<

-643

Dynamic Text Fields And Right Aligning Text?
I was working on a percentage preloader this afternoon and even though I selected the dynamic text field and made it right align the text, the text still appears left aligned instead. Is this a problem with all dynamic text fields or is there a solution to this?

Check That Input Text Fields Have Text In Them?
How can i do this?
The easiest script avaliable please?

Thanks in advance...

Scrolling Text Inside Text Fields?
Hi, i work in a technology company and require if it possible to have scrolling text animate within a text field. So you would'nt actualy animate the field itself only the text would scroll up like movie credits then repeat itself on a loop inside. Also the text that will be going in will be external and is dynamic, so you could get 1 result going in, but then 4 at another time depending on the results.

So idealy it would all be in one frame and be much like a component?

Thanks

Always Reads Text Fields As HTML Text
I have an input field in my movie that I want to be able to type in a number, and use the number in actionscript.
If I set the variable with actionscript (count=60;) it works, but if I type a number into the textbox and trace the variable it will trace as
<p align="left"><font face="Arial_14pt_st" size="14" color="#000000" letterSpacing="0.000000" kerning="1">60</font></p>

HTML is OFF in the properties panel - also tried setting it to false in actionscript which made no difference.

[AS1][text Fields]text Changing The Size Of A MC
If you have a text field created in a MC (with the createTextField) method will it change the _height and _width parameters of the MC?

I am trying to create and position several pieces of text with the following code but they are overlapping one another.


ActionScript Code:
message_mc.title_mc.createTextField("title_txt",1,0,0,300,0);
message_mc.title_mc.title_txt.border = false;
message_mc.title_mc.title_txt.autoSize = "left";
message_mc.title_mc.title_txt.multiline = true;
message_mc.title_mc.title_txt.wordWrap = true;
message_mc.title_mc.title_txt.text = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
 
 
message_mc.body_mc.createTextField("body_txt",1,0,0,300,0);
message_mc.body_mc.body_txt.border = false;
message_mc.body_mc.body_txt.autoSize = "left";
message_mc.body_mc.body_txt.multiline = true;
message_mc.body_mc.body_txt.wordWrap = true;
message_mc.body_mc.body_txt.text = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
message_mc.detail_mc.createTextField("detail_txt",1,0,0,300,0);
message_mc.detail_mc.detail_txt.border = false;
message_mc.detail_mc.detail_txt.autoSize = "left";
message_mc.detail_mc.detail_txt.multiline = true;
message_mc.detail_mc.detail_txt.wordWrap = true;
message_mc.detail_mc.detail_txt.text = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXX";
message_mc.title_mc._x = 10;
message_mc.title_mc._y = 5;
message_mc.detail_mc._x = 10;
message_mc.body_mc._y = message_mc.title_mc._y + (message_mc.title_mc._height + 10);
message_mc.body_mc._x = 10;
message_mc.detail_mc._y = message_mc.body_mc._y + (message_mc.body_mc._height + 10);


I'm doing some effects to the text after it is loaded and formed, that is why everything is embedded into 'message_mc'.

Any thoughts as to what is wrong here?

--xenite

[F8] Dynamic Text Controlled Diff From Static Text? (alpha Question)
hi! i'm trying to fade in a movieclip with text but am running into some problems. the movieclip contains 4 dynamic text boxes which will serve as buttons and 1 static text with a title. however, the tween function is currently only fading in the static text and not the dynamic text boxes.

the main part that i'm talking about starts from "function scaleUp()" and down, but i posted what i have so far for context. with the posted code, the static text will fade in with the tween, but the dynamic text just plops there.

thanks for your help OH, and if you would also like to help, i want to have the 4 dynamic texts fade in one after another; i'm not sure whether or not to use an array or for script....and either way, i'm not really sure how to script that, so if you could help me with that too, that'd be awesome. thanks!


PHP Code:




// place background at 0% alpha
var fadeIn:MovieClip = _root.attachMovie("bg", "bg_mc", 0);
bg_mc._alpha = 0;
// import flash tweens
import mx.transitions.Tween;
import mx.transitions.easing.*;
// on enterframe, tween alpha to 100% and on complete, start centerline function
fadeIn.onEnterFrame = function() {
    var bgFadeIn:Tween = new Tween(bg_mc, "_alpha", Strong.easeOut, 0, 100, 2, true);
    setTimeout (centerLine, 750)
    delete this.onEnterFrame;
};
// places center line (invisible)
function centerLine() {
    var introLine:MovieClip = _root.attachMovie("line", "line_mc", 1);
    line_mc._x = 450;
    line_mc._y = 300;
    line_mc._visible = false;
    lineTween();
}
// makes line visible and tween out (changing _width)
// on complete, begins scaleUp function
function lineTween() {
    line_mc._visible = true;
    line_mc._alpha = 50;
    var tween:Tween = new Tween(line_mc, "_width", Strong.easeOut, 0, 901, .75, true);
    tween.onMotionFinished = function() {
        scaleUp();
    }
}
// changes _height of rectangle to make box and start fadeText function
function scaleUp() {
    var upTween:Tween = new Tween(line_mc, "_height", Strong.easeOut, 1, 200, 1.2, true);
    upTween.onMotionFinished = function() {
        var placeText:MovieClip = _root.attachMovie("text", "text_mc", 2);
        text_mc._x = 0;
        text_mc._y = 200;
        text_mc._alpha = 0;
        text_mc.text0.text = "about";
        text_mc.text1.text = "portfolio";
        text_mc.text2.text = "photos";
        text_mc.text3.text = "contact";
        fadeText();
    }
}
function fadeText() {
    var textTween:Tween = new Tween(text_mc, "_alpha", Strong.easeOut, 0, 100, 3, true);
}

Text Fields
hi, i just wondering, ive got a movie that works fine but the input text fields wont accept text being pasted into them, some people that have tried the movie say that on thier machines it will let them paste most characters, but not strange ascii chars.

is there a way to set an input field to accept the full ascii range ?

(i tried embedding entire font outline, and all it did was make the text fuzzy)

Karo

Text Fields
i had this problem initially... where i wanted to input something in an input box and withour pressing a button i wanted to make some calculations and send the result to another dynamic field.... but i solved that problem.. i made a movie with 3 frames and three textboxes and it worked but now when i m working on my actual movie this isnt working where i have many layers and frames..
can ne one help me so i can get the result on the textboxvalue change event, rather than pressing a button e.g if i input my monthly salary in one box .. it hud automatically calculate my yearly salary and show me without my pressing a button

Text Fields
Hey there boardies,

Here's the situation:
I've created an input text field, and would like to have the user enter one of a few given words that would take him/her to another scene once they press a button.

ex:
1) The user enters "Home".
2) The user presses the button.
3) The user is taken to the appropriate scene.

So, how should I go about doing this?
Any help on here would be greatly appreciated.

Thanks in advance.

How To Set RGB Of Text Fields........
i like to change the rbg color of a text field through setRGB
randomly...... using actionscript

Text Fields
hello kind reader :

I made a chat window, & it minimizes(frame2) & maximizes(frame1). Both of these chat windows are different movie clips but they share the same multi-line dynamic text fields. The issue is that when the size of the window changes i have to resize the text fields to suite the appropreit window & the fields of course squishes/streches the text. ok so i'm using the same text field but i want it to have different settings(as in size)depending if it's on frame 1 or 2, can i achieve this through code? if so pls point the direction, thnx
M.

Text Fields
Does anyone know if it's possible to access the text on a particular line in a text field.
Any pointers would be much appreciated.
thanks in advance.

Text Fields
I have two text fields in 2 different swf files on 2 different levels.
What would the correct code be for using the getTextFormat function from moviea.textfield and applying it to movieb.textfield. Including the actual text.

Text Fields
hey,
i have a page were i want to load text into a box when the user clicks on the buttons. i got it to load, but then i changed the size of the box it loads into. now the images are all magnified and blured. i went back and resized the images to the box size and that didn't work. when it loads it also shifts to the left. i need a way to control the box so if the image is to big the user could scroll. also need to get the image to stay in the box. this is the code i have right now
on (press, release) {
loadMovie("../_notes/image2.jpg", "square");
}
how do i control this.
Thanks Doug

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