ActionScript 3.0 :: Text Disappearing From Textfields?

Oct 12, 2009

I'm working on an interactive poetry project. I have 49 textfields displayed in a 7x7 grid. The properties are stored in an array. Here is the code for that. For the purposes of demonstration I place the character "S" as text in each field. This code works as intended.

var instances:Array = [];
for (var i:int = 0; i < 49; i++) {
var j_inst:TextField = new TextField();
j_inst.text = "S";

[code]....

The problem occurs when I want to change the text. When it's triggered the text simply disappears. I have no idea why and I'm running out of ideas. I've tried without the embedded font but to no avail. Changing other text properties like instances[j].x works but whenever I change the text I lose it.

function ChangeText(e:TimerEvent):void {
for (var j:int = 0; j < 49; j++) {
instances[j].text = "X";
}
}

View 7 Replies


Similar Posts:


Professional :: Text Disappearing After Publishing A .swf?

Dec 19, 2011

*Using Flash CS5 professional (AS3)*
 
I'm currently working on a LARGE flash presentation broken up into many small flash movies.  the files play fine in the timeline, but SOMETIMES when publishing as .swf, the text is not visible, but all the other objects and tweens play as normal.  My co-worker is also having this same issue, but we can not figure out why.  It seems random and does not happen with all of the files.   We are copying and pasting symbols from file to file.  i don't think that is the issue, though.  i wonder if anyone else is experiencing this or knows why.  causing LOTS of extra time spent remaking presentations. 

View 4 Replies

Actionscript 3.0 :: Disappearing The Link Text?

Feb 12, 2009

I am creating a map that has pop ups with country information. When a country is clicked, a box pops up with the country name, an overview of the area and a link. All the text is pulled in from an external XML doc. My problem is that the link only shows up on the first box (as soon as it clicks, it wont appear in other countries profiles).I don't receive any errors and the links work fine, just as long as they are the first to be clicked.

View 1 Replies

CS3 Drag Handles Disappearing Resizing Text?

Apr 9, 2009

I'm animating some text, I enlarge it by using free transform tool and drag the handles until my text covers the screen. Problem: the text is so large that the left and right drag handles disappear from the stage, I can only resize using the middle handles and this is not constraining my text the way I want it.

View 2 Replies

ActionScript 3.0 :: Autosized Dynamic Text Disappearing ?

Oct 13, 2009

I'm having issues with dynamic text disappearing under a specific circumstance. When the playhead enters the Photos frame the code below is executed. This code sets the text value of the linkTEXT textfield and adds a bitmap to the linkTHUMB mc. The code runs perfectly and everything is populated most of the time.

The exception... The website has 4 frames which it can navigate to (home, photos, order, contact). If I stay within the first three, each time I navigate to Photos the textfields and bitmaps will be populated and display correctly. However, if I navigate to the Contact page, either before or after I've already visited the Photos page, only the bitmaps will display.

Strangely enough, the textfields still trace their proper values. It also appears as if their parent movieclips are still in the display list since I get the hand cursor when I mouse over their x+y coordinates. If I trace the parent's numChildren property I can see the textfield is still a child.

So where is the text going, or why does it suddenly disappear? If the textfield is still there and it's on stage in the display list why isn't the text being displayed?

View 4 Replies

ActionScript 3.0 :: Text Loader Disappearing Under A Mask?

Oct 20, 2009

I created a loader class which creates a text pre loader and works fine until I add a mask over the images.Then the preloader doesn't display anymore. The preloader is called "progressOutput"

[Code]...

View 1 Replies

ActionScript 3.0 :: Disappearing Text On MouseOver Tween?

Jul 21, 2009

I have a linked movieclip in my library that contains a dynamic text field. I edit this text via my external class but when I tween my MC, the text just disappears !!

Code:
var goTo1:_goTo1= new _goTo1();
addChild(goTo1);
goTo1.id=0;
goTo1.buttonMode = true;

[code]....

View 4 Replies

Professional :: Disappearing Embedded Fonts - DYNAMIC TEXT

Apr 7, 2010

I have a static textfield using Myriad Pro bold font that, when set to STATIC TEXT works absolutely fine, in the correct font. If I set it to DYNAMIC TEXT and test the SWF, the text shows up as a system font; not Myriad Pro If I set it to EMBED CHARACTERS the text doesn't show up at all on ANY system, whether the font is installed or not.

I have tried adding the font to the Library and using that "Family" for Properties>Character in my dynamic text box, but get the same results as when I don't set that to EMBED CHARACTGERS. I've tried selecting the font for the textfield as both the standard OS Font, as well as the one with the Asterisk next to it, but get the same results both ways. The library font is set to "export for actionscript" and "on frame 1". I don't think it's an issue with the font not being available, as I'm able to see it when setting textfield to STATIC type, and I use the font in other CS4 products (Photoshop, etc.).

View 6 Replies

ActionScript 3.0 :: Dynamic Text Disappearing At Full Screen?

Sep 13, 2010

I have a .f4v on a layer using the FLVPlayback command. On top of that I have a dynamic text layer. It plays fine in a browser or at the exported resolution. When I use the command ("fullscreen", "true") or when I open the .swf and go full screen using CTRL-F the text disappears. I have removed the video and put the text on a solid background layer to determine it is the video causing this. I have also tried to convert the .f4v to a .flv and embed it in a .swf in multiple manners but the end result is always the same as the text disappearing.

View 0 Replies

ActionScript 2.0 :: Text Disappearing If Use One Font / It Shows In One Textbox

May 19, 2011

Ok, so i have this problem with text dissapearing if i use one font, it shows in one textbox, but the other ones are odd, they either show 0 or 1, or the first letter only, or nothing at all. What's the problem?In the beggining i tried to ignore the problem by changing the font or the font style, but now, it's becoming to ugly if i use too many different fonts.

View 9 Replies

ActionScript 3.0 :: Compare Dynamically Generated Textfields Text With Xml Text?

Mar 18, 2011

how to compare the text of dynamically generated textboxes with xml value. the instance name to the textboxes are assigned at runtime.

View 3 Replies

ActionScript 1/2 :: Mysteriously Disappearing From Text Out Of Scroller And Buttons Can Press Twice

Apr 11, 2009

The problem is: When I press my buttons twice, the text in the scroller disappears.Everything is set so that It shouldnt be possible to press the same button twice though.The situation in short is as follows. I have 4 scenes and 4 buttons, every button linking to respectively another scene / page. The buttons all are in movieclips. I have 4 different movieclips all containing all buttons. For the page movieclip the-button in the movieclip getsœswitched o by ungrouping it and so on, and so on.On every scene I put the movieclip, with the correct button switched of, on top, with thenction. The other movieclips are made invisible by the visible = true˜delete this.onEnterFrame; function.Im not a develloper but a graphic designer. Dont know much about AS2. I bought the photoslider and textscroller on FlashDen and thought d finnish of this project pretty quickly, but I thinking m almost there" for already many hours now.

View 3 Replies

ActionScript 2.0 :: Can't Set Text In Input Textfields?

Aug 26, 2010

I have an input textfield were I need to insert a number when it has focus and the user presses a button, like in a calculator. I have everything else working, the problem is thatinput1.text = anything;doesn't work, not for any of my 10 inputfields, like it does with my output fields (dynamic textfields)

View 4 Replies

ActionScript 2.0 :: Allocate Dyn. Text To Several Textfields?

May 9, 2008

I was wondering how i can prevent a scrollbar, so i was thinking about allocating the text to several dyn. textfield (depending on the size of the text)

View 3 Replies

IDE :: Text In Textfields Randomly Move?

Nov 2, 2009

This happends in a *quite heavy* flashproject at work. And what's even more interesting is that it doesn't happend every time. It seem's to be at random. What happends is that text in textfields would move ~1px in X or Y. Have anyone else encountered this?

I thought that it was the layout code that sometimes was updated but no luck with that. And it is not that the text is getting reset either. But it seem's to happend on mouse-input ( press / onRelease ).

This has been tested on different computers and it moved on all, nut in different ways.

View 5 Replies

Actionscript 3 :: Collision Detection For Text In Textfields?

Sep 14, 2011

Creating an application that will randomize signatures (textfields) on a page. Is there any way for collision detection to work with text in textfields?

View 2 Replies

ActionScript 3.0 :: Textfields Text Property Won't Update

Jun 11, 2010

I have a dynamic TextField in one of my movie clilps called artistBox.bottomFrameForScrollPanel.artistsFound_t xt and when I trace out the artistsFound_txt.text, it shows the current value that I set which is "1 artists found". I ran the following code below to trace out the contents[CODE]...

View 1 Replies

ActionScript 2.0 :: Create Textfields On The Fly That Wrap The Text They Contain?

Apr 18, 2006

I am trying to create textfields on the fly that wrap the text they contain. I am using the following code but it is not working well. The text within the textfield is low and some of it is cut off.(Easy to see if I put a border around the textfield.) What's my bext solution to create a textfield which perfectly fits the text it contains.

var caption="someText";
thumbTitleTextFormat=new TextFormat();
thumbTitleTextFormat.font="exportedArialFont";
thumbTitleTextFormat.align="center";

[code]....

View 3 Replies

ActionScript 3.0 :: Text Disappears From Dynamic Textfields?

Oct 13, 2009

I 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].....

View 4 Replies

ActionScript 1/2 :: Run-time Textfields With Embedded Unicode Text?

Jul 13, 2009

your reward will be to know that someone has not lost hissanity.[ActionScript code]var testStr = "_ABC";

// Set up the design-time textfieldtf1.text = testStr;tf2.text = testStr;
// Set up the run-time textfieldthis.createTextField("rtf", 0, 10, 130, 200, 30);var rtf = this["rtf"];rtf.selectable = false;rtf.multiline = true;rtf.html = false;var textFormat =

[code].....

View 2 Replies

ActionScript 3.0 :: Generate 12 TextFields Matrix And Update Their Text

Aug 15, 2010

i want to generate 12 TextFields matrix and update their text from time to time.. i managed to Generate them but i can't access after to update their texts...

[Code].....

View 1 Replies

ActionScript 2.0 :: Change Text Size In ALL Textfields In Stage And MCs?

Aug 2, 2006

is it possible to set the text size for ALL the textfields in the movie with one script? Even if they have no instance names, even if they are created dynamically,...

Maybe some prototype which activates after the textfield is "created"?

View 2 Replies

ActionScript 3.0 :: Display Xml Generated Text In 2(or More) Dynamic Textfields?

Feb 19, 2009

Im attempting to display xml generated text in 2(or more) dynamic textfields. One textfield under the thumbnail and 2 or more textfields next to the large image that loads.Ive posted an example where I put text in the dynamic text fields just to show location and how it should work:[URL]

I keep getting undefined errors. I've made minor adjustments from the original source: [URL]I think the error might be a typo. Ive pasted the AS and you can click the link for the zip if any want to take a crack at this issue: [URL]

----------------ERROR I KEEP GETTING----------------------------
1120: Access of undefined property arrayThumb.
1120: Access of undefined property arrayThumb.
1120: Access of undefined property thumbsDescription.

[code]....

View 1 Replies

ActionScript 2.0 :: One Dynamic Text Var Split Across Multiple TextFields?

Dec 12, 2009

I have two text fields, textL and textR, that read like a book with a specific height and width. Currently I have the external .txt/.php set up variables for each page. Example of book.txt :Code:&page1=Hi this is page one.&page2=And this is page two.I am looking for ideas on how to approach using just one variable which is split at the absolute end of textL with the rest of the variable or string loading into textR. Basically, automating the split of the text when it runs out of space in each field.

View 3 Replies

ActionScript 2.0 :: Dynamic TextFields' Text Becomes Invisible When Loaded Into Another MC?

Feb 23, 2010

I have inherited a huge application (several thousand lines of code spanning roughly 40 files) to which I must add some functionalities. Now I haven't even started on modifying the code yet because of a problem when loading the Flash file. The Flash files represent a whole website "creator" or "manager" depending on how you see it. It allows end-users to add buttons, images, text fields, etc. inside which other buttons/images/texts can be added. Basically, it's some kind of WYSIWYG editor. I did not create this but I agreed to work on it for some time if I can get it working.

There is a main file, aptly named index.swf, which loads other files (the website file, or the text editor file, etc.) according to what the user is trying to do. If a user is simply viewing the website, then it displays the website. If a user is modifying the website (after authentication), it displays the website AND a management interface, which allows the user to add, modify or remove controls on the site.My problem is that all TextFields display their content (the text) properly when the website is displayed but they display nothing when the management interface is displayed. In other words, a user viewing the website will see all texts in it; a user modifying it will not.

The way this works is that the main SWF (index.swf) creates an empty movieclip for the website and loads the website (another SWF) inside it. Then it creates other movie clips and loads other SWFs inside them for the management interface.The TextFields inside the website SWF contain the appropriate text and have an appropriate font set up (I am able to display it using Alert.show) but their textHeight and textWidth properties are 0, which to me is not normal.

View 4 Replies

Disable The Text Selection Abilities And Such Of Flash TextFields (so They Act Like Labels)?

Sep 3, 2010

How can i disable the text selection abilities and such of flash TextFields (so they act like labels)?

View 1 Replies

ActionScript 2.0 :: Publish Flash File Certain Graphics And Text Are Disappearing From The Swf File?

May 27, 2010

can anyone explain when I goto publish my flash file certain graphics and text are disappearing from the swf file?

For instance just some static text and also a graphic i've copied three times.. two show up but the third doesn't? really annoying help!

View 2 Replies

Professional :: Dynamic Classic TextFields - Text Fields Display Errors

Jun 16, 2011

I'm trying to implement some dynamic classic TextFields, but I am seeing errors when the text tries to render. What I am doing is trying to implement a system that shows tolkens and a cash eguivent, I'm using the code

[Code]....

I'm thinking there is something in the TextField that is not set correctly, I tryed to set the autoSize to CENTER but that didn't fix much...

View 7 Replies

ActionScript 3.0 :: Updating TextFields - When A New Song Is Played The Text Field From The Previous Tune Does Not Disappear?

May 10, 2011

Im using text fields to display artist, album and song information for tunes that are played in a mp3 player. The text appears fine and with the right information. But when a new song is played the text field from the previous tune does not disappear and the new song information, just sits on top of it.i have attempted to use the remove child to fix this, but couldn't get it working? My code for the play function and the textfields is below,

ActionScript Code:
var myFont = new Font1();
var mySongNameFormat:TextFormat = new TextFormat();
mySongNameFormat.size = 30;[code]...............

View 2 Replies

ActionScript 3.0 :: XML For Loop - Count The "<Text>" Nodes Of The XML And Use Their Different Values On Different Dynamic Textfields

Jul 15, 2010

How can I create a for loop so I can use different values of the same node? So I want to count the "<Text>" nodes of the XML and use their different values on different dynamic textfields. Note that I have mutliple Movieclips on the stage with the same amount of textfields and I would like to include them in the loop, so I named them mc1 mc2 etc.

[Code]..

View 9 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved