ActionScript 2.0 :: CreateTextField And Format Textfeild
Aug 11, 2009I 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]....
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]....
I have issue with TextFormat; when I set TextFormat for TextFeild .. dose not appear !! look at my class:) at the end line ...
View 6 RepliesI do not know if this is possible but I want to use input field to program things on the stage.
I know if I do this
onEnterFrame = function() {
mars.text = onEnterFrame = function (){ my_mc._x +=5 }
}
it works...I was wonder if their was away to do that using input.
again I have this textfield being generated in a loop, so there are many textfields created.I've added a format to the textfield, but on a click I want to change the colour of a specific textfield. I tried adding a new format to the object, but it won't work.
View 1 RepliesIt used to be simple to access an object you put on the stage like a mc or dynamic text field by simply using _root.instanceName ect. Now I see references to making references to the Stage and such like:
private var stage:Stage;
stage = stageRef;
and I am still confused.
What I have going on is, I have placed a movieclip on the stage in Flash and gave it an instance name of Cell_mc.I have a cusom class that extends MovieClip with the following imports
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.EventDispatcher;
[code]....
This Class is tied to a set of MovieClips in my Library.
I have a listener: this.addEventListener(MouseEvent.MOUSE_DOWN,pickUp);
And a function:
private function pickUp(event:MouseEvent):void
{
this.startDrag();
[code]....
I get the following error whenever I try to access an object I placed on the stage from anywhere other than the document class:
1120: Access of undefined property Cell_mc.
How do I access the cell_mc that is already on the stage from this non-document class?
Specifically Im trying to make good use of some error messages by populating them to a TextField.
What I've done is to collect all the error messages in an array. I've been working on this for the better part of a day but I can't seem to get it to post as I'd like it. Im seeing the results but each result is in its own TextField. I really want them in one TextField that expands as they get added, each line being separated by a return ''.
I feel like Im close. here is what I've got:
Code:
var errorHolder:Sprite;
var errorArray:Array = ["Errors: "];
function extSoundError(e:IOErrorEvent):void {
[Code].....
how to publish live video feed from webcam in h.264 format non VP6 format with FMS 3.5.2 without using Flash Media Live Encoder, and how to set all parametersto have a good quality and smooth video without interruption, i have a server with 50Mbit bandwidth output enough for a publisher and 10 clients meunderstand this thing's been months since I try but the quality ugly
View 1 RepliesI want to make a textinput where a person can type in a price. I used "restrict" to only allow numbers and decimal. But the person can type in several decimals and create numbers like 11.1.1.1 or 11...11 or 1.11111
i want to restrict the entry to only one use of a decimal and only two numbers after the decimal.
any other way to format a textinput to a currency format?
I want to format a number in indian format.
for example,
x= 123456 should be formatted as 1,23,456.
How can i do it in flex?
Is there any library in Action Script that be able to convert any video format to .FLV?
I've been looking for it with no success. I thought that as3 had functions for that purposes but not found.
I want to give the possibility that in my site, users can upload any video, so I need to convert it to a standard and compress it to a fixed resolution.
Code:
for (var i:Number=0; i <= 7; i++){
// create 7 text fields
[code]....
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?
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].....
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]...
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);
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].....
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 RepliesCode:
var boxtitle = ("textfield" + counter);
createTextField(boxtitle, 20, 30, 30, 500, 70);
Why doesn't this work?
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 Replieswhats the flash 5 version of mc.createTextField()? i need to convert my flash mx script into flash 5....
View 2 RepliesI'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]......
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].....
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.
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 RepliesI'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]....
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?
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.
I have a movieclip that I'm trying to attach two textfields to. Here's my current code:
Code:
_root.createEmptyMovieClip("showGrowthOver1",_root.getNextHighestDepth());
showGrowthOver1._x = 10;
[code]........
I created a textfield dinamicaly with MovieClip.createTextField, but my text is to long, so I need a scrollbar. How can create and attach the scrollbar to the textfield ? Any idea is welcome, tutorial is super
View 6 RepliesWhat's wrong with this?
[AS]
loadStatus_mc.progressBar_mc._xscale = 1;
setProperty ("loadStatus_mc", _x, 210);
[code]....