Setting Vertical Space In TextFields With Css
I know how to do this by setting the leading format propert but is there a way to do it with css?
Thanks, John
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 03-20-2006, 03:18 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Dynamic Textfields - Space Evenly?
I have a loop where I create texfields based upon an xml file. SOme of the textfield have one line, some have two. They are autosized.
The problem is that the one line textfields are spacing the same amount as the two lined ones, creating more space in-between those( hence, not spaced evenly);
so it looks like this:
Textfield 1 Line
TextField
2 LInes
TextField
2 LInes
this is the code I am using right now:
Code:
clientButton._y = (clientButton._height + 10) * c;
The 10 is the padding. Anyone know how I could space them evenly?
Setting The Tab Order On Textfields Having Problems
PHP Code:
pages.getNextHighestDepth(){
this.createTextField("name_txt", this.getNextHighestDepth(), 10, 10, 100, 22);
one_txt.border = true;
one_txt.type = "input";
this.createTextField("email_txt", this.getNextHighestDepth(), 10, 40, 100, 22);
two_txt.border = true;
two_txt.type = "input";
this.createTextField("phone_txt", this.getNextHighestDepth(), 10, 70, 100, 22);
three_txt.border = true;
three_txt.type = "input";
this.createTextField("request_txt", this.getNextHighestDepth(), 10, 100, 100, 22);
four_txt.border = true;
four_txt.type = "input";
one_txt.tabIndex = 2;
two_txt.tabIndex = 3;
three_txt.tabIndex = 4;
four_txt.tabIndex = 1;
im trying to set the tab order for a group of text areas and it doesnt seem to be working with my coding above. the "pages" is the name of the movie clip where the textfields reside. im sure ive done it incorrectly can anyone smooth this out for me?
[CS3] Problem Setting Css Style To Multipul Textfields
Hi guys i got a bit of a problem setting css style to sever textfields.
Only just starting messing with css style sheets in flash so please forgive me if the answer is obvious.
i have _global.csStyle; set in the first frame of the movie with the code below on the second frame.
code:
nwsData_xml = new XML();
var nwsCount:Number;
var XMLRoot:XML;
nwsData_xml.ignoreWhite = true;
nwsData_xml.load("news.xml");
nwsData_xml.onLoad = function(success) {
if (success) {
XMLRoot = nwsData_xml.firstChild;
nwsCount = Number(XMLRoot.childNodes.length);
for (var i:Number = 0; i<nwsCount; i++) {
var mc = eval("mc"+i);
var news = XMLRoot.childNodes[i].childNodes[0].firstChild.nodeValue+XMLRoot.childNodes[i].childNodes[1].firstChild.nodeValue+XMLRoot.childNodes[i].childNodes[2].firstChild.nodeValue;
mc.txNews.styleSheet = _global.csStyle;
mc.txNews.htmlText = news;
}
} else {
trace("Load XML failed");
}
};
Help, Setting The Vertical Position Of The Movie Screen
Thanks in advance for any help you provide.
Here is the dilema, I have a list of approx 80 names down the left hand side of the screen. I have embedded the details for each individual parallel to the person's name. Problem is as you move down the screen vertically, I would like to reset the position of the screen so the details of the person are at the top of the window, not 1/2 or 3/4 of the way down.
Anyone have any suggestions.
cheers
? How To Translate 3D Space To 2D Space (sort Of) ?
Hi everybody,
I have a question about coordinate systems. I have a 3D space set up (papervision3d), with an array of 20 objects(planes) sitting on the origin (0, 0, 0). What I'd like to do is evenly distribute those 20 objects across the x and y axis so that they appear to be on a 2D plane facing the viewer.
I imagine that some sort of translation needs to be made between the 2D "stage" and the 3D "scene" (dividing the stage width and height). My first idea was to create 4 Arrays of 5 objects each and position those arrays evenly along the y-axis. Next, I was wondering how matrix objects work and if they would have any advantage over arrays here.
Any ideas?? Does this seem like the right direction?
Thanks for your help!
Brian
Quality Setting - Changing The Default Setting?
Whenever people go to my site www.findraf.com I find that the quality is set to Medium by default and most people don't know computers enough to realize how easy it is to change it. Any idea's how to change this?
Dynamically Setting Labels Or Dynamically Setting Frames To Print
1. Does anyone know if there is a way to dynamically set a frame label. The reason for this is that I want a particular frame to Print with other frames (requiring a frame label of #p) if you answer a question a certian way and not to print with the other frames (needing a different label or no label at all) if the question is answered differently.
2. Option #2 would be to be able to dynamically set which pages print when you call the "PRINT" command (probulary through an expression). Any ideas would be appreciated.
thanks
Can't Add To My Textfields In The Right Way (MX)
I'm making a little "payment plan calculator". It should add a number to a textfield-variable (CarPrice) and put the result into another textfield (Result).
But when I write like this,:
on (release) {
CarPrice = 1100
Result = CarPrice + 475;
}
Then the Result-textfield will only look like this: 1100475 !
I want it to calculate it to: 1575
Note that this works fine for me:
on (release) {
CarPrice = 1100
Result = CarPrice * 2;
}
I can't see what's wrong!
Thanks in advance!
Help With Textfields, Pls...
Hi there!
I have set a textfield area on the scene, named it, and I'm filling it with text from a file. I would like to know, how can I replace specific words in that textfield, with certain rectangular movieclips, that have the same dimensions in pixels, like the words replaced. For now, it doesn't matter what those MC do, let's say they are a button.
How cand I find the precise coordonates of a word?!?
Any ideas? I'm using Flash MX, and I don't have much actionscripting experience...
Thank You!
Textfields On The Fly
afternoon
here is my problem
i am creating textfields on the fly, moving them about and changing the formatting. this works fine when i test the movie it is all being done in. unfortunately, the movie they are held in "interface.swf" is loaded into _level1 of another movie.
When i come to test it from this base movie, the text fields have noe content. i can hover over them and get the text select mouse pointer, but not see what's there. the variables are being loaded okay, according to the debugger...
any ideas?
Textfields
Is it possible to get the pixel-position of a character within a textfield?
Textfields
I'm having a problem with my textfields. I'm using two textfields "A" and "B" to create an array. The user inputs a number into "A" and another number into "B" and then hits a button which then generates an array between the two numbers entered. It works fine in most cases. BUT, if the number in "A" is for example "2" and the number in "B" is "10" then there is no results. It seems that the number "10" is being interpreted as a "1" and so on.... Any suggestions?? Thanks.
CSS And Textfields
I would like to apply a stylesheets to a textfield and have two columns in the textfield. In the left colum there are supposed to be pictures and in the right column text. But I can not figure out how to do it. Here is what I have.
ActionScript Code:
stop();
//----------------------- <MCL> ------------------------ //
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
// --------------------- </MCL> ------------------------- //
var myLV:LoadVars = new LoadVars();
myLV.load("txt/2006-03-20.txt");
myLV.onLoad = function(success:Boolean) {
if (success) {
tPress.htmlText = myLV.info;
} else {
tPress.text = "Fehler beim Laden des Dokumentes";
}
};
var styles:TextField.StyleSheet = new TextField.StyleSheet();
styles.onLoad = function(success:Boolean):Void {
if (success) {
// display style names.
tPress.styleSheet = styles;
} else {
trace("Error loading CSS file.");
}
};
styles.load("css/stylesheet1.css");
this.btNext.onRelease = function() {
this._parent.gotoAndStop("2006-03-08");
};
stylesheet1.css:
Code:
.mainText {
color: #000000;
font-size: 10px;
}
.float {
float: left;
}
And here is the loaded text:
Code:
info=<b>headline blah blah</b><br><br>
<a href="img/2006-03-20/pict3118.jpg" target="_blank"><img src="img/2006-03-20/pict3118_150x160.jpg" width="150" height="160" class="float" alt="blah" /></a><p class="mainText">sadfsadfasdfl lskdjf lksj dflksduj flskdjf lskdjf lsdfkjsld kfjsldfj slakdfj sldfkj sldfkjsd flkjsfdkl sadflkjs fdlkjd flksjdf lksjdflskajdflksjadf lskajfdlsakjdf lskjdf lsadjf lasdjfk sladfjk </p>
<a href="img/2006-03-20/pict3130.jpg" target="_blank"><img src="img/2006-03-20/pict3130_150x160.jpg" width="150" height="160" style="float:right;" alt="sdlkfhj sakldfjh laskdjf lsadkfj sadlkfj " /></a><p>jlds föksajdflkö sjdflksödj fklasjdf lasjkdf sadlkfj saldkfj sladfjks ldfjsldkfjasldkjf lasdkjflskdjf lsakjd flskajd flaskjdflsakjd flskadjflskajdflska dfls akdjflsk adflksjad flkj asdflkjasdflköj sadflökjsad flkjasdfljksad fhsladfuls adkfklsdjf lskhd flshdlfsdhf sadhfs ladfhsad fhksadf sdfsa dhfshadf sadfhk sadhf </p><a href="img/2006-03-20/pict3122.jpg" target="_blank"><img src="img/2006-03-20/pict3122_150x180.jpg" width="150" height="180" style="float:left;" alt=" sildfu soidfuosdifu sodifuosadiuf osiadfuoiasdf" /></a><p>sadf sdfjklsdf lskajd flkasjdf lkasjdflkjas dkfjlaskdjfl kasdjflkasjdfjkasldlfjklasjdfksajdkfl lsadkhfjlsakdfhsladfjkshdfksadföjsadf</p>
Unfortunately when the text extends the image vertically it wrapps aournd and the text continues at the left hand side of the text field. It pisses me off. I spent so much time trying to work it out.
TextFields
I am having a really wierd problem. I am in a class that has inherited from another class, that has inherited from a MovieClip object. So I want to create a new text box. So I use the following code:
Code:
public function onEnterFrame()
{
this.createTextField("Xtxt", this.getNextHighestDepth(), 0, 0, 50, 50);
Xtxt.text = this._x;
Xtxt.multiline = true;
Xtxt.border = true;
}
this gives me the following errors:
**Error** /Volumes/Sulabh/Sites/isegs/trunk/global_flash/flashlines2/XRuler_obj.as: Line 16: There is no property with the name 'Xtxt'.
Xtxt.multiline = true;
**Error** /Volumes/Sulabh/Sites/isegs/trunk/global_flash/flashlines2/XRuler_obj.as: Line 17: There is no property with the name 'Xtxt'.
Xtxt.border = true;
Total ActionScript Errors: 2 Reported Errors: 2
XRuler Constructor is called
YRuler Constructor is called
I know this code should work. and I can't figure out why it isn't? Any suggestions would be good, I have no idea.
TextFields
Is there a way to *select all* the contents of a textField when it receives focus? I can't find a thing in the documentation...
Textfields
how do i change a input textfield into a dynamic textfield with actionscript. And vice versa
How Many TextFields?
Does anyone have an idea on this? I'm looking at creating a vertically scrolling list, with sprites containing several text fields; and am wondering if anyone know's the approximate limit of the player?
Edited: 08/19/2008 at 05:45:32 PM by cayennecode
Textfields
I am tring to create textfields on the fly that wrap the text they contain. I am using the following code but it is not working well. The text within the textfield is low and some of it is cut off.(Easy to see if I put a border around the textfield.) What's my bext solution to create a textfield which perfectly fits the text it contains.
var caption="someText";
thumbTitleTextFormat=new TextFormat();
thumbTitleTextFormat.font="exportedArialFont";
thumbTitleTextFormat.align="center";
thumbTitleTextFormat.size=20;
thumbTitleTextFormat.color=0xFFFFFF;
createTextField("thumbTitle_txt",13,0,0,0,0);
thumbTitle_txt.setNewTextFormat(thumbTitleTextForm at);
thumbTitle_txt.autosize="center";
thumbTitle_txt.embedFonts=true;
thumbTitle_txt._width=thumbTitleTextFormat.getText Extent(caption).width;
thumbTitle_txt._height=thumbTitleTextFormat.getTex tExtent(caption).height;
thumbTitle_txt.text=caption;
For...in For TextFields
Hey all - was working with the MC prototype function found here.
I was trying to get it to work for textfields as well.
E.g., I have a MC on my stage in which I dynamically create MCs from an XML file - I want to be able to have that function list those as well.
Thanks
TextFields
Hey guys,
I want to convert a textfield, containing a few words, to a movieclip.
Can this be done in actionscript 3, if so, how?
I need to convert it so i can tween the text alpha and so on.
TextFields
Despite the fact that a trace shows that I have created a textfield, no text is being rendered to the screen. How can I correct this?
var clip_mc:MovieClip = createEmptyMovieClip("name0_mc",4);
clip_mc._x = 20;
clip_mc._y = 20;
clip_mc._width = 100;
clip_mc._height = 100;
clip_mc.createTextField("name_txt",1,0,0,30,15);
clip_mc.name_txt.text="My Text";
trace(clip_mc.name_txt.text);
trace(clip_mc._x);
trace(clip_mc._y);
trace(clip_mc.name_txt._width);
trace(clip_mc.name_txt._height);
TextFields - Is It Possible To...
have 4 text fields on the stage. salary_txt, percent_txt, dollar_txt, total_txt (1 on top, 2 below that and 1 below that).
- onload, salary is set to 50000 (and therefore total_txt displays 50000).
- I go ahead and add 3% to (percent_txt).
- dollar_txt should now display $1500 & total_txt should now display $51500
Then if I decide I want to increase the total, but this time using a dollar value, I want to be able to select the value in the field ($1500) and change that to lets say...... $4000...
- percent_txt should now display 0.08 (or 8.0 if you convert)
- total_txt should now display $54000.
Is that possible? This is what I have so far:
------------------------------------
salary_txt.text = 50000;
percent_txt.onChanged = dollar_txt.onChanged = function(){
var dollarValue = Number(dollar_txt.text)
var percentValue = Number(percent_txt.text)
total_txt.text = dollarValue*percentValue;
}
total_txt.onChanged = function(){
var dollarValue = Number(dollar_txt.text)
var totalValue = Number(total_txt.text)
//round to 2 decimal places
percent_txt.text = int((totalValue/dollarValue)*100) / 100
}
Textfields
can someone please tell me how to change the backcolor of textfields and buttons in an html form?
See I Got This SPACE.
I got this space... in my suburbia apartment... this place I have of mine. I live with my girlfriend. The space (the whole thing), was ours.. initially. We chose it and moved in to it. WE moved our stuff into this space... put things places... and made choices about where they should go. I chose, she chose... we took turns. This whole space slowly got devided into smaller spaces... or zones. A zone for this and a zone for that. Soon things came.. things that were her stuff... things I bought or put up with, but either way they were hers. These things took up space, and seemlingly had no zone. So soon, these spaces we had devided into zones, became one space again.. hers. She wouldn't agree, but these things that were hers were located in several of the original zones, within the larger space. So now, there are two spaces. The rest of our suburbia apartment and here... were I am talking to you now.. my space.. with my stuff. Odd, this space doesn't exude gravity.. yet these things that I put in the original space.. our now in my space. More and more I find that my things, that were located outside of this space, are satellites in that other space.. the space outside the room. And by the end of a day or week, these satellites seem to find there way back into this space. My things aren't wanted in that space anymore, they are sent here, like so many hunks of floating debri. Mentally, my concern for the whole space has been devided. I now only want for, or am concerned with the state of this space. I move through the other to get to things like coffee, and food.. to travel to the bed space, but I live in this space. I am cleaning it now.. wrought with choices about where to put stuff.. about the zones within it. I move things to new locations in my space. I play my music and watch movies as I change this space.. as I spin round the room piling boxes.. catagorizing things and placing them in new ways to shape my space. She comes in sometimes... but only breifly. To say hi or ask me a question, but she leaves again shortly afterwards. There is only one chair in my space, that chair is for me, it is the tower of observation within my space. In fact everything in this space is designed so this position in space, can access all other spaces easily. In the end, she comes from her space, to see me. She floats like a satellite into my space, on a mission.. breaking briefly from her own atmosphere. In the end she returns, to her space, she spins out of my room. So it's defined. It is here that I am, speaking to you, thinking about being here, being here before, when I replied to a post, when I helped someone or was helped. It was here that I created things I loved, from here that they were shared. It is from here that I will speak to you, and to many of my friends. So to all those out there.. in your spaces, sharing with everyone else in theirs, a toast to space.
Thanks Flashkit!
Paul, Actionscripter
Need More Space :(
Is there any way to get more workspace than 2880x2880 pixels? It's becoming very annoying as I have several 640x480 pictures that I want to display on one page.
Thanks,
Furry
Less Space On An SWF
what makes my swf file smaller?
I created a button and i placed it in my library.
If i drag and drop my button onto my stage, what method will be less intensive on my SWF file size:
1. by right clicking on my button while on the stage i choose copy, and then i paste on the stage again, giving me two buttons.
or
2. drag and drop button from my library onto my stage.
ur input is greatly appriciated.
Hector
Cant Get Rid Of Space Around
http://www.culturecreativellc.com/phenom/phenom4.html
see the space to the right and at the bottom? I want it to be just like the space at the top and the left. heres the HTML code I've used:
<HTML>
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<title>BIG PHENOM</title>
</head>
<body bgcolor="#000000" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--background="media/pd_bg.gif-->
<table width="850" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="1"><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="850" height="100%">
<param name=movie value="bigphenom.swf">
<param name=quality value=high>
<param name="menu" value="false">
<embed src="bigphenom.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="100%" height="550" menu="false">
</embed>
</object></td>
</tr>
</body>
</html>
Thanx..
[F8] Space Bar
I'm trying to make it so on the title screen when you press space bar it goes to the 2nd frame of my movie.
i have this code on the first FRAME:
stop();
if (Key.isDown(Key.SPACE)) {
_root.gotoAndStop(2);
}
could someone please help me?
thanks
Space Above FLV?
Why is it that I always have a space above my flash movie? Invariably, I import my video, publish the swf/flv/html and the page always shows the flv minus enough room for the video skin. So I increase the dimensions for the video skin, but I cannot get rid of the head-room above the vid.
Could someone tell me what I am doing wrong?
Setting it up in Dreamweaver:
Head Space above flash file
That empty space above the flash file is always there! ?
Thanks in advance,
roml
Space War Help
Hi guys I have this code, which is a very cool space shooting game, but I cant incorporate sound to the game so I was wondering if someone could help me, here is the code
var nrEnemies = 3;
for (i = 1; i < nrEnemies; i++)
{
_root.Enemy0.duplicateMovieClip("Enemy" + i, _root.getNextHighestDepth());
}
var i = 0;
var score = 0;
var lives = 3;
this.onEnterFrame = function()
{
moveStars();
if (Key.isDown(Key.RIGHT))
{
if (Ship.hitTest(550, Ship._y, true))
{
Ship._x -= 7;
}
Ship._x += 7;
}
else if (Key.isDown(Key.LEFT))
{
if (Ship.hitTest(0, Ship._y, true))
{
Ship._x += 7;
}
Ship._x -= 7;
}
else if (Key.isDown(Key.UP))
{
if (Ship.hitTest(Ship._x - 40, 0, true))
{
Ship._y += 7;
}
Ship._y -= 7;
}
else if (Key.isDown(Key.DOWN))
{
if (Ship.hitTest(Ship._x - 40, 300, true))
{
Ship._y -= 7;
}
Ship._y += 7;
}
if (Key.isDown(Key.SPACE))
{
i++;
_root.attachMovie("Bullet", "Bullet" + i, _root.getNextHighestDepth());
_root["Bullet" + i]._x = Ship._x + 3;
_root["Bullet" + i]._y = Ship._y;
}
}
Web Space?
anyone have a fav web space provider?
thanks
g
Can't Get Rid Of The Space
I have a web page with a graphic next to the .swf file. It is important that there be no space as it is part (slice) of the images being displayed in the flash file. How do I get rid of this space?
As of this writting, my hosting company was experiencing problems with thei FTP. When they fix it I will upload the file. It will be at Flash Page
Thanks
Space Out Mc's
i have for vertically mc which i tween to different locations on my stage. is there a way where i can tell flash to always space out my mc's by 10 pixels vertically?
Duplicate MC/Different TextFields
Hello all,
I have a movieclip(a1) that has a text box in it (sectionname). I'm trying to duplicate the movieclip (a1, a2, a3, etc...) and have a different title in the different textboxes (Our Company, Services, etc...). Duplicating the movie isn't a problem, it's getting the textboxes to have different names. Here's what I've got...
Code:
onClipEvent (load) {
// number of movieclips
num = 4;
// loop to duplicate movieclips
for (i=2; i<=num; i++) {
this.a1.duplicateMovieClip("a"+i, i);
//loop to name each movieclip in it's textfeild
if (i=2) {
this["a"+i].sectionname = "Solutions";
} else if (i=3) {
this["a"+i].sectionname = "Services";
} else if (i=4) {
this["a"+i].sectionname = "Contact Us";
}
a = this["a"+i];
a._x = a1._x+(a1._width*(i-1));
}
}
As it is now, the movie freezes when I try to test it. Anyone seeing what I'm doing wrong?
Thanks for your time.
MX Dynamic TextFields
I'm using an external text file variable to load text into a dynamic textfield in flash MX. I have a new scrollbar UI Component working with the text field. But there seems no way to get the HTML tags in the external text file working. Any ideas! I want to keep the text content for my textfields in separate files. Do I have to stop using the "oh-so-useful " scrollbar component?"
Help With Textfields Needed Bad
hi !
i have a big problem that i don't really understand !
i'm trying to place links on text in a textfield, i've already tried several ways but it just doesn't seem to work. i've ended up by doing somethinf like this :
Code:
set(_root.type1.type1MC add ":titrenewsA", titre_news);
set(_root.type1.type1MC add ":url", link);
creating a button instance in the type1MC movie clipand with that buton i add the folowing action :
Code:
on (release){
getURL(url);
}
normally it should launch the url saved but nothing happens my button isn't even recognized (no cursor changed on mouse over)
if anybody understands could they help please thanks very much !
Three Input Textfields
I'm working on a stand alone program where the user needs to input information into 3 different input text fields correctly inorder to advance. Upon entering the frame with the three textfields the focus needs to be set to the first one (lastname) where the user will type in "Jones"; then they need to TAB to the next field (firstname) and type "Kristie"; and then TAB to the last (Middle) and type "A". While "Tabbing" to the next field i need to have the program check the text box they are leaving to make sure the correct information is in it, if not it needs to clear the text field so the user can correctly enter the info.
So far i have:
On the frame:
lastname.tabindex = 1;
firstname.tabindex = 2;
middle.tabindex = 3;
Selection.setFocus(lastname);
However I can't tab to the next 2 fields.
Can anyone give me some guidance on how to make all this work?
Creating Textfields On The Fly: MX
Ola,
OK - I have a text file which contains several variables:
var 1 = Number of submenu items
var 2 = submenu1 [name]
var 3 = submenu2
var 4 = submenu3...etc etc
In this example, var 1 would be a numerical value of 3, reflecting the fact there's 3 submenus.
NOW .... Here's the bit I can't do.
I want to create textfields to hold the variables 2 - x, but would like var 1 to dictate how many textfields need to be created (on the fly).
Anybody know how this can be achieved?
Thanx
HTML In Textfields?
When I assign HTML code to a dynamic textfield, why doesn't it format anything that sets align="center"? I'm doing this in MX. Can handle HTML formatting such as align (left, right, center)? Do <tables> work as well?
I know when I initially created the dynamic textfield, and set it to handle HTML that it was by default set to left justified. Does this mean everything that comes in will be left justified? If not, how can I make the textfield respond to my HTML formatting properties?
Thanks....
Wmode & Textfields
Hi guys!
here's my prob. I have put a flash movie in a html page. I've set the wmode to transparent. In this movie there's a form with some input fields. The cursor in those fields results to be hidden... I mean... if I click in those fields the cursor doesn't show up! The only way to make it work properly is to set the wmode paramenter to normal. Now... I'd need to have this movie with transparent background. Now I wonder whether I can have the wmode set to transparent and the cursor working properly as well! can anyone help me? Thanks guys!
Dynamic Textfields?
I am currently making a personal website and I want it to include a news section. It's a pain to upload the flash movie every time something is changed, so I was looking for an alternitive. I know there is a way to create an external file that can be loaded into the movie, which solves my problem. However, I don't know how to do this correctly. I've done this one time, but every time I tried to use html in the file, it wouldn't load. I tried selecting and deselecting the html option in the textfield options in flash, but still no text!
---
Version:
-Flash 5
Questions:
-How do I go about making a text field that can contain loaded text ( including basic html ) from an external file.
-What specific coding will I need to include in the external file.
---
Any help will be greatly appreciated, thanks.
Sorry if I'm the 50,000 person to ask about this, oh well
Help With Links And Textfields
Okay, I have some dynamic text. And I'm trying to put a link within the dynamic text.
For instance the Dynamic Text field contains:
"If you'd like to contact me please click here or feel free to contact me at asweetguy86@yahoo.com ."
How would I go about making "click here" a link to my contact form?
I'd appreciate the help as soon as possible this is the last hurdle I must cross and I can upload my site to the net. And then I will need some opinions.
Remove Textfields
i created some textfields using
Code:
function createNTexts(gfSons) {
for (var i = 1; i<=gfSons; i++) {
_root.createTextField("myText"+i, i, 254, (i+4)*30, 100, 19);
_root["myText"+i].border = true;
_root["myText"+i].type = "input";
}
}
works fine.. now i wanna delete the same texfields in the next frame.... i tried this... but isnt working
Code:
function deleteNTexts(gfSons) {
for (var i = 1; i<=gfSons; i++) {
temp = "myText"+i;
//trace(temp);
temp.removeTextField();
}
}
WHY??
thanx
aLi
AttachMovie And Textfields
The following function should display the loaded data in the textfields of the attached movieClip. The ASP file returns the required data, but is not displayed in the textfields. Even if I try to directly set the text in the textfield, it is not displayed.
Here's the function:
//************************************************** ******************
//Functie viewOrder (ID)
//optioneel orderID meesturen
//************************************************** ******************
viewOrder = function (ID){
_root.attachMovie("viewOrder",view,0);
//viewOrder._x = 127; // Set position of viewOrder Screen
//viewOrder._y = 120;
view.campagneNaam.text = "testing 123";
order = new LoadVars();
if(ID){
order.ID = ID;
}else{
order.ID = 49;
}
order.sendAndLoad("flashvieworder.asp",order,"POST ");
order.onLoad = function (success){
//Fill textfields with collected data...
//viewOrder.campagneNaam.text = order.CampagneNaam;
view.userName.text = user.userName;
view.campagneNaam.text = "testing 123"; //order.CampagneNaam;
view.StartDatum.text = order.StartDatum;
view.EindDatum.text = order.EindDatum;
view.Totaal.text = order.Totaal;
}
}
//************************************************** ******************
Does anyone know why the text isn't displayed?
How Much Text Can Textfields Contain?
I've found out that textfields cannot contain endless amounts of text. Does anybody know the limit of text it can contain? I find nothing about this limitation in any flash-manual.
greetings
Dave Lenz
Selecting Textfields With AS
Heey,
I forgot the script to select an input-textfield so the user doesn't have to click on it with the mouse.
Greetz,
Please Help....textfields & Scrollbars
I've posted here before without a response so I'm hoping some one can help me on here now. I also posted this in the newbie section hoping someone with reply. I have two questions that I need help on so I can complete my website. First, I'm looking for a code to put in my actionscript so I can make my buttons continuely scroll up or down till I release the button. Second, I have a textfield on my site right when you go to the site that comes up with the news and all that but I have buttons also on my page and I want every time a button is clicked in opens that buttons information in the textfied sort of like using inline frames in html. I hope some one can explain this well and tell me what to do cause I'm lost otherwise and I really like my site idea and I can't finish it with out this...Please help.
Please Help....textfields & Scrollbars
I've posted here before without a response so I'm hoping some one can help me on here now. I also posted this in the actionscript section hoping someone with reply. I have two questions that I need help on so I can complete my website. First, I'm looking for a code to put in my actionscript so I can make my buttons continuely scroll up or down till I release the button. Second, I have a textfield on my site right when you go to the site that comes up with the news and all that but I have buttons also on my page and I want every time a button is clicked in opens that buttons information in the textfied sort of like using inline frames in html. I hope some one can explain this well and tell me what to do cause I'm lost otherwise and I really like my site idea and I can't finish it with out this...Please help.
|