Jsp Variables In A Flash Text Area
Hi Again,
In the webpages I work with, we have areas that are governed by variables that look like this:
<%bob text goes here%>
As the page is parsed, the variable is of course replaced by the chosen html content. If I place a variable of this sort into a flash text area that is set for html content, will this also change the content to the kind specified by the variable, or will flash get in the way of this?
steam driven explodeable hairless toupees,
Plasnid
FlashKit > Flash Help > Flash MX
Posted on: 09-17-2004, 10:42 AM
View Complete Forum Thread with Replies
Sponsored Links:
Flash 8 - Text Area Component Selecting Text
Essentially I have a single instance of a text area (populated via XML) that updates based on whichever button (1 thru 6) is pressed. The prob:
On intial load you can scroll the text and it behaves normal. I press a button, the text updates, but when I scroll again the component auto selects all of the text within.
prob#2:
In another section of my app I reuse templated slides that populate a text area component with XML text - if I select/highlight the text on slide 1, click next/forward, reuse the template slide but parse a new XML into it, it displays new content but the same area that was previously selected is selected/highlighted on the new slide.
Any thoughts - is this a bug?
Thanks
View Replies !
View Related
Flash Text Area Editor Bug
Hi
I have this text area editor in one of my flash movies and I have this problem that when applying text format changes the changes don't get saved unless I do something like type and delete a character from the screen than save. than the format changes are saved, but only after doing and than undoing that something on the text area. It is really annoying,
I was wondering if anyone has ever heard of something like this happening or knows what the problem is. maybe help me find the bug in the code
the text area is A.S 1.0 and flash player 6.
this is the code for the text area.
thanks in advance.
Code:
#initclip 4
function TextEditClass()
{
this.init();
} // End of the function
var t = TextEditClass.prototype = new MovieClip();
t.butMCs = {bold: "but1", italic: "but2", underline: "but3", align: ["but4", "but5", "but6"], leading: "but7", bullet: "but8", indent: ["but9", "but10"], url: "but11", color: "but12"};
t.init = function ()
{
this._y = Math.round(this._parent[this._targetInstanceName]._y - 2);
this.selected = new Select(this._parent[this._targetInstanceName], this);
this.selected.butMCs = this.butMCs;
this.targets = ["_blank", "_parent", "_self", "_top"];
};
t.showURLFields = function ()
{
this.urlField._visible = this.targetBox._visible = this.butOK._visible = true;
for (var j in this.selected.butMCs)
{
if (typeof(this.selected.butMCs[j]) == "object")
{
for (var k in this.selected.butMCs[j])
{
this[this.selected.butMCs[j][k]]._visible = false;
} // end of for...in
continue;
} // end if
this[this.selected.butMCs[j]]._visible = false;
} // end of for...in
this.gfx._visible = false;
this.sizes._visible = false;
};
t.hideURLFields = function ()
{
this.urlField._visible = this.targetBox._visible = this.butOK._visible = false;
for (var j in this.selected.butMCs)
{
if (typeof(this.selected.butMCs[j]) == "object")
{
for (var k in this.selected.butMCs[j])
{
this[this.selected.butMCs[j][k]]._visible = true;
} // end of for...in
continue;
} // end if
this[this.selected.butMCs[j]]._visible = true;
} // end of for...in
this.gfx._visible = true;
this.sizes._visible = true;
};
t.showURL = function (linkNo)
{
this.selected.display.selectable = false;
this.link = linkNo;
this.showURLFields();
Selection.setFocus(this.urlField);
this.urlField.text = this.selected.tempURL[linkNo];
this.targetNo = this.selected.tempTarget[linkNo];
this.targetBox.setSelectedIndex(this.selected.tempTarget[linkNo]);
};
t.getHTML = function ()
{
var htmlo = this.selected.display.htmlText;
for (var i in this.selected.tempURL)
{
var targ = this.targets[this.selected.tempTarget[i]];
var sStr = "asfunction:" + this + ".showURL," + i + "" TARGET=""";
var sStri = htmlo.indexOf(sStr);
while (sStri != -1)
{
htmlo = htmlo.slice(0, sStri) + this.selected.tempURL[i] + "" TARGET="" + targ + """ + htmlo.slice(sStri + sStr.length);
var sStri = htmlo.indexOf(sStr);
} // end while
} // end of for...in
return (htmlo);
};
t.setHTML = function (str)
{
this.selected.tempURL = [];
this.selected.tempTarget = [];
var eIndex = 0;
while (str.indexOf("<A HREF="", eIndex) != -1)
{
var bIndex = str.indexOf("<A HREF="", eIndex);
eIndex = str.indexOf(""", bIndex + 9);
var realLink = str.substring(bIndex + 9, eIndex);
var bIndexT = eIndex + 10;
eIndex = str.indexOf(""", bIndexT);
var realTarget = str.substring(bIndexT, eIndex);
this.selected.tempURL.push(realLink);
this.selected.tempTarget.push(realTarget);
var tempTag = "<A HREF="asfunction:" + this + ".showURL," + (this.selected.tempURL.length - 1) + "" TARGET="">";
str = str.substring(0, bIndex) + tempTag + str.substring(eIndex + 2);
} // end while
this._parent[this._targetInstanceName].htmlText = str;
};
Object.registerClass("FTextEdit", TextEditClass);
function Select(display, tl)
{
this.display = display;
this.tl = tl;
this.init();
} // End of the function
var sel = Select.prototype;
sel.init = function ()
{
this.display.htmlText = "";
this.display.html = true;
this.format = new TextFormat();
this.tempURL = [];
this.tempTarget = [];
Selection.addListener(this);
};
sel.onSetFocus = function (oldFocus, newFocus)
{
if (newFocus == this.display)
{
Mouse.addListener(this);
Key.addListener(this);
}
else
{
Mouse.removeListener(this);
Key.removeListener(this);
} // end else if
};
sel.onMouseUp = function ()
{
this.setSelectionValues();
this.showTags();
};
sel.onKeyUp = function ()
{
this.caret = Selection.getCaretIndex();
this.showTags();
};
sel.setSelectionValues = function ()
{
this.begin = Selection.getBeginIndex();
this.end = Selection.getEndIndex();
this.caret = Selection.getCaretIndex();
};
sel.selectionExists = function ()
{
if (this.begin == this.end)
{
return (false);
}
else
{
return (true);
} // end else if
};
sel.getFormat = function ()
{
if (this.selectionExists())
{
var temp = this.display.getTextFormat(this.begin, this.end);
}
else
{
var temp = this.display.getNewTextFormat(this.caret);
} // end else if
return (temp);
};
sel.showTags = function ()
{
var temp = this.getFormat();
for (var p in temp)
{
if (typeof(this.butMCs[p]) == "object")
{
for (var j in this.butMCs[p])
{
this.tl[this.butMCs[p][j]].onChange(temp[p]);
} // end of for...in
continue;
} // end if
this.tl[this.butMCs[p]].onChange(temp[p]);
} // end of for...in
};
sel.returnFocus = function ()
{
Selection.setFocus(this.display);
if (this.selectionExists())
{
Selection.setSelection(this.begin, this.end);
}
else
{
Selection.setSelection(this.caret, this.caret);
} // end else if
};
sel.setFormat = function (newFormat)
{
if (this.selectionExists())
{
this.format = this.display.getTextFormat(this.begin, this.end);
} // end if
for (var j in newFormat)
{
this.format[j] = newFormat[j];
} // end of for...in
this.display.setTextFormat(this.begin, this.end, this.format);
this.display.setNewTextFormat(this.format);
if (Selection.getFocus() != targetPath(this.display))
{
this.returnFocus();
} // end if
this.showTags();
};
sel.insertChars = function (chcode)
{
Selection.setFocus(this.display);
Selection.setSelection(this.caret, this.caret);
this.display.replaceSel(chcode);
++this.caret;
};
sel.setURL = function (obj, arrP)
{
if (typeof(arrP) == "undefined")
{
this.tempURL.push(obj.url);
this.tempTarget.push(obj.target);
this.setFormat({color: this.tl.urlColor, url: "asfunction:" + this.tl + ".showURL," + (this.tempURL.length - 1)});
}
else
{
this.tempURL[arrP] = obj.url;
this.tempTarget[arrP] = obj.target;
} // end else if
};
sel.killURL = function (arrP)
{
if (typeof(arrP) != "undefined" && this.tempURL[arrP] != "")
{
var htmlo = this.display.htmlText;
var sStr = "COLOR="#0000FF"><A HREF="asfunction:" + this.tl + ".showURL," + arrP + "" TARGET="">";
var sStri = htmlo.indexOf(sStr);
htmlo = htmlo.slice(0, sStri) + "COLOR="#000000">" + htmlo.slice(sStri + sStr.length);
var sStr = "<A HREF="asfunction:" + this.tl + ".showURL," + arrP + "" TARGET="">";
while (htmlo.indexOf(sStr) != -1)
{
var sStri = htmlo.indexOf(sStr);
htmlo = htmlo.slice(0, sStri) + htmlo.slice(sStri + sStr.length);
} // end while
this.display.htmlText = htmlo;
this.tempURL[arrP] = "";
} // end if
};
#endinitclip
this._parent[this._targetInstanceName].selected = selected;
this._parent[this._targetInstanceName].tempURL = selected.tempURL;
this._parent[this._targetInstanceName].getHTML = function ()
{
return (getHTML());
};
this._parent[this._targetInstanceName].setHTML = function (str)
{
setHTML(str);
};
this._parent[this._targetInstanceName].setURL = function (obj, arrP)
{
selected.setURL(obj, arrP);
};
this._parent[this._targetInstanceName].killURL = function (arrP)
{
selected.killURL(arrP);
};
this.hideURLFields();
this.slider._visible = false;
var boole = ["bold", "italic", "underline", "bullet"];
for (var i in boole)
{
this[butMCs[boole[i]]].chn = boole[i];
this[butMCs[boole[i]]].onRelease = function ()
{
var temp = {};
this.value = !this.value;
temp[this.chn] = this.value;
selected.setFormat(temp);
};
this[butMCs[boole[i]]].onChange = function (q)
{
this.value = q;
if (!q)
{
this.inside.gotoAndStop(1);
}
else
{
this.inside.gotoAndStop(2);
} // end else if
};
} // end of for...in
var aligns = ["left", "center", "right"];
for (var k in this.butMCs.align)
{
this[butMCs.align[k]].value = aligns[k];
this[butMCs.align[k]].onRelease = function ()
{
selected.setFormat({align: this.value});
};
this[butMCs.align[k]].onChange = function (q)
{
if (q != this.value)
{
this.inside.gotoAndStop(1);
}
else
{
this.inside.gotoAndStop(2);
} // end else if
};
} // end of for...in
for (var i in this.butMCs.indent)
{
this[butMCs.indent[i]].i = Number(i);
this[butMCs.indent[i]].onRelease = function ()
{
selected.setFormat({indent: selected.format.indent + this.i * 2 - 1});
};
} // end of for...in
this[butMCs.leading].onPress = function ()
{
slider._visible = true;
slider.onTrackPressed();
};
slider.addChangeListener(this);
onSliderChanged = function (obj)
{
selected.setFormat({leading: obj.source.getValue()});
};
this[butMCs.url].onRelease = function ()
{
if (_currentframe == 1 && selected.selectionExists())
{
showURLFields();
Selection.setFocus(urlField);
selected.display.selectable = false;
} // end if
};
butOK.onRelease = function ()
{
if (urlField.text != "")
{
selected.setFormat({color: this.tl.urlColor, url: urlField.text, target: targetBox.getSelectedIndex()});
}
else
{
selected.killURL(this._parent.link);
} // end else if
hideURLFields();
selected.display.selectable = true;
delete this._parent.link;
};
this[butMCs.color].onColor = function ()
{
selected.setFormat({color: this.getValue()});
};
this[butMCs.color].onChange = function (q)
{
this.setValue(q);
};
var sizArr = [];
var i = 8;
while (i <= 72)
{
sizArr.push(i);
++i;
} // end while
sizes.setDataProvider(sizArr);
sizes.setChangeHandler("onSizeChange");
onSizeChange = function (comp)
{
selected.setFormat({size: comp.getValue()});
};
View Replies !
View Related
Transparent Flash Text Hit Area
I'm building a flash menu with transparency, and I convert the text areas to buttons, and when I try to define the Hit area for the link, the only text area that activates the link is the actual text. No spaces between the letters. I want to define a box around the text, but I still want the box to be transparent so the background shows through.
Please help.
View Replies !
View Related
A Flash Area To Display Text In A Page
I need a flash area which will display all the text available in a sepcific page
So, if i have a page http://www.somepage.com?ID=50
and this page contains: Hi, my name is mark, iam a good boy, etc...
i want the flash area to display all the text which is on this page
is this hard to do?
what script should i put on my first frame
View Replies !
View Related
How Do I Hot Link Text To An Area In The Flash Web Site.
Here is what I mean. I have a Button called Order Form that goes to and plays in the section of the site with the online order form. I would just like to select text where the online Order Form is mentioned and also have it got to and play in the Order Form section without creating a hidden button to place behind each mention of the Order Form.
Any help will be most appreciated!
View Replies !
View Related
Parsing URLs In Flash (in A Text Area)
A simple question, probably with a complex answer! I hope someone can help.
I've written a basic chat client in Flash, and it's working well - the only problem is that URLs displayed in the textarea aren't clickable. I didn't expect them to be, but I can't figure out how to make them parse.
Could anyone please point me in the right direction?
View Replies !
View Related
Flash MX 2004 Pro Text Area Component
Hello
Does anyone know if it is possible to change the BG color, and the border color of the Text Area component. I tried and tried but I am afraid the trial will expire before I figure it out. Please help!!!
Thanks
Johnny
PS
If this question is stupid I am sorry.
View Replies !
View Related
Text Area Of Animated Flash Button Not Being Recognised
Hi there,
Hoping someone can help.
I'm creating an animated flash button using a movie clip as the "over" state, and graphic symbols for the other states. The button includes some text in all states.
When I publish the button, mostly everything is OK (the movie clip activates on rollover) but the movie clip doesn't activate when rolling over the "text" area of the button.
Does anyone know how to fix this problem - I want to make sure that the whole button area can activate the rollover movie?
Thanks for your help.
Ginny
View Replies !
View Related
Large Text Area Slowing Down Flash Movie
Okay, so I've been doing some searches on this and I've come across several ideas on what the problem is, however none of them have been helpful. I have a clip which contains a large body of text that is masked. The masking moves fine (it's animated), but when I bring in an external swf file that contains some image transitions into the movie clip, the swf plays slower than normal. I started checking my code, but noticed that it's the amount of text in the clip that's slowing down my movie. I've tried both static and dynamic text and it has the same affect. The only way I've been able to keep the swf playing at it's correct speed is to use a system font or save out the text field as a gif. The problem I have with that is that I'm using a super-pixel font and so the gif looks terrible when brought back in. Does anyone know of any other way around this? I know that Flash sometimes suffers during playback when there's a lot of text on the stage. How do you guys usually get around this or handle this issue and what tips can you give me to solve this problem? Thanks.
View Replies !
View Related
Flash Website Template: Extending Content/text Area
I purchased a flash website template which came with 5 pdf files plus the flash files. I would like to extend the length of the front page content area.
*Can I do this in photoshop or does it need to be done in flash?
*Could someone explain the process, or direct me to a tutorial that would explain this to a complete flash noob?
View Replies !
View Related
Embedding A Font For A Dynamic Text Area In Flash Mx 2004
can't seem to find the solution to this for flash mx 2004...
how do i embed a font? i've got some dynamic text fields that are displaying external html formatted text, but i want that text to show up in a certain font.
how can i embed a font for this?
it'll probably be the same size font throughout different pages, possibly some bold used here and there. what's the step by step how to on this and what actionscript do i need?
also, will such a method work for texareas or externally loaded swfs?
View Replies !
View Related
Return Variables From Php To Load In Flash Text Variables
Im having an issue using the kirupa flash login. I already have the actual login working with php and mysql but i need to change it up a little bit and i don't know enough about php to write it myself. But here's the situation.
Flash login is a basic script, I've already modified this part and it works great
What I need to know is how to modify it so when a user logs in, php captures the $_POST and returns the alternate variable fields that consist of ("co","fname","lname","cph","email") within the ID for user and pass
also i have already made a common loadMovie to load random variables i just need the php to point to the movie
View Replies !
View Related
How To Format External Text File To Show In Three Separate Columns Through Text Area?
Hullo everyone!
Could anyone suggest a piece of advice to visualize the following idea?
I should like to import an external .txt file into flash and display it by means of a text area component, which would take the better part of the screen and be skinned to fit the rest of the page design. The text ought to be formatted by way of an external .css file. Images are optional.
I can do all this allright, but what I should like to have is the text formatted to be displayed in three separate columns. The idea for this naturally comes from the Flash version of the Macromedia Edge newsletter.
I should be most thankful if anyone cared to come up with a solution.
View Replies !
View Related
Embedding Fonts Into HTML Enabled Text Area Component Results In No Text Appearing
I've tried this on both Flash's own text area component and Ghostwire's and have had exactly the same result with both.
Basically, I'm using the text area component to load in an HTML document. The component is supposed to display the Tahoma font but it isn't on all computers as Times might show up. So I went ahead and decided to embed the font. Doesn't matter if I place a dynamic text field off the stage and then select the embed fonts option or make a Font Symbol for Tahoma. If I tell the text area to embed fonts I then render out the .swf and the text disappears. Turn off HTML formatting and the text then appears but the formatting of course, is completely lost. Anyone got an idea of a real fix for this? Or at least an explanation?
View Replies !
View Related
Loading External Text File Into Text Area (flashMX)
Hi,
I am trying to load text from an external text file into a textarea in FlashMX. I am able to set the contents of the textarea by using a string ("test thingy"), but I was wondering if anybody could point me in the right direction on hoe to include text from an external file.
Used to set string:
scroller.text="test thingy";
Thanks a bunch,
Niklas Wahlberg
View Replies !
View Related
Vertical Align Text In Dynamic Text Area
Have just created my first database driven dynamic text box and it works
Just one problem...
One of the dynamic text areas is multi-line and try as I might I can't seem to find any way to set the vertical alignment of the text to 'middle' vertically...
i.e. if the text is only a couple of words, it aligns to the top of the textarea and I'd like it to align to the middle of the text area vertically.
Any ideas???
Thanks
dominicall
View Replies !
View Related
[mx2004] Text Area Component Vs. Dynamic Text Box
Hi I have made this which works exactly how I want it to using a text area component
http://www.goslinganimation.com/wall/test2_b.swf
Now I want the same thing but using a dynamic text box instead.
This is the code I have used
Code:
var fontType = "font1";
messageBox.text = "This is a message test. Blah blah blah";
// define the font styles
var styleObj = new mx.styles.CSSStyleDeclaration();
styleObj.styleName = "styleOne";
_global.styles.styleOne = styleObj;
styleObj.setStyle("fontFamily", "space cowboy.");
styleObj.setStyle("fontSize", 20);
styleObj.setStyle("fontWeight", "bold");
styleObj.setStyle("themeColor", "haloOrange");
var styleObj = new mx.styles.CSSStyleDeclaration();
styleObj.styleName = "styleTwo";
_global.styles.styleTwo = styleObj;
styleObj.setStyle("fontFamily", "Jennifer's Hand Writing");
styleObj.setStyle("fontSize", 16);
styleObj.setStyle("fontWeight", "bold");
styleObj.setStyle("themeColor", "haloOrange");
var styleObj = new mx.styles.CSSStyleDeclaration();
styleObj.styleName = "styleThree";
_global.styles.styleThree = styleObj;
styleObj.setStyle("fontFamily", "delarge marker pen");
styleObj.setStyle("fontSize", 15);
styleObj.setStyle("fontWeight", "bold");
styleObj.setStyle("themeColor", "haloOrange");
//------------------------------------------------
if (fontType == "font1") {
messageBox.setStyle("styleName", "styleOne");
} else if (fontType == "font2") {
messageBox.setStyle("styleName", "styleTwo");
} else {
messageBox.setStyle("styleName", "styleThree");
}
any ideas?
View Replies !
View Related
Text Area Movie Clip W/ Input Text
I am using actionscript to edit text areas using the variable text and then typing out what you want it to say, along with the variable title. This changes depending on how the navigation is set up because the buttons guide everything by telling the text area what frame number to go to, hence leading to what text is displayed.
My question is, lets say you want one of the areas to be input text instead of displayed text, basically to have a contact area to be set up for the user to enter in email, comments etc. Or maybe a guestbook of some sort, integrated into the site with PHP. I understand how PHP works with Flash and how to set it up with input text, but what I don't understand is how to set up the text area, based on how I have it now, to have input text in the text area movie clip?
Do I need to create another text area MC for input text? Do I add a frame at the end and tell it to go there when the button is pressed? I tried both those ways, and when I tried the latter...The movie would reload itself instead of just go to another frame when you leave the area I delegated for the "input" area.
So, if someone could help me out with that I would be grateful and your time and effort would be much appreciated. I have attached a small example of what I am talking about via .fla file so you can dissect it.
Any help/suggestions are greatly appreciated. Thank you
View Replies !
View Related
Text Area Movie Clip W/ Input Text
I am using actionscript to edit text areas using the variable text and then typing out what you want it to say, along with the variable title. This changes depending on how the navigation is set up because the buttons guide everything by telling the text area what frame number to go to, hence leading to what text is displayed.
My question is, lets say you want one of the areas to be input text instead of displayed text, basically to have a contact area to be set up for the user to enter in email, comments etc. Or maybe a guestbook of some sort, integrated into the site with PHP. I understand how PHP works with Flash and how to set it up with input text, but what I don't understand is how to set up the text area, based on how I have it now, to have input text in the text area movie clip?
Do I need to create another text area MC for input text? Do I add a frame at the end and tell it to go there when the button is pressed? I tried both those ways, and when I tried the latter...The movie would reload itself instead of just go to another frame when you leave the area I delegated for the "input" area.
So, if someone could help me out with that I would be grateful and your time and effort would be much appreciated. I have attached a small example of what I am talking about via .fla file so you can dissect it.
Any help/suggestions are greatly appreciated. Thank you
View Replies !
View Related
Antialias Type For Text In Text Area Component?
Can I set the anti alias type for text in a text area component? I have the components on the stage with the appropriate instance names related to those in the code. This code is what I have so far but I cant figure out a way to change the anti alias type for the text entered in the text area control:
Code:
var pformat:TextFormat = new TextFormat(new TrebuchetMS().fontName);
//var pformat:TextFormat = new TextFormat();
pformat.font = "Trebuchet MS";
pformat.size = 12;
name_txt.setStyle("embedFonts", true);
email_txt.setStyle("embedFonts", true);
message_txt.setStyle("embedFonts", true);
//message_txt.antiAliasType = AntiAliasType.ADVANCED;
name_txt.setStyle("textFormat", pformat); //text input
email_txt.setStyle("textFormat", pformat); //text input
message_txt.setStyle("textFormat", pformat); //text area
View Replies !
View Related
How To Justify Externally Inserted Text In A Text Area?
Hello all,
This problem causes hours of search. How can I justify a text that I externally inserted inside the stage with scrollbar in a text area. There is no problem when the text is short, then I can arrange sentence by sentence, but when the text is so long then it is just annoying to justify word by word. So I use HTML text with CSS, I want to justify pages of text like it is easily done by MS Word. I just want to build my HTML and CSS then I want to insert this to a part of the stage with scrollbar to use the stage more attractive and I noticed that if I use long text in my design time in Flash then the project gets slower when I work on it before publishing.
View Replies !
View Related
Extracting And Adding Text To A Text Area
I don´t know if this is possible. I´ll be thankful if aqny of you can higlight me with some help.
I have a big text area where user types a long text.
I need to things:
1º If user highlights part of the text (lets say a word) and click on a button, that word is passed to a another variable (copy and pasted on another variable).
2º If user places cursor in some part of this block of texts and clicks on a button, certain word or character is insetred there.
Kind of a COPY and PASTE function.
Can someone help me know if it is possible to achieve this in FMX? I benileve it is not possible on F5.
Thanks ahead.
View Replies !
View Related
[F8] Scaling Text To A Text Area Size?
Hi guys,
If i ad a dynamic text area to the stage and name it: "mytext"
is there a way to make any text shrink to the size of the text area?
So no matter what is in the text area when it it dynamically added from:
name.swf?text="hello everyone how are you"
and the area is only " " this big, can i make the sentance scale smaller to fit in that space?
Thanks for any help.
Cheers.
View Replies !
View Related
Text Area Component Vs. Dynamic Text Box
Hi I have made this which works exactly how I want it to using a text area component
http://www.goslinganimation.com/wall/test2_b.swf
Now I want the same thing but using a dynamic text box instead.
This is the code I have used
Code:
var fontType = "font1";
messageBox.text = "This is a message test. Blah blah blah";
// define the font styles
var styleObj = new mx.styles.CSSStyleDeclaration();
styleObj.styleName = "styleOne";
_global.styles.styleOne = styleObj;
styleObj.setStyle("fontFamily", "space cowboy.");
styleObj.setStyle("fontSize", 20);
styleObj.setStyle("fontWeight", "bold");
styleObj.setStyle("themeColor", "haloOrange");
var styleObj = new mx.styles.CSSStyleDeclaration();
styleObj.styleName = "styleTwo";
_global.styles.styleTwo = styleObj;
styleObj.setStyle("fontFamily", "Jennifer's Hand Writing");
styleObj.setStyle("fontSize", 16);
styleObj.setStyle("fontWeight", "bold");
styleObj.setStyle("themeColor", "haloOrange");
var styleObj = new mx.styles.CSSStyleDeclaration();
styleObj.styleName = "styleThree";
_global.styles.styleThree = styleObj;
styleObj.setStyle("fontFamily", "delarge marker pen");
styleObj.setStyle("fontSize", 15);
styleObj.setStyle("fontWeight", "bold");
styleObj.setStyle("themeColor", "haloOrange");
//------------------------------------------------
if (fontType == "font1") {
messageBox.setStyle("styleName", "styleOne");
} else if (fontType == "font2") {
messageBox.setStyle("styleName", "styleTwo");
} else {
messageBox.setStyle("styleName", "styleThree");
}
any ideas?
View Replies !
View Related
How Do You Format Text In A Text Area Component?
I'm looking for an easy way to create a scrollable block of text without getting into all the action script (I think I'm allergic to scripting and programming of all kinds, I just like to make stuff look cool, which I'm good at). I tried using a text area component, which seems to work fine, but is the only way to get the text into the area is to open the component inspector and paste the text into the parameter text field? Then also, how do you format the text once it's in? Thanks...
We Are 138
View Replies !
View Related
Fading Out Text INSIDE A Text Area...
I have text showing up in a text area, I know I can make the background transparent, but how do I make the actual text showing up an _alpha of oh say 30 or 40...
I've tried..(inside the onClipLoad event of the text area)
this.text._alpha = 30;
this.setStyle("alpha", "30");
View Replies !
View Related
Fading Out Text INSIDE A Text Area...
I have text showing up in a text area, I know I can make the background transparent, but how do I make the actual text showing up an _alpha of oh say 30 or 40...
I've tried..(inside the onClipLoad event of the text area)
this.text._alpha = 30;
this.setStyle("alpha", "30");
View Replies !
View Related
Text Area
the code in frame 1 is loadVariablesNum("about.txt", 0); and in frame 2 there is a dynamic textarea. all this is put into a movieclip, that appears on the stage and is dragable. when I preview the movieclip (control > test scene) everything works, but when I test the entire flash (control > test movie) the text doesn't show! plz help!thnks pros
View Replies !
View Related
Text Area - HELP
Okay in the attached fla with xml file you'll notice that my text area just won't show up. It's there. I've got the editable enabled and if you mouse over it you can get the text but you simply cannot see it. What have I done wrong?
View Replies !
View Related
Text Area
Hi
just a quick question, I am trying to use the textarea component with a external file, and that works, I just wanted to change the background colour of the textarea to match the background of the design, is it possible?
thanks!
agnetha
View Replies !
View Related
Text Area
i have made a text area and i have it so its source is from a xml file, inside the xml i put tags to bold the text and underline parts
everything works, but when i use the scroll bar on the text box it just highlights everything
does anyone know why?
View Replies !
View Related
Scrolling Text Area Tip
Hey people,
I've posted a question or two regarding scrolling text areas, and I've seen a few others post here, so I thought I'd share a really simple method to get a continously (on rollover) scrolling text area that I just figured out. If people wanna point out some poor scripting or potential flaws, that would be great. It's a basic guide, very easy to figure out.
First:
1. New movie, make a dynamic text box, set the variable to loadtext.
2. Make a textfile, with loadtext= typeyourtexthere. Save as gatorage.txt for this example.
3. Make a new layer, label it actions, put in a loadVariables ("gatorage.txt", "");. That should load your external txt file into the dynamic text box.
4. Make two buttons, an UP and DOWN arrow. Keep them separate and make these movie clips. This should automatically put the buttons you've created into the movieclips.
5. Select the down movieCLIP and double click, and select the down arrow BUTTON. Add this script:
on (rollOver) {
../:loadtext.scroll = ../:loadtext.scroll+1;
gotoAndPlay (2);
}
6. Add a keyframe on frame 2 within the down movieCLIP, select the down BUTTON once again and change gotoAndPlay (1);
::: This creates the "illusion" of continual scrolling on rollover, by making a simple loop. You need to put ../: before the loadtext.scroll so that Flash looks to the level below where the dynamic text box is located. This script must be on the buttons, not the frames.
7. Now, go back to your original movie and do exactly the same as steps 5 and 6 for the UP movieCLIP, except change the loadtext.scroll+1 to loadtext.scroll-1 on the UP arrow BUTTON and remember the keyframes gotoAndPlay (1) changes!
Easy??
If people are having problems, I'll repost a bit more clearly, fingers crossed I haven't forgotten anything (that's reassuring isn't it?)
Keep flashing!
View Replies !
View Related
Text Area Pages
ok...first of all, I was just wondering how you get a text area on Flash MX with text in the box. Flash MX has a "ScrollPane" and a "ListBox" which looks familiar to what im looking for. The HTML code is <textarea rows="3" cols="40"></textarea>. Also, with that, I was wondering how you can get numerous pages. Ex. You have a button at the bottom. When you click that button, you get new text in that box. Thanks!
View Replies !
View Related
Text Area - Align Right - Is It A Bug?
Hi, i've got a text area called MyTextArea - it's dynamic, in the properties window i mark the "Render as html" button, and in the script: MyTextArea.text = "<p align='right'>" + someText + "</p>"
and the text area is still aligned to left.
also: in the window properties i tried both to mark/unmark the button of align=right... still didn't work.
Any idea?
Thanks in advance,
Maya.
View Replies !
View Related
Easing Text Area
i want to make a text area that moves with easing, i will be using pixel fonts so it needs to move on whole pixel coordinates. At the moment i'm using a scrollbar to move it but this could just as easily be buttons. I know that i need to place the text area inside an mc and target this mc but beyond that i'm stumpted, any help would be much appreciated.
View Replies !
View Related
Text Area Component
Hello, I like the new text area component in Flash MX 2004. Is there a way to create a text box using this but have it work in the Flash 5 Player? I like to have my site available with the older player so that people with the older player won't have to download the new player. I tried the save as command but the text area component did not show up in the older version...any ideas?
Thanks
Mark
View Replies !
View Related
Text Area-tutorials?
hola flash newbie brothers...
this is what i am trying to do. i want a text box which scrolls, obviously, where the text is editable.
using the create a text box and adding a scroll bar is kind of limitied, unless i am doing it wrong.
the pro is the text box is tranparent. so i started playing with the text area component, but the area where the text would be isnt transparent...
so, two fold question:
is there a decent textarea tutorial out there?
and:
how does one create a scroll text area with text which can be edited in many ways?
make sense? no? yes? thank you for your help...
View Replies !
View Related
Bg Image For Text Area
is there a way to set a bg image for a text area in MX pro?
I have tried css:
body
{
background-image:
url("image.jpg")
}
But it didnt work.
By the ways i'm linking xml docs into the text area.
Thanks
View Replies !
View Related
Text Area Component
Hello, I am using the following code in the first frame of my text area component:
text_area_01.color = 0x666666;
text_area_01.embedFonts = "FFF Harmony";
text_area_01.fontFamily = "FFF Harmony";
text_area_01.fontSize = 8;
text_area_01.fontStyle = "normal";
text_area_01.textAlign = "right";
text_area_01.depthChild0._alpha = 0;
I notice that things like an apostrophe don't show up...any ideas on how I can fix this using the font's I want? Also, is there a way I can make paragraph breaks or have a list without having all the text run together?
Thanks a lot for your help.
Mark
View Replies !
View Related
Text Area Component
Hello, I am using the following code in the first frame of my text area component:
text_area_01.color = 0x666666;
text_area_01.embedFonts = "FFF Harmony";
text_area_01.fontFamily = "FFF Harmony";
text_area_01.fontSize = 8;
text_area_01.fontStyle = "normal";
text_area_01.textAlign = "right";
text_area_01.depthChild0._alpha = 0;
I notice that things like an apostrophe don't show up...any ideas on how I can fix this using the font's I want? Also, is there a way I can make paragraph breaks or have a list without having all the text run together?
Thanks a lot for your help.
Mark
View Replies !
View Related
Text Area Component
Hi,
I am using MX 2004 and I am new to components. I tried to use the text area component that comes with MX and it's really annoying. In the parameters box they give you this one line to enter in your text, but you cannot have breaks or press return. It seems like it needs to me all on one line with line wrap.
Is there an easier component to work with for writing scrolling text? Or is there a way to change lines using htis component?
Thanks
JAy
View Replies !
View Related
Custom Text Area
I have went to a site and from my knowlege, I believe this site is using flash to load a external .xml file with text into the textarea. If you notice though, the text area is not one found in flash, they must have made it custom. How to you make a custom text area?
The site is http://www.puffyamiyumi.com. Just pointing to a good tutorial would be good enough. Please help!
View Replies !
View Related
Help With Loader And Text Area
On my home page for my web site,
http://gerardsliquorstore.com/
I have 2 images that load, one by way of a loader component and the other one is by way of a text area which then calls upon a text file which has an image source= tag in it. neither file will load when accessing the page. any help would be greatly appreciated. I just finished reading 2 books on flash one being training from the source and since this is my first site i modeled it off of the sample site. Thanks.
View Replies !
View Related
Dynamic Text Area
I'm pulling in some text from a php file and it's being cut-off by the height of the dynamic text area in Flash.
Is there any way to make the text area expand with the amount of text?
View Replies !
View Related
|