ActionScript 3.0 :: Bug With Part Of Text Getting Chopped Off?
Apr 15, 2009I've been getting this on and off... the last letter of some text gets chopped verticallyTake a look at the last letter of "PORTFOLIO" and "ABOUTUS" here.
View 3 RepliesI've been getting this on and off... the last letter of some text gets chopped verticallyTake a look at the last letter of "PORTFOLIO" and "ABOUTUS" here.
View 3 RepliesCan someone tell me why the last letter of text in some of my movie clip buttons is chopped off? Take a look at the URL below and click on the Demos button...you will see "promo" and "narration" are slightly chopped off. When I go into the movie clip there in nothing wrong and the mask I am using is plenty big enough - the whole line of text should be showing.url...
View 4 RepliesWhy the last letter of text in some of my movie clip buttons is chopped off? Take a look at the URL below and click on the Demos button...you will see "promo" and "narration" are slightly chopped off. When I go into the movie clip there in nothing wrong and the mask I am using is plenty big enough - the whole line of text should be showing.[url]...
View 2 Replieswhen i use the following tree renderer class the the informtions in the tree gets chopped. The PLTree class is as follows:
import flash.events.Event;
import mx.events.ScrollEvent;
import mx.controls.Tree;
[Code]....
make one word in a dynamic text field bold WITHOUT using the htmlText property? Everything I have read seems to indicate that you can only make the whole field bold.
View 3 RepliesI would like to use a simple if statement.
if(filenametext!=".jpg"){
}
else{ bla bla bla}
[code]......
I would like to high-lite part of my text, but i don't find where to do it, other features like under line, etc.
View 1 RepliesTheProfileRoot.EngineeringText.text = "Level " + PlayerEngineerLevel + " Engineer - level up in " + PlayerReqEngineer + " xp"; I want the "Level " + PlayerEngineerLevel to be bold. And the rest to be plain.
View 2 RepliesI am having this weird problem when I load an XML document.The last part of the text doesn't 'wrap', if that is the proper english expression; the lines don't go to the next line they just get lost. You can see what I mean in this link, by clicking on the Kaiser Chiefs item/photo/text, and then scroll down in the article. However, when you go back to home and do it again, the text looks allright! But that is too late of course.
link
[AS]
function makeArtikel(txt, a, b, c) {
[code].....
I have an html text being brought in from XML to a dynamic text field. The html text has a <br> in it. I need an If statement that can detect if the text has the "<br>" in it or now. How do I do that?
View 8 RepliesDoes anyone know if it is possible to update a piece of text in an textbox where html is enabled?
For example if the text inside an html textfield is:
Line 1 Lorem ipsem, <b>Lorem</b> ipsem,
Line 2 Lorem ipsem, Lorem ipsem,Line 3 Lorem ipsem, Lorem ipsem.
And if i replace the text on line 2 and make it bold without effecting line 1.
in a flash template i found several buttons with almost the same action script code. on pressing the button a window popup with different text (for each button a unique text). the following code is in the code section of the buttons, only the two last codelines are different for each button.
[Code]...
so i think that the input of the unique text for each button is handled in the last line "_root.READ = 22". i also found in the bibliothek the belonging text parts. my problem now is that i dont know where the connection is set between the text part and the array/variable READ. in this case the connection is 22, but i dont found any property in the text part or in the property of the button where the connection is set to 22. i use flash cs4.
I've created a 3 state button, then imported it to a movie clip. I want to use a set of 6 of the identical buttons as navigation controls, so I've created 6 instances all named uniquely. My problem seems terribly simple, but I can't find an answer anywhere and I've spent hours going in circles.
No matter how I put a text label on the button (right now it is built into the button as dynamic text), when running the final file when the user's mouse is on the text the button cannot be clicked - it disables the button. So I have 6 buttons that cannot be clicked unless the user clicks right on the edge of the button (not on any part of the text). Is there not a simple way to overcome this? How do I make the text part of the button so it is clickable as well?
I'm working on an auto complete Input Text field. The user starts to type the state name "Pennsylvania" and when they reach 4 letters the box auto completes. My code is as follows and works:
[Code]...
Instead of auto completing I want the "sylvania" of Pennsylvania to be added to the text box but highlighted. So if the user keeps typing the "sylvania" part will be deleted or if they press the right arrow key the "sylvania" part will be added. Similar to how Google's auto complete works.
I have a dynamic text field(DTF) consisting of many lines and DTF has vertical auto-scroll, here we say I have these three lines:
L1.....
L2.....
L3.....
Then I have three separate movie clips( originally images, say img1, img2, and img3).these images are added by as3 on the scrren, above my DTF.
Such this:
L1.......img1
L2.......img2
L3.......img3
How I can croll down my DTF such taht these images move accordingly with their corresponding text lines?For example while scrolling down my DTF then img1 should follow the same y-position as L1, and so on.
I am using actionsript 3 and flex 3.5. Is there any way to change the font color of a part of text in TextArea control without using "htmlText" property?
For example I have a string "dog, cat, fish". I want to change the color of "cat" word to red.
How do you make some parts of spark.components.RichText bold?[code]...
View 4 RepliesTake a look at this demo, how do they accomplish the Inline Changes feature? To me it looks like they are floating a movieclip over the textarea. What I can't figure out is how they anchored the movieclip to stay in the correct position. If you type something before the movieclip it moves position along with the text, the movieclips even move to the next line when the text word wraps. Does anyone have an idea?
View 1 RepliesThe update to the Dynamic Text Box is always one character behind what is entered into the TextInput component. For instance my name is Shawn, if I enter "Shawn" into the Text Input the Dynamic Text Boxes will display "Shaw". It will only enter the "n" if I type another character then backspace it, deleting the extra character.
View 7 RepliesI need to underline particular character of the tab header(like Account) A has to be underlined. We are using tab navigator and canvas container controls to create the tabs in our screen( Canvas label has to be underlined).
View 1 RepliesI have a program and use there dynamic text. For this text i use special font CAMPFIRE.ttf.A lot of users dont have this font on their pc but i want then they open my .swf and see this font.For this i use next code:
var fooFont:foo = new foo();
var format:TextFormat = new TextFormat();
format.font=fooFont.fontName;[code]................
but i dont see my dynamic text correct. I see strange space on top, also dont see bottom part of text.pic preview: All code here:
package {[code].........
I'm trying to make it so that when a user inputs the correct word an event happens. It almost works except that the event doesn't fire until the NEXT keystroke. Is there a way to test for the word AFTER the keystroke has become part of WriteInOneText.text, without adding a separate button or anything? Here's the code:
[Code]...
Ok perhaps ive bitten off too much here...I know you are not supposed to parse xml/html to regex but the thing is there just arent many other options.Im using AS3.im parsing the source of textflowlayout text to a different format.
string to parse :
< fontFamily=Verdana encoding=unicode fontWeight="bold"> some text < fontFamily=Verdana encoding=unicode > some text < fontFamily=Arial encoding=unicode fontStyle="italic"> some text < fontFamily=Arial encoding=unicode fontWeight="bold" fontStyle="italic"> some text
what i really need is:
< fontname=Verdanabold encoding=unicode> some text < fontname=Verdana encoding=unicode > some text < fontname=Arialitalic encoding=unicode > some text < fontname=Arialbolditalic encoding=unicode > some text
logically i think of it as taking apart the string into substrings
checking if there are fontWeight or fontStyle in the substring
if there is then appending the font name with the weight or style so so that the font name becomes font NameWeightStyle.then rebuilding the string.The font could be any font with variouse styles or weights..so far:
pattern = /<(.*?)>/gixsm;
var matches:Object = pattern.exec(str);
var finalstring:String = "";[code]...........
I'am looking for a flv/video player which allow to seek for not loaded part of the video,just like on youtube.
View 1 RepliesHere is the code I have in my flash
System.useCodepage = true;
send_btn.onRelease = function() {
my_vars = new LoadVars();
[code]....
I need help figuring out how to add the PHP part, I have no idea about how to script it. I looked over some tutorials but I just don't understand it. I got this code from when I was in college, I used it before but I can't find the original PHPcode I used. It's for my website, just a simple email form with a name, email, and message
I am using a template that the buttons have actionscript in them already. I tried replacing "get url" with "gotoAndPlay" a certain frame. I need the button to go to frame 113 after i click on this button.
on (rollOver) {
if (_root.link<>p) {
gotoAndPlay("s1");
[Code].....
I'm constructing a site, at least I'm trying :P I made a part with photoshop but now I'm continuing in iweb because I thought oh it's ease to insert a photo page, because that's the only reason. I'm a little bit a noob in html and php and so on and also in flash so that was the solution at least that was wath I taught... :roll: this is how it looks in iweb:that is how it should look on the internet, it does as you can see here:but when I click on a picture to enlarge normally you should get a nice screen but I have this:As you can see that is a problem, everything moved and so on
View 1 RepliesOk i have been making a website and i need to put a preloader in that loads my website. I have downloaded 3 different preloader and replaced the pic that they had in with my own and when i do that it either no longer works or it has a white screen until about 50% then it does work! WTH is going on??????
View 7 RepliesWhat i am trying to do is when i click on a part of an img to delete it.[code]i read on setpixels and getpixels but this did ot help.
View 2 RepliesI have the attached image of a bioreactor. I want to animate the area marked with the red outline (and a cross) to be filled with a bluish transparent liquid. I am trying to create an animation for students to show how the residue in the bioreactor behaves and I have to show the animation in a real picture (cant draw).
View 9 Replies