Text Disappears After Converting To Dynamic Box?
Sep 10, 2009Text box instance is labelled,
Property set to 'Dynamic Text'
Behavior set to 'MultiLine'
Text set in Actionscript:
[code].....
Text box instance is labelled,
Property set to 'Dynamic Text'
Behavior set to 'MultiLine'
Text set in Actionscript:
[code].....
Can someone explain why the text of a dynamic text object disappears at runtime when rotated?It happened when I rotated a MovieClip object via actionscript that contained a dynamic text object. So, to test whether this happens all the time, I created a movie clip again with a dynamic text object in it, populated the dynamic text object with a single letter, and rotated it by hand and ran the movie - the letter disappeared.
LOL in a happy, rare accident, I discovered the answer myself. Page 432 of the Flash 8 Actionscript Bible says, "Aside from just allowing text to look the way you want it to look, embedded fonts actually enable your Textfield objects to do some things they wouldn't otherwise do. For example ... a TextField object that uses device fonts (nonembedded fonts) cannot be rotated nor can you change the alpha. But once you embed the font, you can do both of these things."
How: (for dynamic or input text objects) clicking the Embed button in the Property inspector.Note, this will increase the size of your swf. Just embedding the lowercase and uppercase letters from a-z of one font increased the swf filesize from 3-9KB.
I'm using Flash MX to create a website. The user navigates between different scenes/frames using buttons, just like moving to different pages in html (except the "pages" are different parts of the main movie's timeline).The problem I'm having is that on two embedded movie clips there are text boxes which dynamically load html-formatted text files (news updates for different topics). When I run the movie, both of these "pages"/"frames" work beautifully, but after the first time, when I come back to either of them, the dynamic text boxes' scrollbars have disappeared and the up/down scroll buttons don't work. By clicking on the loaded text and dragging I can force it to scroll, so all the content is there, but the controls are gone.
I've been searching forums for a couple of hours on this now and the only thing I found was someone found a similar issue on CS3 which required giving scrollbars instance names (which I did) and then inserting Actionscript telling them to update--and that is a bit beyond me. Is there something I have to type in when the text loads to get it to do that?The script I'm using to load the text into the fields is as basic as it gets (and obviously cut and pasted from somewhere else):
loadText = new loadVars();
loadText.load("history.txt");
//creating the loadVarsText function
[code]....
I'm pulling in some text from xml into a dynamic textfield on the timeline.All is working groovy, until I tried to put a shape (just a rectangle of color) under the the textfield in the timeline. It turns out this shape completely BLOCKS the text, even though the shape is on a layer UNDER the dynamic textbox..
View 8 RepliesI am making some progress with an interactive poetry projectearlier.Unfortunately I have another problem which I can't seem to solve. In the project I create 49 textfields in a 7x7 grid. The properties are stored in an array. The code I have to do this works as intended.
var instances:Array = [];
for (var i:int = 0; i < 49; i++) {
var j_inst:TextField = new TextField();
[code].....
Well...I say it "disappears", but it may just be that there is no longer text inside the field.
I don't know if this is supposed to happen or not. Was it ever a headache trying to narrow it down. I can't see why it would be intentional behavior, but here's the issue I've come across when working in Flash CS4:
When I have a dynamic text field on the timeline with an embedded bold font and then add another text field later with the same font with regular style instead of bold, if I try to update the dynamic text field's text, it disappears. I don't get errors when I try updating the text and I can pull the text back out of it, but it's no longer on-screen.
If I never include the second text field, or if it is a different font altogether, everything works like a charm. Also, it doesn't seem to matter if the second text field is static or dynamic.
I've attached an example. In the zip there are 3 files: The FLA, SWF, and Movie Report from Flash.
As it stands, for my project where I ran into this issue, I'm just using the regular instead of the bold style for the dynamic text field.
I have some dynamic text in an swf, that sits in an html doc, with the width & height set to 100%, in order to have the swf scale depending on screen size.Everything works really well apart from a dynamic text field (which pulls in slide numbers) which disappears or reappears depending on the size of the window or when the window is resized.
View 4 RepliesI'm sure this has been asked in some way or another a couple of times before, and sually the first response seems to be..."are your fonts embedded?" Yes, they are. I am using a couple of different tweening classes (it happens with all of them). Basically what I'm doing is a simple sliding in and sliding out animation via the x and y properties of a movieclip. It only happens to a few movieclips, but some (not all) of my dynamic textfields disappear when doing this. When I click in the area that they are supposed to be, it magically appears. I have even tried creating the masks dynamically to stop the bug with no luck. It is very sporadic, but does anyone know/have experience with how to solve this problem?
View 9 RepliesI have dynamic text inside a movieclip, that I can make it rotate.
the dynamic text properties are : anti-alias for anmations and I emdedded all characters.
When I click on the bold button the the text disappears.
bold_btn.addEventListener(MouseEvent.Click, on_bold);
function on_bold(e:MouseEvent):void
{
[Code].....
tried following the Embed Font example here: http:[url].... exactly with absolutely no results.When I add txtField.embedFonts, the text no longer shows up, and without embedFonts, the fonts are just Times New Roman or something. Regardless, the [Embed source="..."] syntax described in the example does not seem to work. Has ANYONE gotten Embed fonts to work in AS 3.0? Second, when I add wordwrap = true to a text field, the text disappears. (it used to work fine. It stopped around when I started trying to embed the fonts, but it doesn't work even if I remove all embed code.)
View 5 RepliesI'm having a little trouble using URL links in text. If I select a part of the text and give it a URL link (I'm using mailto: links here), strange things are happening to all the text in that text box at runtime in some cases the leading changes, other times some or all of the text disappears. But it only happens at runtime, so I have no way of knowing if or how to compensate. And simply removing the offending link or linked text doesn't fix the problem once the link has been created the only way to fix it is to create a new text box with no links.
View 4 RepliesI have a textfield that is dynamicly created which contains some text and has a textformat applied to it, which works fine, and I have my happy little text field.
the problem comes when I try to change the text and textformat after an event. I am doing it as so:
Code:
targ.getChildAt(2).setTextFormat(WoodTxtFmt.contentTitleSel)
targ.getChildAt(2).text = "back"
then the text becomes invisible. I know it is changed because once I rollover the container movieclip, the text appears.
I tried to dispatch a rollover event after I change the text, but no dice.
For some reason when I rotate text it disappears from the swf when i test movie!!?
View 2 RepliesI am new to CS4 and I have an issue with writing text on frames. I am using the text tool to write a paragraph of text which I type in to word to do spell check etc. Then I transfer to Flash and using the text tool paste it in. Now as soon as I let go of the mouse the text disappears but when I click on the text again it reappears why?
View 1 RepliesI based the following on an old code I barely understood while creating it, and decided to begin messing with it again in my "learn japanese kanji" minigame. When my sprite contacts a movieclip, (like a door or sign), I want the text screen to appear, and disappear when they are no longer in contact.
The code below almost does that. When the sprite contacts the movieclip (contact code at the bottom of this post), the textbox appears, the text appears, and everything works... for about a split second, and then the text - but not the box, disappears. I think disappearing text has something to do with being loaded through an on EnterFrame, but I don't understand why the box remains.
[Code]....
I have a map application where booth numbers are being auto-generated for the booths. In the map controls, you can rotate the map 90 degrees and when the map is at 0 degrees of rotation, the booth numbers show up just fine. However, at -90, -180 and 90 the text is gone. Here's the map[URL] Here's the function used to generate the text fields:
[Code]....
I recently upgraded to flashplayer 11 and found that it made all the text on my buttons and dynamic text fields disappear. I noticed that you can see it when it first load and then vanishes. I can't find any documentation on this. Does anyone know how to fix?
View 2 RepliesI'm using an external text file and css along with a scrollbar. Everything works fine till I start using the styles in my text document and then the text dissapears. And my text is supposed to be white, the background of the file is blue.
Here is the code for my scroll bar
Code:
stop();
bar.useHandCursor = dragger.useHandCursor=false;
space = 20;
[Code]......
I have a dynamic textbox loading htmltext. In a layer above this I have another dynamic textbox loading some more htmltext. The first box displays the text fine, but when the second box slides into place (as part of an interface animation) the text in first box disappears. I switched the text in the first box to non-html text and it works fine, however, it needs to be html text.
View 3 RepliesI have a photoGallery.swf, with an xml-generated menu.Every link will load a img.swf listed in the xml file.The img.swf is fairly simple: 1 image in the bg, 1 small txt field that loads some external text.My problem = while the img.swf displays correctly when viewed alone, the text disappears when I load it from the photoGallery. Actually, I can even say that I see the text during the glint of an eye, less than a second, when I load the swf from its link in the photoGallery's menu. So I really don't get why it disappears.Another thing, if I run my mouse over the area where the text field is supposed to be I can see the cursor change.[code]
View 2 RepliesYou've seen those Input Text Fields on web sites that have titles on them, i.e. Name, Email, Message, in the Text field itself. Then, when you click on the the text field to type something in, the "title" disappears and you can type your info in. Perfect example: [URL] (Under "contact")
View 14 RepliesI've got a project that currently uses classic dynamic text fields that pull in information from an XML file. The text contains a 'keyword' that's referenced in the XML, that can be situated anywhere in the complete sentence. This keyword needs to be a different colour and font size... but as I said, it can appear anywhere.
Currently this works by getting the keyword from the XML, finding its length, finding the index of where it starts, splicing the main string, and then setting TextFormat to the number of chars in keyword, which changes the font size and colour for just that keyword in the sentence.
This works great for the classic dynamic text boxes. It doesn't however work with TLF text, it just applies the new format to the entire text field. I don't have any experience with TLF text as I've just upgraded to CS5 and now need to make this work in Hebrew.The code snippet for the keyword colour change looks like this:Where screen01Norm & screen01Key are things pulled from XML & screen_01.txt_box_combined is the text field.
var newFormat:TextFormat = new TextFormat();
newFormat.color = 0x319aca;
newFormat.size = 50;
[code]....
I am making a flash movie, using text moving across the screen in semi transparency, sort of as a background. In the center is a white box, and content within that box. The semi transparent text scrolls back and forth throughout the movie. But when the movie loops back to the beginning , the white box and content within it vanish for a second...then reappear as the movie begins again. I don't want that microsecond vanish to happen but I don't know how to prevent it.
View 3 RepliesI have a simple static text MovieClip that is masked in the timeline the traditional way - layer above the text layer has a rectangle and that layer is set to mask. This looks fine in the timeline while authoring. As soon as I publish it as Flash 9, the text disappears
View 3 RepliesI have a site that externally loads several txt files that are formatted with html. They work fine until I go to a certain section within my site, then try to go back to another section and the headlines of the text disapear. Check out my site to see what I mean. Go to home, then news, then press. In the text boxes you will be orange headlines but then go to contact and try to go back to home, news or press....and all the orange headlines have disappeared. [URL]
View 1 Replies[Code].....
Text on the box disappears on mouseOver. And also mouseOver doesnt work well after all. how can i correct those
all of my text (which is created dynamically) disappears. But when I comment it out, it all reappears. Why is my code doing this and what can I do to fix it?
[Code]...
I wonder how you can get text in input textfields that dissappear when you click in them to write something. Something similar to what's on [URL] I understand how you get the text there with variables but not how you make it dissappear when you highlight them.
View 2 RepliesUsing regular font styles are fine such as Arial, Verdana and so forth but I tried using unicode font outlines inside an external text file for future use. This is what I have in the external text file:Code:Ive also set the file to unicode and set "render as html" in flash. My problem is when I load the textfile and the swf on my host, the text doesnt appear. It does appear but what happens is that the text appears for 1 second and disappears.This is the coding in the first frame of the main timeline:
Code:
loadText = new loadVars();
loadText.load("http://www.minimalistik.f2p.net/bobs.txt");
[code].....
I have faced a problem in Adobe Flash CS4. I have created a simple text box and set it to a vertical direction, I've rotated it to 90 degrees. It looks good in the FLA file but when I convert to SWF, the text box simply disappears. Other components of my animation remain as I have designed them.
View 1 Replies