Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Unit Of Leading


Can anyone tell me what is the unit of leading property for textFormat? pt? twips?

Thank you very much!!!




FlashKit > Flash Help > Flash ActionScript
Posted on: 04-10-2003, 04:06 AM


View Complete Forum Thread with Replies

Sponsored Links:

Unit Of Leading
Can anyone tell me what is the unit of leading property for textFormat? pt? twips?

Thank you very much!!!

View Replies !    View Related
[Q] Unit Conversion...
Howdy...

Okay... This is not really a question on how you can convert 'F to 'C type of question just to make it clear...

I am reading an XML file that contains only 'F information like this...

Code:
<Cell
label="today is 32° and tomorrow is 40°">
</Cell>
When I am done reading the XML file, I'll need to display that value to a textField on the stage... The trick is that if the _global.UnitSystem is set to "Metric", I'll need to convert that '32' part and display '0' instead...

If the label only says "0", then I can just do the conversion with no problem, but there are some texts around the value that I am looking for...

So, I guess I'll need to wrap that number somehow within the XML file so that I can trigger certain function in Flash to do the conversion...

A simple form would be making the XML file like this...

Code:
label="today is ~~~32~~~° and tomorrow is ~~~40~~~°"
and look for that '~~~' string and initiate the function to do the conversion...

BUT, that does not look like a good way of handling the process...


Any thoughts on this, anybody???

Thanks...

View Replies !    View Related
Unit Mm Vs Pixels
I wondered if someone could please explain something to me which is driving me nuts. If in Flash you change from pixels to mm, the workspace magnification completely changes. I'm basically trying to translate an inDesign doc which is in mm, but mm measurement in inDesign and Flash seems to look totally different. When the doc in flash is set to mm i have to zoom out to 80% to see the document how it displays when exported.

Any advice on this please?

Thanks

View Replies !    View Related
Actionscript Unit Testing.
Hi Guys.

I am currently evaluating both the ASUnit and AS2Unit, Unit testing program to test our action script.

has anyone used any of these programs. Which one would you say was the best one to use.

I am trying to write a small test to test a basic calculator that I have created. Im currently researching both so need all the help I can get.

Thanks

Allan

View Replies !    View Related
Unit Testing Actionscripts
Hi,
I'm new to ActionScripting and was looking for opinions on which testing tools are best and what other possibilities are out there. I've looked at ASUnit, AS2Unit and FlexTest. Which of these is the best to use and are there any other alternatives to these?
TY

View Replies !    View Related
Hex Color String To Hex Unit
Hey all,

I've been pulling my hair out all day with this, spent hours searching the net, but I still can't find a reasonable solution so I'm asking here.

I have a string variable, hundreds actually, that are hexadecimal colors ("0xFF0000") being loaded into actionscript from an XML file. I need to use those string values to set fill colors in things like graphics.beginFill( bgColor ). The problem is AS expects the bgColor to be a uint, and my var is a string because everything from the XML attributes (xmlNode.@bgColor.valueOf) come through typed as strings.

I can't simple cast it as unit or even Number because that changes the string to a decimal (16711680) which wouldn't be so bad if I could find a way to convert that decimal back into a hexadecimal(typed as unit preferably) but I've had zero luck finding any kind of decent solution.

Does anyone know of a function or have one they can share that'll take in a string hexadecimal and spit out a uint typed one? Or even take in a decimal and return a hex typed as uint. Or am I totally missing something obvious here?

View Replies !    View Related
Problems With Unit Circles
I'm trying to make an object move around the 0 axis (to be shifted later) using a modified unit circle. To resolve the "being in two places at once" paradox, I figured I would set up switches at the 100 and -100 axis, but my switches cause the whole thing to not work. Attached are two versions, the first half works (180 degrees) the second doesn't work at all. Help?









Attach Code

// Version 1: 180 degree arc.

onEnterFrame = function(){

if(Key.isDown(Key.LEFT)){
dot_mc._x -= 1;
}

if(Key.isDown(Key.RIGHT) && !(dot_mc._x > 100)){
dot_mc._x += 1;
}else if (Key.isDown(Key.RIGHT)&& !(dot_mc._x < -100)){
dot_mc._x -= 1;
}




dot_mc._y = Math.sqrt(10000 - (dot_mc._x * dot_mc._x));



}


// Version 2: a dud

onEnterFrame = function(){
condition = red;


if(Key.isDown(Key.RIGHT) && (dot_mc._x > 100) && condition == red){
dot_mc._x += 1;
zeta = 1;
}
if(dot_mc._x == 100){
condition == blue;
}

if(Key.isDown(Key.RIGHT) && (dot_mc._x > 100) && condition == blue){
dot_mc._x -= 1;
zeta = -1;
}
if(dot_mc._x == -100){
condition == red;
}



dot_mc._y = Math.sqrt(10000 - (dot_mc._x * dot_mc._x)) * zeta;



}

View Replies !    View Related
What Process Best Facilitates Unit Testing?
What process best facilitates unit testing?



Avoid using classes so movies can perform as a single class-like unit.

Avoid using MovieClip events as they do not respond well to the unit tester.

Class based development using methods with distinct functionality and predictable return values.

Use loadMovie in place of MovieClip to allow the seperate SWFs to be tested as individual units

View Replies !    View Related
Mouse-following Moving Masking Unit
(Say that three times fast...)

Anyway, I was wondering how I could make a masking unit move. I have a larger picture underneath and I want to allow the mouse to reveal that picture by useing layers that are masked. How is this possible?

Thank you...

View Replies !    View Related
External Diagram Variable Tasking Unit - Way Easy
I have no idea what that is.
But here is my prob.
I am using a mc with a hittest to start drag
Seems that i cant get the ball to stop drag when mouse hittest equals false.

View Replies !    View Related
Unit Queue System - Similiar To Starcraft/Warcraft
Hey there! I was wondering if someone could help me along with a code I've been working with, it's a unit queue system which allows a user to select units and queue them up for creation.

So far it works pretty well, the SWF is here for you to see:
http://www.liquid-visual.com/panel6.html

All you need to do is click one of the boxes to the left for them to queue on the right. The code I'm using is;


Code:
var currentBox = 1;
function fillBox(labelName) {
_parent["box"+currentBox].gotoAndStop(labelName);
currentBox++;
}
adam.onRelease = function() {
fillBox("adam");
_parent.compiler.play();
};
eve.onRelease = function() {
fillBox("eve");
_parent.compiler.play();
};
spectre.onRelease = function() {
fillBox("spectre");
_parent.compiler.play();
};
What I'm trying to do now is shift the boxes up one space once a box is finished creating. I'm aiming to do this with the load bar.

The idea is that inside the MC of the loading bar, at the end of the load (on the final frame) - if the first box's current frame equals a certain unit, that unit will place itself somewhere on the movie canvas..perhaps randomly, but that's further down the track.

My QUESTION now is how would I go about making it so that after the loading bar finishes it's animation it clears box1 (frame 1 / label; "none") and the next box moves into its place, and so forth. ?

So once box1 finishes, box2 moves into box1 and box3 moves into box2 etc etc

A little more complicated, just hope it's possible!

http://www.liquid-visual.com/panel5.fla I've uploaded the FLA if it makes it easier to see what I'm doing.

Thanks!

View Replies !    View Related
Is Leading Possible?
I see all sorts of text tools, but I don't see a way to change the leading (vertical line spacing) Please tell me I'm just blind.

View Replies !    View Related
<li> And Leading
When I put a list tag into my textfield, how does it affect the leading
property of the textformat? The debugger gives me a "Null" value. Does
it mean it has multiple textformats?

I want to add a value on the existing leading (depending what language
is used in my application). Can I still do this on a html list. Can I
parse all textformats of the text? How?

View Replies !    View Related
Tab Leading
How can I create a Tab leading just like you would in Word but using AS.All the info is being pulled from a XML file.
I have this but it does not keep the text aligned correctly.

Code:
var cnt = new_news.length;
txt.text = "";
for (var i = 0; i < cnt; i++) {
txt.htmlText += new_news[i].substring(0,15) + "................................................................................................................."+ " <FONT COLOR='#999999'>$" + prices[i] + "</FONT>" + "<A HREF="asfunction:show_news," + i + ""> <u>Read</u></A><br>";
}
Any Help would be greatly appreciated

View Replies !    View Related
Help In Keeping The Leading Zero
Hi,

I know that this is a fairly routine question and has prob'ly been answered dozens of times in the past (yes I did search, but didn't find anything), but...

How do I get AS to keep the leading zero in a number?

i.e. I want my counter to return 01,02,03... instead of 1,2,3...

I checked the methods of the Math function and nothing rang a bell.

Thanks to anyone who can help.

Evan

View Replies !    View Related
Leading W/ MX Formatting...
I've got a text scroll box and would like more space between each sentence (leading).

Could someone explain what sort of code I would need to put in order to adjust the leading and where it would go?

Thanks!

View Replies !    View Related
Text Leading
Is this true....text leading controls the spacing between lines of text???

Thanks

Rishad

View Replies !    View Related
Leading In Text?
Hello,
i have a flash movie with various paragraphs of text , the text size is identical in every box (12 pt) the kerning is the same (1) but, for some reason the leading is different in one of the paragraphs, the text is very tight while it is loose in the other 5,,,

eg.. other 5

text
space
space
text

eg...weird 1

text
space
text

evrything is identical, how could one possibly have more leading than the others? Thier is no leading adjustment is flash MX that i know of, any help please...

View Replies !    View Related
HtmlText Leading And XML
I'm importing a restaurants menu written in XML but it seems it is adding a few extra hard returns between nodes.

If I use a couple lines like this


Code:
<dish4>
Gourmet Pizzas with Basil Pesto, Mozzarella, and Goat Cheese Tomato Sauce also available
</dish4>
<dish5>
Chicken Satay with Toasted Coconut, Almonds and a Ginger Soy Dipping Sauce
</dish5>


There will be two hard returns between each entry. How do I change that?

View Replies !    View Related
Text Leading
Is there any way to adjust leading in text in any version of Flash?

View Replies !    View Related
Leading In A Text Box?
I cant figure out how to change the leading on a text box? Like it keeps double spacing my lines, how do i resolve this?

Joel

View Replies !    View Related
Leading Not Working
Can anyone tell me why leading will not work?? I've tried setTextFormat and setNewTextFormat and to no avail neither are working. Here is my function applying the new format.

ActionScript Code:
function loadVideo(itemID)
{
    TweenMax.to(_parent.thumbwin,1,{_x:-800, autoAlpha:0, ease:Expo.easeOut});
    TweenMax.to(_parent.vidwin,1,{_x:2, ease:Expo.easeOut});
    var mc = _parent.vidwin;
    var flv = xml.firstChild.childNodes[itemID].attributes.flv;
    mc.ns.play(flv);
    var title = xml.firstChild.childNodes[itemID].childNodes[0].firstChild.nodeValue;
    var subtitle = xml.firstChild.childNodes[itemID].childNodes[1].firstChild.nodeValue;
    mc.titletxt = title;
    mc.subtxt = subtitle;
   
    //Set the format
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.leading = -20;
    mc.title.autoSize = true;
    mc.vidwin.subtitle.autoSize = true;
    mc.title.setTextFormat(my_fmt);
}

View Replies !    View Related
Leading In Flash
anyone know how to set minus leading in a dynamic text box created with actionscript?

View Replies !    View Related
Remove Leading Zero= NaN?
Code:
//gasupdateArray = new Array();
//for(p = 0;p < 100;p++){
Chkgas= 12/06/2005 //Chkgas= _root.CMDB.data["gas:" + p][5];
//gasupdateArray.push(Chkgas);
splitdate =Chkgas.split ("/");

gasday = splitdate.slice (1,2);
gasdaynum = Number(gasday);
gasday=gasdaynum
this array is nothing more than dates in mm/dd/yyyy format
ive commented it as it does not really pertain to the problem
ive made chkgas equal to one of the problem dates

gasday when a leading zero exists can not be read as the matching value i want it to be
the format it should be is 1,2,3 and not 01,02,03 the leading zero is the problem
ive tried everything

gasday in turn uses tell target to load the movieclip numbers+x to load
the leading zero then makes the tell target numbers+01 and so on



Code:
for(i=0;i<=yourstring.length-1;i++) {
if (yourstring.charAt(i) == '0') {
yourstring = yourstring.concat(yourstring.slice(0,i),yourstring.slice(i+1))
}
}
doesnt work either


plz help thx in advance

View Replies !    View Related
Text Leading
I have a dynamic text box that displays a string variable that often wraps to multiple lines.

How do I adjust the vertical spacing between text lines? I think this is called "text leading" (or "leeding")?

Nothing to control this appears in the properties box (in CS3). Is is possible to do with ActionScipt.

Anyone know if it is possible?

View Replies !    View Related
Help Leading To Next Frame
I made a little movieclip animation of traveling circles and there is a btn that the user pushes to set this off and then when this finishes i want the user to end up on frame 2. i know how to make a button go to a frame with "gotoAndStop" etc but how do i make the little animation play first and then it leads to frame2?
I appreciate any help!

-O

View Replies !    View Related
Leading Not Working
Can anyone tell me why leading will not work?? I've tried setTextFormat and setNewTextFormat and to no avail neither are working. Here is my function applying the new format.

ActionScript Code:
function loadVideo(itemID){    TweenMax.to(_parent.thumbwin,1,{_x:-800, autoAlpha:0, ease:Expo.easeOut});    TweenMax.to(_parent.vidwin,1,{_x:2, ease:Expo.easeOut});    var mc = _parent.vidwin;    var flv = xml.firstChild.childNodes[itemID].attributes.flv;    mc.ns.play(flv);    var title = xml.firstChild.childNodes[itemID].childNodes[0].firstChild.nodeValue;    var subtitle = xml.firstChild.childNodes[itemID].childNodes[1].firstChild.nodeValue;    mc.titletxt = title;    mc.subtxt = subtitle;        //Set the format    var my_fmt:TextFormat = new TextFormat();    my_fmt.leading = -20;    mc.title.autoSize = true;    mc.vidwin.subtitle.autoSize = true;    mc.title.setTextFormat(my_fmt);}

View Replies !    View Related
Text Formatting (Leading)
Hi,

I can't seem to be able to set the leading of dynamic text field to a negative leading using the textformat object.... anybody out there with the know how of this? thank you

View Replies !    View Related
[CS3] LoadVariables Leading To Insanity
Situation: On the satge there is a large image of a map. This map is a movieclip, instance name 'map'. Inside this movieclip there is an invisble button over a certain location. The 'over' frame of this movieclip contains a box with information about that are so it will appear when the area is moused over.

I want to load variables from an external text file into the information box. The dynamic text fields have the var field set to the text file variable names. The text file looks like this:


Code:
&jh_base_name=Mezcal&jh_total_uploads=28647&jh_your_uploads=4&jh_upload_time=15-03-2008
&wp_base_name=WheyPat&wp_total_uploads=39865&wp_your_uploads=7&wp_upload_time=19-03-2008
and it is called data.txt

The frame of the main movie that contains all ths has the line:
loadVariables("data.txt","map");

None of the variable appear though.

What's driving me mad is that, to test this, I created a new file; created a movieclip;created a button within the movieclip;created the same text fields on the 'over' frame AND IT WORKS.

What is my file doing different? I can't work out what's stopping the variables getting through

View Replies !    View Related
Leading Font Attribute
Hi,

I would like to know if the Leading (space between lines adjustment) was removed from Flash Professional 8? I remember in flash 7 this option was in the properties panel, but now I did not find this. Thank you for your attention.

View Replies !    View Related
Line Space (leading) And CSS
Hello,

Is there a way to control line spacing (leading) when loading a CSS file as a styleSheet for a dynamic textbox?

Please note the following: The CSS property "line-height" is unsupported by in Actionscript 2.0.
There is a textformat property called "leading" that controls line spacing, but setTextFormat() has no effect once a styleSheet is set.


Thanks!

View Replies !    View Related
Leading On Dynamic Text
is it possible to change the line spacing or leading of a multiline text fiels using createtextfield?

also is there a way to alias dynamic text?

View Replies !    View Related
TextFormat Leading Has No Effect?
I'm trying to control line spacing in a dynamic TextField. Changing the leading property doesn't seem to have any effect.
var descFormat:TextFormat = new TextFormat();
descFormat.leading = 50;
myText.setNewTextFormat(descFormat);

Thanks for any help with this.

View Replies !    View Related
Buttons Leading To Different Frames...
I have a few buttons, each with the actionscript of

this.gotoAndStop (frame);

and when I test out my project I get this in output :
**Error** Scene=Scene 1, layer=more1, frame=3:Line 1: Statement must appear within on handler
this.gotoAndStop (2);
**Error** Scene=Scene 1, layer=more2, frame=4:Line 1: Statement must appear within on handler
this.gotoAndStop (3);
**Error** Scene=Scene 1, layer=back1, frame=4:Line 1: Statement must appear within on handler
this.gotoAndStop (1);
**Error** Scene=Scene 1, layer=more3, frame=5:Line 1: Statement must appear within on handler
this.gotoAndStop (4);
**Error** Scene=Scene 1, layer=back2, frame=5:Line 1: Statement must appear within on handler
this.gotoAndStop (2);
**Error** Scene=Scene 1, layer=back3, frame=6:Line 1: Statement must appear within on handler
this.gotoAndStop (3);
Total ActionScript Errors: 6 Reported Errors: 6

Wondering what this means and how to fix it, thanks!

View Replies !    View Related
Applying New Leading Value To Textfield
I have a textfield that I'm using for both plain text (loadVariables) and XML. I need to be able to adjust the leading (space between lines of text) for the XML. Does anyone know of a way to change this value on the fly? Otherwise, I'm stuck using separate textfields and turning visibility on and off. That sucks. So far, I can't find a way to even apply leading changes to XML. It only seems to work on embedded text. Btw, I'm using Flash MX 2004.


Code:
var myFormatter:TextFormat = new TextFormat();
myFormatter.leading = 10;
this.createTextField("message_txt", 1, 100, 100, 380, 130);
message_txt.multiline = true;
message_txt.wordWrap = true;
message_txt.border = true;
message_txt.html = true;
message_txt.text = "This is my first textfield object test - leading is set to 10. This is my first textfield object test - leading is set to 10.";
//loadNewsXML(2006); // Leading doesn't apply to XML
message_txt.setTextFormat(myFormatter);

View Replies !    View Related
Dynamic Text Leading
Hi. I am trying to control the leading of a paragraph of dynamic text that is loaded from an XML file. The problem is that I would like to have different leading on different lines within the same text field.

What is the best way to do this? I have thought of changing the leading dynamically but there is no way to know when the line breaks (still) and even if there was, you can only change the leading for an entire text field, not change it at run time and each line stays with the leading you want...

The other solution is to create a text field for each line of text. I know how to do this, but I would like a sure-fire way of filling the whole line of text with not too many characters and not too less... Also since the xml data has html tags I would have to count how many characters, but not count characters within "<" and ">" ... it's too complicated! Whats the best way of approaching this?

View Replies !    View Related
Buttons Leading To Different Frames...
I have a few buttons, each with the actionscript of

this.gotoAndStop (frame);

and when I test out my project I get this in output :
**Error** Scene=Scene 1, layer=more1, frame=3:Line 1: Statement must appear within on handler
this.gotoAndStop (2);
**Error** Scene=Scene 1, layer=more2, frame=4:Line 1: Statement must appear within on handler
this.gotoAndStop (3);
**Error** Scene=Scene 1, layer=back1, frame=4:Line 1: Statement must appear within on handler
this.gotoAndStop (1);
**Error** Scene=Scene 1, layer=more3, frame=5:Line 1: Statement must appear within on handler
this.gotoAndStop (4);
**Error** Scene=Scene 1, layer=back2, frame=5:Line 1: Statement must appear within on handler
this.gotoAndStop (2);
**Error** Scene=Scene 1, layer=back3, frame=6:Line 1: Statement must appear within on handler
this.gotoAndStop (3);
Total ActionScript Errors: 6 Reported Errors: 6

Wondering what this means and how to fix it, thanks!

View Replies !    View Related
Type Leading In Flash?
How do you change the type leading of pixel fonts within Flash? Or any type of font for that matter.

Can it be done?
(If not, Macromedia should be ashamed)

View Replies !    View Related
Dynamic HtmlText Leading Possible?
Ok, I´ve searched this forum, but I couldn´t find any answer to my problem.

I have a movie that creates an empty text field.


ActionScript Code:
txt.html = true;
txt.multiline = true;
txt.wordWrap = true;
txt.condenseWhite = true;
txt.autoSize = "left";
txt.selectable = false;
txt.embedFonts = true;


How can I change it´s leading (line spacing)?

I´ve tried:


ActionScript Code:
var my_fmt:TextFormat = new TextFormat();
my_fmt.leading = 20;
txt.setTextFormat(my_fmt);


...with no luck...

View Replies !    View Related
Text Field Leading
Hi guys.....

I have created a textfield using as:

"_root.createTextField(blah blah blah etc.."

My question/problem is that if i set the text type to "input" I can't seem to change the leading of the text.

I tried changing the type to "dynamic" and the leading seemed to work fine!

As this is for a contact form, i need the text box to be "input".

Is there any way around this?

Thanks for your time

View Replies !    View Related
Inconsistent Font Leading In Flash
I am running Flash MX on Mac OS 9.1.

Sometimes if I have the leading of a block of type set at anything other than the default, when I open the Flash file the leading is tighter than it should be. Sometimes, if I go in and just add a space, the type suddenly jumps back the way it was supposed to be, sometimes not. I find myself constantly changing leading values over and over.

Has anyone else ever experienced this problem? And if so, what do I do about it?

View Replies !    View Related
Dynamic Text Box Leading Problem.
Hi all,

I use a dynamic text box to create a digital clock. The time is input with the help of actionscript.

BUT i cant seem to edit the leading of the output time.It's set at 0 and cant be edited. Is there any script that i can add to increase the leading?

If it will help this is the script i use for my digital clock:
---------------------------------------------------------------------------------------------------------------------------
onClipEvent (enterFrame) {
myTime = new Date();
nSeconds = myTime.getSeconds();
nMinutes = myTime.getMinutes();
nHours = myTime.getHours();
if (hours>=24) {
ampm = "am";
} else {
ampm = "pm";
}
if (hours>=23) {
nHours = nHours-24;
}
if (length(nMinutes) == 1) {
nHinutes = "0"+nMinutes;
}
if (length(nSeconds) == 1) {
nSeconds = "0"+nSeconds;
}
nTime = nHours+":"+nMinutes+":"+nSeconds+" ";
}
----------------------------------------------------------------------------------------------------------------

Thanks alot...i need to slove this.

View Replies !    View Related
::: Hit Test Leading To Movie Clip :::
I want to put a hit test on two objects, but I don’t know the first thing about the hit test action. I was hoping someone could explain or just give me a basic code.
I have two symbols, first is named ‘guy’ and the second is called ‘dynamite’. I want the movie to jump to frame 2 of scene 1 when they collide, ‘guy’ is going to be moving into ‘dynamite’.
Please could anyone enlighten me in the slightest / post a script / or explain what I need to do?
It would be most appreciated as I am new and puzzled!

www.callumations.tk
www.animootions.tk

View Replies !    View Related
Text Wrapping With Leading Hypen
Posted this over on flashcoders, but no response, so thought I'd see if anyone here has any insight.

I'm seeing something undesirable under some conditions with wrapping text and hyphenated words. Flash is breaking the line on the hyphen (good), but the hyphen ends up being the first character of the next line (bad). It's interesting, because flash will do the right thing when the second part of the hyphenated word just barely doesn't fit. Add a little more space and it breaks wrong. Plus, this is only exhibited when displaying the swf in the browser (IE 6.0.288, W2K, SP2, FP 7,0,14,0).

For our project we are not embedding font outlines, and don't want to (for reasons of localization, character crispness, bandwidth, etc.). Also it is a requirement that we publish to Flash 6. Here's a code snippet which exhibits the issue:

/////////////

stop();
var textVal = "Mike was just concerned about Miriam's well-being, he...";

var tf_fmt = new TextFormat();
tf_fmt.font = "Tahoma";
tf_fmt.size = 12;

var wstart = 258;
var wend = 259;

for (w = wstart, y = 10; w <= wend; w++, y += 50) {
var tfName = "tf" + y + "_txt";
var tfIndex = "tf" + y + "Index_txt";
_root.createTextField (tfName, y, 40, y, w, 19);
_root.createTextField (tfIndex, y*100, 0, y, 30, 20);
_root[tfIndex].text = w;

with (_root[tfName]) {
wordWrap = true;
border = true;
autosize = "left";
text = textVal;
setTextFormat (tf_fmt);
/*
_height++;
dummyVar = textHeight;
_height--;
*/
}
}

/////////////

The commented out code at the bottom fixes another problem with leading spaces in TextField's. With hope I had tried it here, but it had no effect .

As an added bonus mystery, when I publish this to Flash 7 player, the TextFields only display a single line. Publish to Flash 6 and all lines are displayed.

Any insights to solutions to these two problems (particularly the first one)? It will be a very undesirable solution in the actual project to manually break the lines, because there the text is being re-used in many different contexts.

Thanks for any insight on this!


Ward Ruth

View Replies !    View Related
How Do You Increase The Text Leading In Flash 8?
How can you increase the text leading in Flash 8? Flash MX had a text format option. Thanks for any help!

View Replies !    View Related
[F8] Leading Problem In Dynamic Text
Hi!

I'm having an 'interesting' problem with a dynamic text field. As can be seen in the attached PNG, the multi-line text field is placing all the text on the same line - ie. there is no line spacing at all. The text is loading from a bit of XML.

I've tried setting this with textformat, changing the font, html setting both on and off, a new textbox with different naming and was wondering if anyone could suggest what might be going astray here.

Many thanks

Neale

View Replies !    View Related
Leading Zeros In SlideShow Problem
The following script will not display the .jpg photo's when they are numbered with 'leading zeros' 001.jpg, 002.jpg etc.


Code:
i++;
if ( i > max_pictures) {
i = 1;
}
picture = i+".jpg";
loadMovie(picture,_root.viewer);



Can anyone please tell me why or help with a workaround?
I can renumber my photo's but that also means too many changes to existing work so would prefer not to renumber.

Regards,
LexyCon

View Replies !    View Related
PC To MAC Font Registration And Leading Problem
Hi,

I've had a good look everywhere but can't find a decent solution to this problem and it seems a lot of people are experiencing it

When working on flash files between mac and PC (the exact truetype font is installed on both machines) the font will display differently.

There used to be a solution it seems, but that was 4 years ago:

http://www.quasimondo.com/archives/000386.php

Any ideas?

thanks

View Replies !    View Related
Can't Control Leading In Created TextField
So I am finally starting to work on creating dynamic text fields at runtime. And so far, the only hiccup that I've encountered is leading (line spacing). As you can see below, I've created a function for setting up the attibutes of a created text field. For whatever reason, the leading feature isn't working. It doesn't matter what number I put in after the equal sign, it doesn't affect a thing.

The fonts being used are embedded in the library. The text is html pulling from an external CSS. What else do I need to do to control the leading?

(thanks for your help)

function setUpTextField(myText:TextField) {
currentTextField = myText;
currentTextField.embedFonts = true;
currentTextField.multiline = true;
currentTextField.selectable = false;
currentTextField.wordWrap = true;
currentTextField.html = true;
currentTextField.styleSheet = xpakCSS;
currentTextField.antiAliasType = "advanced";
currentTextField.leading = 4;
}

View Replies !    View Related
Button Not Leading To Correct Frame
I am making a game, and there is a point where if you hit a spike, it directs to frame three. I made a button, then made the button a movie clip. In the movie clip, the spike moves back and forth. Then on the button, I added

on (rollOver) {
gotoAndPlay (3)
}

So the movement works fine, the spike goes back and forth. But when you hit the spike, it goes to frame three of the movie clip timeline, not the entire movie timeline. Is there any way to get around this?

View Replies !    View Related
Leading Wont Work If AutoSize Is On...
Anyone know why I cant apply leading to a text field if autoSize is on? I am using a new TextFormat and applying the leading after I autoSize...


ActionScript Code:
....//some other code above you dont need to see
    var my_fmt:TextFormat = new TextFormat();
    mc.title.autoSize = true;
    mc.vidwin.subtitle.autoSize = true;
    my_fmt.leading = 2;
    mc.title.setTextFormat(my_fmt);

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved