ActionScript 2.0 :: CreateTextField Text Location?

Nov 1, 2004

im using CreateTextField to get data from php, no problem there, but the placement of the text has be baffled.

here's what i got:

here.CreateTextField("t_txt", 1, 1, 1, 10, 10);
here.t_txt.Size = 12

what i WANT is to put the text in the top middle of the movie but no matter what i change in the number it just moves to strange places in different sizes and sometimes cut in half, heres a screenshot of current one.

also, one other thing, this number basically keeps track of people in a chatroom, how can i get flash to refresh itself every few seconds to ensure it has the latest number, just have 2 frames the same and loop them?

View 1 Replies


Similar Posts:


ActionScript 2.0 :: CreateTextField() Not Displaying Dynamic Text?

Aug 3, 2006

Im trying to create textfield inside my movieclip dynamically (at runtime). So I created a function called "CreateTextField()" which accepts parameters, including the "instanceName" and "txtValue".

Inside that function is a MovieClip.createTextField() function that takes the values and creates a textfield with the "instanceName" provided and assigns a value to the .text property of the textfield through "txtValue".

The code compiles. But it just doesnt want to show the textfield.

What Ive got in my constructor is:

[Code]...

View 3 Replies

ActionScript 2.0 :: CreateTextField And Changing Text Color

Apr 13, 2007

What I am trying to do is: have a dynamically created text field change color when i roll over a movieclip. This is what I have: a movie clip with this code:

Code:
this.createTextField("header", 99, 10, 10, 100, 300);
header.autoSize = true;
header.embedFonts = true;
var my_fmt:TextFormat = new TextFormat();
my_fmt.size = 50;
[Code] .....

The dynamically created textfield (lets call it "header") works fine. However, i cannot seem to get the text field to change color once you roll over the instances. I've tried using "
Code:
on (rollover) {
this.header.textColor = 0xFFFFFF;"
}
but no such luck....

View 4 Replies

ActionScript 2.0 :: Adjust Text Box Height (createTextField)

Jul 26, 2008

I'm trying to dynamically create a static text field on the stage, but I want it to automatically shrink to the smallest height possible, much like a static text box dragged created using the Text Tool.

Here's my code at current:

Code:
_root.createTextField("text_box"+i,i,10,10,530,100);
_root["text_box"+i].type = "static";
_root["text_box"+i].text = text_arr[i];

[Code]....

View 3 Replies

ActionScript 2.0 :: Create 3 Dynamic Text Fields With CreateTextField Function?

Feb 6, 2007

I want create 3 dynamic text fields with createTextField function and i want apply a TextFormat on all three text fields.
I use this code:

[Code]...

but the problem is, that only one text field is created - text2, and also TexTFormat cant be apply to this text field.

View 4 Replies

ActionScript 2.0 :: CreateTextField - Buttons To Change Font - Colors And Position Of The Text Box

Jan 27, 2009

on first step (screen) there are 2 text fields user inserts text in a field and on the second text field same text appear as he types. he clicks on a button to go to step 2 On the second step he has the written text from previous screen and buttons to change font, colors and position of the text box.

View 1 Replies

ActionScript 2.0 :: CreateTextField - Copy And Paste The Code, The Text Gets Replaced Each Time?

Jan 10, 2004

Heres the code i made that i THOUGHT would work. Basically what i'm trying to do is a line of text which look like:

image 1
image 2
...

like that. But if you copy and paste the code, the text gets replaced each time for some reason .

[AS]
identifier = 1;
width = 40;
height = 17;[code]....

when trying to embedFonts, nothing works thats why i've put it in as comments.

View 14 Replies

ActionScript 1/2 :: Make An Object Tween From Its Starting Location To The Location Of A Mouse Click?

Apr 27, 2009

I am trying to make an object tween from its starting location to the location of a mouse click. I have a script, but it has a very annoying ease to it.I would LIKE the object to mantain a certain speed during while traveling from its starting location to the mouse click location.

View 16 Replies

Professional :: Button File Opens In Saved Location / But Won't Open In New Location

Aug 21, 2011

I created a simple button that displays an error messeage: "error opening 'url" when I test the movie, but does play and opens in browser after publishing. However, it won't open in the browser in a different location. I pasted the html code in a web page but it doesn't work there nor opens in the browser in a differnet location from where it was originally published and saved. Why is that?

View 13 Replies

ActionScript 2.0 :: Updating A Dynamic Text Box Location

Jan 22, 2009

on my onEnterFrame function, I just want to keep updating a Dynamic Text Box location. It's giving me more trouble than I anticipated, and the solution is probably very easy. I have spent 30 minutes (give or take) on trying to figure it out, but to no avail. This is what I have at onEnterFrame:

ActionScript Code:
_root.HPnum._y += _y - 60;
_root.HPnum._x = _x + 20;

Fairly simple, it's in the as code file that I want it to track. What happens is, it does get moved, but I cannot see it anywhere.

View 8 Replies

ActionScript 1/2 :: Resizing Text Based On Mouse Location?

Mar 12, 2009

Basically, I want to have 5 bullet points on this flash document, and as you move your mouse, it measures the distance from the mouse to the text (each bullet point measured separately) and it effects the scale of the text. I don't want it to be drastic, but just something people would notice when they move their mouse around on the page to give the user a little bit more interactivity with this particular page.

View 2 Replies

Professional :: How To Edit Text Movement / Location In FLA File

Aug 9, 2010

I'm building a site that was bought from a template house that has a flash piece in the header. I have Win CS4 and have been able to swap out the images and replace the text but I am having a hard time finding where I can edit where/how the text aligns/ends up. Here's the test location: FertilityTestSite

Originally there was text of varying lengths that slides in below each image aligning right to the play/stop button. I tried to get them to give me text of a similar length but they just want the phone number. So now the phone number slides in but because the original text was longer (except for the one that had a ph#) they stop at different locations where the original 1st character came allowing to align right.

So my question is how/where do I edit this action? Would this be [in] the ActionScript? I am a complete noob and have only gotten to where I am through trial and error. I was able to find and replace the text in Essentials workspace and I was able to swap images (update) by right clicking them in the library view and I see a text export in there too that I have a high suspicion is what I need to edit but don't know how to access it.

View 8 Replies

ActionScript 2.0 :: Move MC From One Location (x / Y) To Another Location

Feb 16, 2005

How can I move my MC from one location (x, y) to another location (x1, y1) wirh action script..?.. and I would like to have my motion tween rounded to (x,y) so it will look sharp.

View 8 Replies

ActionScript 2.0 :: How To CreateTextField()

Jul 13, 2004

Code:
for (var i:Number=0; i <= 7; i++){
// create 7 text fields

[code]....

View 3 Replies

ActionScript 2.0 :: MC.createTextField?

Oct 26, 2007

I'm working with a flash program that dynamically creates a user-specified amount of text fields in an MC using the createTextField function. However, it seems only one of the text fields will show up.

I've done some testing, and I found that when you create multiple text fields in an MC using this method, only the most recent one shows up. Is there any way to avoid this?

View 1 Replies

ActionScript 2.0 :: CreateTextField + Link It To A MC?

Oct 14, 2009

With the code below how can I add to it to make it a link to an internal movie clip.So when someone clicks on this text it tells another move clip to play.Do I need to create an empty MC and Add this text feild inside that MC?

Code:
_root.createTextField("mytext",1,585,20,200,100);
mytext.multiline = true;

[code].....

View 1 Replies

Actionscript :: Flash CreateTextField()?

Aug 25, 2011

I'm creating a text field dynmaically and it works great however when I test the movie I can't seem to change any text (like a typical input box on a webpage for example), it appears to be only readonly.

[Code]...

View 1 Replies

Actionscript 2.0 :: CreateTextField With No Set Width?

Jun 19, 2009

I'm coding a dynamic menu in flash which involves creating a text field for each item in an array (forloop).
but i want to create the text field with no set width so that each text field is set to the width of the space that the text inside it takes up..i thought something like

createTextField("name", depth); would do but it doesnt seem to work without all of the parameters
createTextField("name", depth, x, y, width, height);

View 1 Replies

ActionScript 2.0 :: CreateTextField Weirdness?

Mar 19, 2005

When I load an external text file it takes two clicks of the button to get the text to loadThe first click is blank the second click loads the text.

Here is the function:
// Create TextField and load text
function makeTxtBox(txtFile, textVar) {

[code].....

View 6 Replies

ActionScript 2.0 :: CreateTextfield And Scrollbar?

Jun 7, 2005

I have searched the forum for this, and there are a couple of similar questions, but no answers (bad sign I guess...).Is it possible to use movieclip.createTextfield and use a component scrollbar?

View 4 Replies

ActionScript 2.0 :: Using A Variable In A CreateTextField?

Aug 28, 2007

Code:
var boxtitle = ("textfield" + counter);
createTextField(boxtitle, 20, 30, 30, 500, 70);

Why doesn't this work?

View 13 Replies

ActionScript 2.0 :: CreateTextField And _alpha?

Jan 7, 2008

I'm not having luck setting alpha values with _parents that contain child textFields created dynamically. The text filed doesn't change its _alpha with the other objects in the movie clip.

View 3 Replies

ActionScript 2.0 :: Createtextfield In Flash 5?

Nov 26, 2003

whats the flash 5 version of mc.createTextField()? i need to convert my flash mx script into flash 5....

View 2 Replies

ActionScript 2.0 :: Function For CreateTextField?

Oct 17, 2004

I'm trying to write a function that I can use for creating text fields - in this case: to make the labels for a navigation menu. But the function is not working and I don't know what's the problem. Vars are: n = name and l = depth.

Code:
function makeMenuTab(n, l, x, y, w, h) {
var c = createTextField("c"+j, j++);
c._x = x;[code]......

View 1 Replies

ActionScript 2.0 :: CreateEmptyMovieClip And CreateTextField?

Jul 31, 2009

Can createEmptyMovieClip and createTextField work nested... ?I have the following:

this.createEmptyMovieClip("infoBox", 1);
infoBox.onEnterFrame = function() {
this.createTextField("infoText", 1, 0, 0, 100, 100);

[code].....

View 13 Replies

ActionScript 2.0 :: CreateTextField In A MovieClip?

Jul 18, 2002

I want to be able to create a text field on a movie clip that is already established. I can create a text field on the main flash window, but I am unable to create a text field on a movieclip on the flash window.My MovieClip is called Background with an instance name of myBackground. I try the following line among others I have tried:

myBackground.createTextField("mytext",1,0,0,100,50 );
mytext.text = "hello";

Am I referencing the movie clip correctly?I have checked the Complete Reference for Macromedia Flash MX, but could not find anything in there. It seems like that book only skims the surface.

View 3 Replies

ActionScript 2.0 :: CreateTextField With Dynamic Width?

Jan 6, 2009

I'm trying to do generate a textfield that can automatically figure out how wide and high it's going to be...That way I can scale it's parent movieclip to be 250px wide max..The textfield also shouldn't wrap.

View 3 Replies

ActionScript 2.0 :: CreateTextField And Format Textfeild

Aug 11, 2009

I can't seem to get this to work. I want my text field to be in arial. The format function is not working? Can anyone tell me where I went wrong?

[Code]....

View 3 Replies

ActionScript 2.0 :: Function For CreateTextField Not Working?

Oct 17, 2004

I'm trying to write a function that I can use for creating text fields - in this case: to make the labels for a navigation menu. But the function is not working and I don't know what's the problem. Vars are: n = name and l = depth.

[Code]....

View 1 Replies

ActionScript 2.0 :: Make Textbox Using CreateTextField?

Jan 19, 2006

If I create a textbox using createTextField, is there a way to make it an input field, instead of dynamic? Also, how can I put a border around it, like you can when you create them manually.

Is there a way of doing a division with a remainder instead of a decimal? The best I could think of was splitting the whole number and the decimal and then multiplying the decimal by whatever it was originally divided by. If that is the best way, how would I find the whole number, if I round it, it might go up instead of down, which I don't want.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved