Cleaner, Crisper Text
can anyone explain how to get cleaner, crisper text in FlashMX. Thank you.
LoriSchlitz
FlashKit > Flash Help > Flash MX
Posted on: 06-14-2002, 01:59 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Making Text Crisper?
In flash, while editing text (say, verdana, size 10, black) it looks great, as if it were displayed in HTML, but when you publish it or look at it ouside of an MC its crap. why is text soo bad in flash? Can we make it crisper?
-Tyler
Crisper Fonts
I've been asked by a client to use a particular font on a job and it so anti-aliased it looks really fuzzy... even at 14pt.. epecially on monitors with low resolution. I don't want to use dedicated flash fonts. Does anyone know a way to improve this?
yours hopefully
John
Cleaner
Hi
Just wondering if anyone uses Cleaner EZ which comes with Premier etc to compress their video files into Quicktime?
Im stuck on selecting the right settings...I need the video to be fairly small but it ALWAYS ends up being too blurred...
Thanks!
Can This Be Cleaner?
this is a movieclip that can move threw a maze of objects. if the user hits an object the movieclip jumps to frame that shows it crashing. Everything works. my question is.. can the code be cleaner or wrapped up in a function?
onClipEvent (enterFrame) {
if (Key.isDown(37)&& hitTest(_level0.wall)==false) {
_x=_x-4;
}
if (Key.isDown(38)&& hitTest(_level0.wall)==false) {
_y=_y-4;
}
if (Key.isDown(39)&& hitTest(_level0.wall)==false) {
_x=_x+4;
}
if (Key.isDown(40)&& hitTest(_level0.wall)==false) {
_y=_y+4;
}
if (hitTest(_level0.wall)==true) {
this.gotoAndPlay("hit");
}
if (hitTest(_level0.wall2)==true) {
this.gotoAndPlay("hit");
}
if (hitTest(_level0.wall3)==true) {
this.gotoAndPlay("hit");
}
}
[F8] Is There A Cleaner Way To Do This?
This code works just fine for restricting the area I can draw in, but it seems very inefficient. Is there a better way?
Code:
onMouseMove = function () {
if (_xmouse>32 && _ymouse>32 && _xmouse<607 && _ymouse<397) {
drawingArea.lineTo(_xmouse, _ymouse);
}
};
My movie actually uses close to 100% CPU after scribbling a lot, and I think it might be this code thats doing it.
AS2 - URL Cleaner
Hello, this is a great tool that i use to filter path to test locally.
the function:
function cleanVBLE(vble)
{
a = new String(vble);
b = a.split("/");
return b.pop();
}
the usage:
trace(cleanVBLE("/formas/80094/canalune.swf"));
Cleaner Animation
I am trying to make a movie which will play fullscreen with a small area with 20% opacity visible in the center. Now my character (any image) will erase the black background so that a clear picture becomes visible.
Pls. help. urgent
Cleaner Code
I have a code that consolidates current moneys into the least amount of tokens possible. It works but the actual code is extremely bulky, i was wondering if anyone has a tip or sees something that can be removed/replaced for less code
Thanks
code: C_Amount = _root.betTotal;
if(C_Amount < 25)
{
NumLeft = C_Amount % 10;
if(NumLeft < 5)
{
dollar_1 = NumLeft;
dollar_10 = (C_Amount - NumLeft) / 10;
}else{
NumLeft1 = NumLeft % 5;
dollar_1 = NumLeft1;
dollar_5 = (NumLeft - NumLeft1) / 5;
dollar_10 = (C_Amount - NumLeft) / 10;
}
}
[CS3] Cleaner Code
Hi,
Is there an easier, cleaner way to write:
type = _root.page;
if (_root.pageOn == 1)
{
if (type == 'ftp')
{
_root.content.ftp.filters = [myBlurFilter];
_root.content.ftp._alpha = 50;
}
if (type == 'news')
{
_root.content.news.filters = [myBlurFilter];
_root.content.news._alpha = 50;
}
if (type == 'hello')
{
_root.content.hello.filters = [myBlurFilter];
_root.content.hello._alpha = 50;
}
if (type == 'contact')
{
_root.content.contact.filters = [myBlurFilter];
_root.content.contact._alpha = 50;
}
if (type == 'exhibitions')
{
_root.content.exhibitions.filters = [myBlurFilter];
_root.content.exhibitions._alpha = 50;
}
if (type == 'interiors')
{
_root.content.interiors.filters = [myBlurFilter];
_root.content.interiors._alpha = 50;
}
if (type == 'conferences')
{
_root.content.conferences.filters = [myBlurFilter];
_root.content.conferences._alpha = 50;
}
if (type == 'live_events')
{
_root.content.live_events.filters = [myBlurFilter];
_root.content.live_events._alpha = 50;
}
if (type == 'new_media')
{
_root.content.new_media.filters = [myBlurFilter];
_root.content.new_media._alpha = 50;
}
if (type == 'people')
{
_root.content.people.filters = [myBlurFilter];
_root.content.people._alpha = 50;
}
if (type == 'clients')
{
_root.content.clients.filters = [myBlurFilter];
_root.content.clients._alpha = 50;
}
}
Cleaner Code
Hi all, I'm currently working on creating a simulated training flash-based presentation and I'm looking to improve my coding habits.
Part of the simulation was to create a custom cursor that functions just as any data entry cursor would. Here's where I need to improve:
The user is restricted to only entering uppercase glyphs at this point, so the cursor should only respond if a letter character is pressed. All other characters should be ignored. I've figured a method to do this, and it works just fine, but the code is very repetitive and long. I'm guessing that there is a better way to do this by referencing a list of key codes in the conditional statement, but I'm not sure how to go about it. Here's what the code looks like
Thanks
Code:
onClipEvent(keyDown) {
//ignore tab
if (key.isDown(9)) {
this._x = this._x;
} else if (key.isDown(12)) {
this._x = this._x;
} else if (key.isDown(13)) {
this._x = this._x;
} else if (key.isDown(16)) {
this._x = this._x;
} else if (key.isDown(17)) {
this._x = this._x;
} else if (key.isDown(112)) {
this._x = this._x;
} else if (key.isDown(113)) {
this._x = this._x;
} else if (key.isDown(114)) {
this._x = this._x;
} else if (key.isDown(115)) {
this._x = this._x;
} else if (key.isDown(116)) {
this._x = this._x;
} else if (key.isDown(117)) {
this._x = this._x;
} else if (key.isDown(118)) {
this._x = this._x;
} else if (key.isDown(119)) {
this._x = this._x;
} else if (key.isDown(120)) {
this._x = this._x;
} else if (key.isDown(121)) {
this._x = this._x;
} else if (key.isDown(122)) {
this._x = this._x;
} else if (key.isDown(123)) {
this._x = this._x;
} else if (key.isDown(124)) {
this._x = this._x;
} else if (key.isDown(48)) {
this._x = this._x;
} else if (key.isDown(49)) {
this._x = this._x;
} else if (key.isDown(50)) {
this._x = this._x;
} else if (key.isDown(51)) {
this._x = this._x;
} else if (key.isDown(52)) {
this._x = this._x;
} else if (key.isDown(53)) {
this._x = this._x;
} else if (key.isDown(54)) {
this._x = this._x;
} else if (key.isDown(55)) {
this._x = this._x;
} else if (key.isDown(56)) {
this._x = this._x;
} else if (key.isDown(57)) {
this._x = this._x;
} else if (key.isDown(186)) {
this._x = this._x;
} else if (key.isDown(187)) {
this._x = this._x;
} else if (key.isDown(188)) {
this._x = this._x;
} else if (key.isDown(189)) {
this._x = this._x;
} else if (key.isDown(190)) {
this._x = this._x;
} else if (key.isDown(191)) {
this._x = this._x;
} else if (key.isDown(192)) {
this._x = this._x;
} else if (key.isDown(219)) {
this._x = this._x;
} else if (key.isDown(220)) {
this._x = this._x;
} else if (key.isDown(221)) {
this._x = this._x;
} else if (key.isDown(222)) {
this._x = this._x;
} else if (key.isDown(32)) {
this._x = this._x;
} else if (key.isDown(37)) {
this._x = this._x;
} else if (key.isDown(38)) {
this._x = this._x;
} else if (key.isDown(39)) {
this._x = this._x;
} else if (key.isDown(40)) {
this._x = this._x;
} else if (key.isDown(20)) {
this._x = this._x;
} else if (key.isDown(106)) {
this._x = this._x;
} else if (key.isDown(107)) {
this._x = this._x;
//don't move left of original position
} else if (key.isDown(8)) {
if (this._x > 104) {
this._x -= 10;
}
//don't move right of new position
} else if (this._x < 112) {
this._x += 10;
}
}
If/Else - Is There A Cleaner Code?
Hello all,
I am currently working on a flash file and I'm an intermediate user. My actionscript abilities are probably close to beginner, but I'm a quick learner (most of what I have learned with actionscript has been self taught).
In my flash file I have an animation of a rotating globe. Each frame of the rotation is a separate raster image - I don't know how you would represent a rotating globe otherwise, not really something that can be tweened (suggestions are welcome).
I have different locations off to the side of the globe. When the user mouses over a location, the globe spins to that location. When they roll out, the globe spins back to a static starting point.
I wanted the animation of the globe to be as smooth as possible, so, I have a }else{ statement for every possible frame. IE - if the globe animation is rotating back from a position and the user mouses over a new location before the animation stops, it doesn't jump back to the starting static position, it seemlessly flows from the position it is currently at to the new position the user has moused over.
Make sense?
It works flawlessly as is. I've spent quite a bit of time testing it. However, the code is bulky in appearance and according to the size report bulky in bytes as well.
Is there a differnent way to set this up to cut down on size - mainly byte size if possible?
I will include a bit of code so you can see what I'm talking about:
on (rollOver) {
if (_root.EarthClip._currentframe == 1) {
_root.EarthClip.gotoAndPlay(140);
} else { if (_root.EarthClip._currentframe == 160) {
_root.EarthClip.gotoAndPlay(156);
} else { if (_root.EarthClip._currentframe == 161) {
_root.EarthClip.gotoAndPlay(155);
} else { if (_root.EarthClip._currentframe == 161) {
_root.EarthClip.gotoAndPlay(154);
} else { if (_root.EarthClip._currentframe == 163) {
_root.EarthClip.gotoAndPlay(153);
and so on, and so on . . .
Any help would be greatly appreciated.
Thank you in advance.
-MShetler
Cleaner Scripting
I think the code says it all. For a current project I need to use a hit area to start an animation when a mouse rolls over a _mc.
If I use the movie clip instead of a button I can simplify the script by using the first section of the attached code. In the simplified code I only have to define one over and one out state and then I can use a this statement to control the action.
For any number of _mc's I just need one set of functions.
Using buttons, each _mc needs it's own over and out definition and it's own unique set of functions.
I've tried using a bunch of if (grnMC_button.onRollOver = true) {this statements apply only to grn_mc} (not really code) but I can't find anything that works. It would be a great time saver if I could because in the final project I've got about 75 movie clips to control with over functions.
One more thing. I can't use the movie based code because the animations move out from under the buttons and the mouse over area gets big and overlaps the other "buttons". I guess I'm really looking for a way to define a hit area and still keep the code simple.
Attach Code
Movie driven _mc sample code:
˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
// over-out definitions
grn_mc.onRollOver = over;
grn_mc.onRollOut = out;
blu_mc.onRollOver = over;
blu_mc.onRollOut = out;
red_mc.onRollOver = over;
red_mc.onRollOut = out;
// onRollOver functions
function over () {
this.overThis = true;
this.gotoAndPlay("start");
}
// onRollOut functions
function out () {
this.overThis = false;
Button driven _mc sample code:
˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
// button definitions
grn_btn.onRollOver = over_grn;
grn_btn.onRollOut = out_grn;
blu_btn.onRollOver = over_blu;
blu_btn.onRollOut = out_blu;
red_btn.onRollOver = over_red;
red_btn.onRollOut = out_red;
// onRollOver functions
function over_grn () {
grn_mc.overThis = true;
grn_mc.gotoAndPlay("start");
}
function over_blu () {
blu_mc.overThis = true;
blu_mc.gotoAndPlay("start");
}
function over_red () {
red_mc.overThis = true;
red_mc.gotoAndPlay("start");
}
// onRollOut functions
function out_grn () {
grn_mc.overThis = false;
}
function out_blu () {
blu_mc.overThis = false;
}
function out_red () {
red_mc.overThis = false;
}
Edited: 05/16/2007 at 11:25:53 AM by Rick Gerard
Cleaner 6 Or Sorenson Squeeze?
hi
I have cleaner 6, but a friend says sorenson squeeze it a better compressor for use of video in flash. Shoul i get a copy? or will cleaner suffice??
Techniques To A Cleaner Program
Hi, Im not an expert in flash, but I do on occasion help some buddies out if they want a menu or something on their webpage. When I am making these files, it seems like my organization and technique is sloppy. Any comments / suggestions / flames are welcome on how I could better organize this and other projects in the future.
~Thanks
Link to File:
http://www.geocities.com/matteoelbow/SR_Menu1.fla
Link to movie:
http://www.geocities.com/matteoelbow/SR_Menu1.swf
[CS3] Help Need A Cleaner Way To Write This Array Of Buttons
Hi there,
not sure how difficult this is going to be, but I have 30 movie clips, which will all be sequentially numbered. (pos1, pos2, pos3......pos30).
They will all have the same functions, with the only change being the number.
I know there is a more efficient way to write this code using arrays, but I will need help with it. I would rather have 10 lines of code than 150.
I also need help with writing the code, that will disable all other movie clips, once the first one is clicked.
Also, not sure how tricky the javascript part will be.
Below is the code i am trying to achieve, but the long version.
PHP Code:
pos1.onRelease=function(){
this.gotoAndStop("selected");
getURL("Javascript:JSposition('',1)");
(all other buttons).enabled = false;
}
pos2.onRelease=function(){
this.gotoAndStop("selected");
getURL("Javascript:JSposition('',2)");
(all other buttons).enabled = false;
}
pos3.onRelease=function(){
this.gotoAndStop("selected");
getURL("Javascript:JSposition('',3)");
(all other buttons).enabled = false;
}
pos4.onRelease=function(){
this.gotoAndStop("selected");
getURL("Javascript:JSposition('',4)");
(all other buttons).enabled = false;
}
... all the way to
pos30.onRelease=function(){
this.gotoAndStop("selected");
getURL("Javascript:JSposition('',30)");
(all other buttons).enabled = false;
}
AS Guru's please help!!!
Thanks.
Cleaner Movie Clip Dragging
I briefly remember seeing a tutorial for this somewhere but I cant find it anywhere. But is there a way to drag movie clips around using startDrag but with a cleaner more fluent motion as it a bit jolty when moving?
Anydony know the answer?
Flash Media Cleaner Addons
I'm looking for an add-on lilke Sorenson Squeeze for Flash, but this is a little pricey for me.
http://www.sorensonstore.com/product.../sq4mfwin.html
Does anyone know of something comparable for less? I know. You get what you pay for, but I need something to get me by while I'm learning Flash.
I'm not looking for shareware, etc. Just an inexpensive, nifty program to get me started as a newbie.
Thanks in advance for any help.
Can I just say I'm loving Flash. I just starting using it a few days ago, and I'm hooked! This is so much nicer when embedding video to webpages. Whoa!
Edit:
Does anyone know if the addon comes with Studio MX 2004? Because I plan on upgrading very soon. I definately don't want to dish out $119.00 for the addon if it ships with Macro's latest studio.
Quick Question For Cleaner Code
Just need some advice on how to clean this code up. I know there has got to be a way to combine the 2 movieclips....
Basically I have 4 movieClip buttons. currently only the first is working.... How would I add the other f2, f3, f4 MC's without having to write a function for each one?
Here is the code I have:
Code:
f1.addEventListener(MouseEvent.MOUSE_OVER, hoverOver);
f1.addEventListener(MouseEvent.MOUSE_OUT, hoverOut);
f2.addEventListener(MouseEvent.MOUSE_OVER, hoverOver);
f2.addEventListener(MouseEvent.MOUSE_OUT, hoverOut);
f3.addEventListener(MouseEvent.MOUSE_OVER, hoverOver);
f3.addEventListener(MouseEvent.MOUSE_OUT, hoverOut);
f4.addEventListener(MouseEvent.MOUSE_OVER, hoverOver);
f4.addEventListener(MouseEvent.MOUSE_OUT, hoverOut);
function hoverOver(event:MouseEvent):void
{
f1.gotoAndPlay(2);
}
function hoverOut(event:MouseEvent):void
{
f1.gotoAndStop(11);
}
f1.buttonMode = true;
f2.buttonMode = true;
f3.buttonMode = true;
f4.buttonMode = true;
Scripting Is Supposed Flash Movie Much Cleaner
Scripting is supposed flash movie much cleaner, there should be a straight forward way to do this.
the example we can call "test.swf"
the movie clip we will call "fade" which resides inside the library
"fade" extends over 50 frames the first 30 have a snazzy animation upon a mouse click on a button in the main menu.
I would like to use this movie clip again just starting at frame 30. My question is can you reference a frame label inside the "fade" clip from the "test.swf?"
Note tell target is usefull by adding a ../ script you can exit a movie clip. Can you preform this code to enter in a clip?
Much thanks
aspiring asssstronaught
Problematic Flash Files: "Cleaner" Needed (Paid)
Hello all,
I've hit a wall in several small Flash movies that are integrated into one online course, things that I'm sure I can figure out with time, but time is something I ain't got. I need a Flash wiz who can figure out what I've done wrong, improve the actionscripting where necessary, and also finish off some elements that have me stumped (and tell me what I've done wrong in the process). It's actually pretty basic stuff...and all the major groundwork has been done...but there might be a few challenges. You need to be familiar with video/audio integration...everything else is standard stuff.
If you're interested, please send me an e-mail and let me know your preferred method of payment: hourly or project-basis...and if you prefer hourly, please let me know your hourly rate since I have to get approval. Also, please include a link to your Flash portfolio.
BTW - This could possibly lead to a long-term project-basis work relationship.
Thanks! I hope to hear from you!
John
Loaded Text File Wont Show All Of The Text In Dynamic Text Field
When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.
The text that is in the text file is as follows, and as far as I can see there is no reason why all this text shouldnt show in the dynamic text field; by the way all my targets are correct, I know that for fact.
message=Code: Cheat:
BEEPSAGONER Deactivate the censor beeps
DRACULASTEABAGS 50 lives
DUTCHOVENS Frying pan mode
XFYHIJERPWAL IELWZS Debug mode
BOVRILBULLETHOLE Shoot all objects
EASY Easy mode
VERYEASY Very easy mode
SPUNKJOCKEY New death animation
SEXYMANN Birdy & Squirrel scene
Code: Unlock chapter:
PRINCEALBERT Barn Boys
CLAMPIRATE Bats Tower
ANCHOVYBAY Slopranos
MONKEYSCHIN Uga Buga
SPANIELSEARS Spooky
BEELZEBUBSBUM It's War
CHOCOLATESTARFISH The Heist
WELDERSBENCH All chapters and scenes
Code: Unlock Multiplayer character:
WELLYTOP Conker
EASTEREGGSRUS Neo Conker
BILLYMILLROUNDABOUT Gregg the Grim Reaper
CHINDITVICTORY Weasel Henchmen
EATBOX Cavemen
RUSTYSHERIFFSBADGE Sergeant and Tediz Leader
BEEFCURTAINS Zombies and Villagers
Trasfering Text From One Dynamic Text Box To A Input Text Box On A Differnt Page?
Ok so I have a text box set up which receives the date on a callendar which you click on. On another page (a seperate html file) I have an input text box for receiveing this text.
I've been trying to do this using various methods using getURL, but, I can't get it to work. This is becoming tedious especially as I'm not able to test it without having to reupload the files.
If someone could please inform me on how I should do this I'd be vary greatful.
If you need any further information I'll reply as soon as possible.
Help With Text Fields And Inputting Text From External Text Files
help with text files and paths
i need some help with input text field and text files.
i have a 'presentation' movie that has three buttons. these buttons influence a sliding menu that has three sections to it. the sliding menu is a movie clip made up of 3 separate graphic elements and is placed on the main stage. the code on the movie clip is:
onClipEvent (load) {
var a = 5;
var d = 3;
var newX = _x;
var oXPos = _x;
var myXspeed = 0;
}
onClipEvent (enterFrame) {
myXspeed = ((_x-newX)/a+myXspeed)/d;
_x -= myXspeed;
}
and the code on the frame action is:
fscommand ("allowscale", false);
var xPositions = new Array(0, 205, -190, -580);
function jumpTo (number) {
slider.newX = xPositions[number];
}
stop ();
i now want to be able to have an input text field on each separate element of the sliding menu that pulls text from 3 sepaprate external text files and i can't get it to work. i'm ok if i put the text field on the main stage and can pull the info in from a text file using
loadVariablesNum ("text.txt", 0);
placed on a frame action. how do i adapt this so that it works for a text field put on the sliding menu. and how do i work it if i have three separate text files and three different text fields? i'm not very good at understand the paths needed to reach certain elements within a movie and where to put these actions.
should the load variable be on a frame actions or on a button action and whats the path to my input text field???
any help appreciated - as its driving me mad.
thanks
eskymo
TEXT CHANGING, When I Copy And Paste Text Scroller, And Add New Text......?
here's the problem:
I have a text scroller I took from a fla. file on here.
on my site, I wanted to just change the text. in the text scroller, and
place it in diffrent sections of my site a number of times with diffrent text.
I do not have a problem, copying and pasting the scroller.
But when I change the text from one section, to the next, it will make all the text the same.
If I copy the scroller and paste it somewhere else, swap the text it will change all to that last text I entered.
I tried, typing one section's text. Then copy/pasting the scroller, and putting new text, and converting that text to a symbol (graphic). Hoping it would work but had no LUCK.
This is huge and i need help, considering I am a newbie, there has got to be away this can be accomplished so I dont have to build seperate text holders/scroller, for all 15 sections of my site.
Let me know..and thank you all so much.
Load Text From A Text File Into A Dynamic Text Field
I'm trying to load text from a text file into a dynamic text field. The text field is on the "blog" page of the website. When I test my movie, the first time I go to the blog page, the text from the external text file (AND the CSS styles) show up fine. But when I click from the blog page to go to the "profit calculator" or "contact" pages and THEN click to go BACK to the blog page, the blog page animates back in, and right as the animation ends, the text on the blog page suddenly disappears and won't come back. PLEASE help me figure this out!
Dynamic Text Box / Xml Content - Text Is Too Close To Border Of Text Box
Hi,
If you take a look at my flash movie you will see that I have draggable movie clips, which contain dynamic text fields. These text fields contain text drawn in from a simple xml document.
The problem I have is that the text in the text fields is hedged right next to the border of the autosized text box. This makes them look untidy and in the worst case difficult to read. I wonder how I can add some margin to the left and right of the text to fill in some space.
http://www.nottingham.ac.uk/home/ccz...AndDrop3.1.swf
http://www.nottingham.ac.uk/home/ccz...AndDrop3.1.fla
(you also need the xml doc at : http://www.nottingham.ac.uk/home/ccz...scriptions.xml )
The code which formats the text boxes is:
with (main["dragAct"+i].dragActText) {
text = actText[i+1];
background = true;
backgroundColor = "0xe2e2e2";
setTextFormat(myFormat);
autoSize = "center";
border = true;
borderColor = "0x666699";
}
my text formatting looks like this, and you can see that I have tried to use leftMargin / rightMargin but these properties don't seem to work:
var myFormat:TextFormat = new TextFormat("Tahoma", 12);
myFormat.leftMargin = 20;
myFormat.rightMargin = 20;
myFormat.bold = true;
Any suggestions most welcome.
Thanks
Getting A Dynamic Text Box's Text From HTML-formatted Text?
Hey! You recognize me yet? I've got (hopefully) one last question for a while. Could somebody please tell me how do to get the text value of a text box with text that's formatted as HTML? ( it was formatted similar to "textBox.htmlText = "...";")
I tried "myVariable = textBox.htmlText", but it just gave me the formatting garbage it's using (<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="12" COLOR="#000000"></FONT></P></TEXTFORMAT>) without the actual text that my users see. I also tried "myVariable = textBox.text;", but it returned a blank variable.
Many thanks, me Flash bruthas
Furry
Dynamic Text, Loading Text From Text File
I have a large text file, full of, believe it or not, alot of text. When it loads into the textbox in flash, it cuts off after a certain amount of lines. How many lines does it cutt off at and if I can, how do I increase this? THanks
Loading Ext. Text Into Scrolling Text Box. Problem With Text? Help Please?
Hi,
I am hoping someone can help me. I am loading an external text file into a scrolling text box. I was able to get my box and buttons, scroll bar, etc to work correctly. However, I am having two other problems that I cannot figure out.
1) My text file that I am loading is several lines long (320 or so), however, when I test my movie only the first 20 lines of the text shows up. How can I make all of my text show up? I will be adding to this text file over time and adding updates to it. So the text will gradually have more lines added over time.
2) The 20 lines of text that is showing up is all double-spaced, while the text in my text file is single spaced. How do I make my text show up single spaced? I checked the paragraph settings of my text box and everything is set to zero. What can I do fix this?
I am using Flash 5.0 and I created my text in Metapad.
Thanks in advance to anyone who can help me out.
How To Add Text To Dynamic Text Field Where Text Cursor Is. Please Help
Hello,
How do you, if possible, can add text to a dynamic text field on where the text cursor.
Example:
| = text cursor
by pressing a button I want to add "How are you?" where the cursor is
____________________________________________
Hello
|
Bye
____________________________________________
Results:
____________________________________________
Hello
How are you?|
Bye
____________________________________________
Please Help!
Thank you in advance!
Trying To Pass Text From Form Text Field To A Flash Dynamic Text Field
Hi, I was hoping someone might enlighten me as to how/if I can do this...
Currently I'm using javascript which works fine to pass text from textfield A to textfield B:
Code:
window.onload=function()
{
document.forms.form1.shirtText.value=document.forms.form1.KitGroupID_16_TextOption_38.value
}
Is there a way to pass the textfield A text to a dynamic text input (flash) as I'd like to use the font embedding flash offers. I can make it work when loading a value from a txt file but I'm not sure how to access the value identified above as KitGroupID_16_TextOption_38 and make it appear in a dynamic input box. Eventually I might want to have 3 font choices for the user but I'd like to just see if I can get this working properly first.
Your help/advice would be greatly appreciated,
-Scott
One Text Box, Each Button Loads Different Text Into That Text Box
I was wondering how I would go about this...I have one text box and I want to have each button load different text into that text box for my webpage. How would I go about coding that so when I click on home it would load the text for the home page and when I click on contact it would load the text for the contact page.
Arabic Text (RTL Text) Containing English Text
Hi,
I am having difficulties in displaying English text within Arabic text without changing the sequence of the text.
Actual Text:
"القائمة" Menu إضغط زر
What the text is shown on Flash:
إضغط زر Menu "القائمة"
Anybody has any solution or work around solution?
Thanks!
Duplicating Text In One Text Input Box To Another Text Box
I have 3 text input boxes in one scene.
I want the user to type his name into the first box. When a button is clicked the user's name goes into the second box.
A new user comes along, and types his name into the first box. After clicking the button, the new user's name is moved to the 2nd box, while the name that was in the second box, moves into a third box.
I can get the first action to occur (user's name into 2nd box after clicking button) but I can't get the 2nd name to move into the third box.
It is just making me crazy. Any ideas are much appreciated!!
Dynamic Text Box Jumping To A Section Of Text File Based On Date Stamp
I am VERY new to Flash MX (version 6) and need some help.
I want to build a text file with different messages that are listed/identified by a date stamp, and then have a flash program to display these messages based on whatever the current date is.
Is this possible? How do I build the text file? Do I need separate text files for each message? What ActionScript code do I use to identify the current date, and then display the appropriate message with the current date.
Any help, tutorial or guidance is appreciated. Thanks!
External Text; Html Text And Embedding Fonts Question - Probably A Quick Solution
I've been reading every post on this that I can find, and so far, I have not stumbled on the solution.
I have a dynamic text box and a text box variable. I load an external text file into the variable and then load the variable into the dynamic text box. The file that gets loaded changes via different buttons pressed. That's working just fine.
The "real" problem is the double line breaks you get when loading in external text. The only way I have found, so far, to solve that is to set the text box to use htmlText and then use the myText.condenseWhite = true; function. That works also. BUT, when set to render text as html, I can no longer embed the fonts. If I try to embed the fonts, the text no longer appears. If the fonts are not embedded, they look bad.
Is there a simple, or not so simple solution? I need very clean looking text that does not have double spaces between lines. Here is a bit of the simple code I'm using. This is attached to a button.
Code:
on (press) {
Spec_txt.autoSize = "left";
Spec_txt.border = true;
Spec_txt.multiline = true;
Spec_txt.wordWrap = false;
Spec_txt.html = true;
Spec_txt.condenseWhite = true;
//Spec_txt.embedFonts = true;
myData = new LoadVars();
myData.onLoad = function(){
Spec_txt.htmlText = this.content;
};
myData.load("parafix.txt");
}
I've had to comment out the embedFonts attribute. When it is enabled, the text does not show.
Thanks for the help.
Changing Font And Size Of Text Added To Dynamically Created Text Fields
Whew.. That long-winded subject line pretty much covers it.
Link
In the galleries, I have text I am adding to a movieClip. I have been able to add the description text, change it's colour, but the font and size are not responding. I'm using FlashMX2004. Can anyone show me what I'm doing wrong? Here's the pertinent code:
_parent.Gallery.createTextField(["Txt_" + CVar], _parent.LevelCount + 1000, 175, _parent.EntryY, 325, 110);
_parent.Gallery["Txt_" + CVar].font = "Arial";
_parent.Gallery["Txt_" + CVar].text = _parent.Description[AVar];
_parent.Gallery["Txt_" + CVar].textColor = 0xFFFFFF;
_parent.Gallery["Txt_" + CVar].textSize = 25;
Thanks so much!
Dynamic Text From MySQL Problem. Multiline + HTML-rendered Text Wanted...
Hi.
I'm in the process of writing a guestbook using Flash, PHP and a MySQL database. A large part of the Flash-code, is fully functional, but there is one strange problem.
The text i'm echo'ing from the PHP document into Flash, doesnt wrap correctly in my textfield. I've set the textfield to multiline and I've pressed the "Render as HTML"-tab. But the text is displayed with HTML-tags and stays on one line.
This is how it looks: http://www.riminalitet.org/guestbook.swf The buttons below the field are "Next"- and "Back"-buttons for the submissions...(It's danish )
I've experienced that it works if I use
instead of <br> in my HTML-formatted code. But I'd like to use <b>BOLD</b> as well. And if I urlencode my output-code from PHP, nothing changes. Still one line with HTML-tags...
The textfield is embedded in a scrollPane. I'm targeting this field in my LoadVars function. Can this has something to do with the problem?
Should I use the ScrollBar component in stead of the scrollPane to retrieve dynamic text? (This would be a little bugging, since my goal is to display the text nicely with some graphics around it).
Hope some of you guys can help me with this. Bye now...
Static Text (device Fonts) Vs. Dynamic Text (anti-alias Non-embedded)
Any thoughts on which is better to use?
When i use static text and device fonts (arial) the text looks great. The text doesn't change so no need to be dynamic.
Or
I use dynamic text (arial) non-embedded and it looks good too. The text doesn't change but leaving it as dynamic makes it render better.
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.
How To Stop Text Floating To Right Side Of An Image Inside A Dynamic Text Field
Hi
I have dynamic text field that loads in a txt file containing
html formatted text including an embedded image.
When I test the movie the text that should appear bellow
the image, instead, runs down the right side of the image.
I have tried adding various html attributes including -
Code:
<br clear="all"><img src="image.gif" /><br >
I have also tried attaching a style sheet and appying the
following class -
Code:
img.allClear {
clear: all;
}
and also redefining the image tag -
Code:
img {
clear: all;
}
None of witch have worked.
Can someone help with this please.
Regards Mydogmax
Mask Layer Hides Labels, Button Text, And Selected Text For Combobox
does anyone know how to get flash to stop hiding text that resides on movie clips that have a mask layer over them? the masks appear to work fine but hide this text and i cannot figure out how to get it to stop.
thx
=========================================
Don't sweat the petty things and don't pet the sweaty things.
2 Problems: 1. EmbedFonts Makes Text Disappear, 2. Dynamic Text Vertical Position
I have the following code:
--------------------------------------------------------------------------------
this.createTextField ("imageText",2,95,0,390,96);
imageText.multiline = true;
imageText.wordWrap = true;
imageText.autoSize = true;
//imageText.embedFonts = true;
imageText.html = true;
imageText.htmlText = text; // variable loaded earlier in script....
imageText.selectable = true;
imageTextFormat = new TextFormat();
imageTextFormat.color = 0xCA9E1D;
imageTextFormat.size = 16;
imageTextFormat.font = "Sabon RomanSC";
imageText.setTextFormat(imageTextFormat);
//imageText.embedFonts = true;
trace(imageText.text);
--------------------------------------------------------------------------------
The problem:
If I uncomment either of the imageText.embedFonts lines, my text will disappear... but the trace(imageText.text); will still return the correct contents. It's as though embedFonts causes the textField to disappear.
Possibly related, (but maybe not), is the fact that the vertical positioning of the font is off. Even though I create the textField at Y = 0, the text writes somewhere around Y = 10. I suspect this is something else, but I thought I'd add it just in case.
Any help with either (or both) problems would be fabulous. Thanks,
Drew
Long Text Doesn't Fit Inside Single-line Input Text Field
Hi, I've been browsing these forums for a long time but this is my first post.
I'm creating an interface by which a user can design and order their own customized decal. Please see my example (I've added my script at the bottom of this post):
http://www3.sympatico.ca/sin.young/decaldesigner.html
My issues are:
1. I've set the character limit to 21, but if you were to type in 21 "W"s into the input field for whatever reason, or choose a wider font, the text shifts to the left and some of the characters become hidden as they don't all fit. I'd like to make the width of the text to always fit inside of the width of the white area. I can't figure out how to make this work.
Here's an example that does pretty much what I'm trying to describe: www.stickerjunkie.com.
2. I have the Standard Colors combo box working perfectly but can't seem to get the Fonts combo box working.
Any hints or links to actionscript tutorials/help that might be useful to my predicament is extremely appreciated.
// display colors and formatting
decalColor = new Color(decal);
color1 = new Color(decalColor);
//
function changeColor(comp) {
decalColor.setRGB(comp.getSelectedItem().data);
}
//Standard Colors array
standardcolors = [{label:'STANDARD COLORS'},
{label:'White', data:0xffffff},
{label:'Black', data:0x000000},
{label:'Silver', data:0x9c9c9c},
{label:'Gray', data:0x636b73}];
collistStandard.setDataProvider(standardcolors);
collistStandard.setSelectedIndex(0);
collistStandard.setChangeHandler('changeColor');
//
//Fonts array
myfonts = [{label:'FONTS'},
{label:'Arial', data:'Arial'},
{label:'Serpentine', data:'Serpentine'},
{label:'Enviro', data:'Enviro'},
{label:'Forte', data:'Forte'}];
fontlist.setDataProvider(myfonts);
fontlist.setSelectedIndex(0);
fontlist.setChangeHandler('');
Changing Text Inside A Text Field, Bold/Italic/Underline Ect ...
Is it possible to change the appearance of text inside a text field, like say to bold, italic, underline, color and even a type of font if need be ... ?
Example:
Like say you have text field, and you have some option buttons, (bold/italic/underline/color/type-of-font) that when clicked on will dynamicaly change the text/font appearance in the text field.
Any tutorials on this matter, anyone know ?
|