ActionScript 3.0 :: Dynamic Text Disappears On Stage Scale?

Dec 9, 2009

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 Replies


Similar Posts:


ActionScript 3.0 :: Dynamic Text Vanishes On Stage Scale?

Jan 9, 2012

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. [URL]

View 1 Replies

ActionScript 2.0 :: Rotate A Dynamic Text Object The Text Disappears At Runtime?

Jan 3, 2007

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.

View 2 Replies

Dynamic Text Box Scrollbar Disappears?

Jan 9, 2010

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

View 2 Replies

Text Disappears After Converting To Dynamic Box?

Sep 10, 2009

Text box instance is labelled,

Property set to 'Dynamic Text'
Behavior set to 'MultiLine'
Text set in Actionscript:

[code].....

View 1 Replies

ActionScript 3.0 :: Dynamic Text Disappears Under Shape?

Feb 4, 2010

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 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 3.0 :: Dynamic Text Field Disappears?

Oct 15, 2009

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.

View 14 Replies

ActionScript 3.0 :: Dynamic Text Under Mask Disappears When Tweening

Sep 14, 2008

I'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 Replies

ActionScript 3.0 :: Dynamic Text Disappears When Clicking Bold Button?

Jun 28, 2009

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

View 3 Replies

ActionScript 2.0 :: Array Acsess For Dynamic Mc Messing Up Stage Scale

Mar 17, 2007

I found a bug with use of _X and _Y. even though vars are case sensitive in the case of _Y and _X Auto format will change them in to lower case _y and _x and still even then, the use of upper case will still apply what ever value of that var to the _y and _x of the _root.Now that I dont have the stage shifting any more I went back to look at my trace and to my surprise it's still the same.I assume that it's because of the array style scope. when in debug the the level0 and level0.stage is the same width and height.[code]

View 7 Replies

Professional :: Dynamic Text For A Large Scale Project?

Jan 22, 2011

I understand that, in order get an anti-aliased font in a dynamic text field, the most given advice is to embed the font.  But that doesn't work for my project since we want to make it available in multiple languages, and there are too many fields that must be embedded, and it greatly increases the file size of just one scene.
 
The other option I have seen people use is to custom anti-alias, but for some reason, this option just is not working for me.  I fiddle and fiddle with the sliders, and no change is ever made.  We are only using Arial, so I am at a complete loss as to why I seem to get no changes in the text from this option.
 
shed light on what might be blocking me from using custom anti-alias in my flash files?

View 3 Replies

ActionScript 2.0 :: Default Dynamic Text Auto-scale Font, Input From Input Text First

Feb 3, 2011

I have an issue with font scaling of a dynamic text box.

Currently i have one input box named input_1 with a variable attached to it named "choc_1".

Also, i have a dynamic text box named dynamic_1 with variable "choc_1".

When the user types something on the input box then the dynamic box changes instantly and displays what the user has written.

auto scale-size the fonts to a smaller size if the user types many letters.

The input_1 box has a 13 character limit. My initial font size is 200, i want to scale down so when the user types 10 letters they fit the box and they don't go out of screen. I want to use one line, so wrap or multiline is not possible.

here's a code that i'm trying to fix but i can't get the dynamic box to change:

[Code].....

View 1 Replies

ActionScript 2.0 :: Dynamic Text Auto-scale Font, Input From Input Text First

Feb 3, 2011

I have an issue with font scaling of a dynamic text box.

Currently i have one input box named input_1 with a variable attached to it named "choc_1".

Also, i have a dynamic text box named dynamic_1 with variable "choc_1".

When the user types something on the input box then the dynamic box changes instantly and displays what the user has written.

I've googled a lot, but i can't find a solution to auto scale-size the fonts to a smaller size if the user types many letters.

The input_1 box has a 13 character limit. My initial font size is 200, i want to scale down so when the user types 10 letters they fit the box and they don't go out of screen. I want to use one line, so wrap or multiline is not possible.

here's a code that i'm trying to fix but i can't get the dynamic box to change:

[Code]....

View 0 Replies

ActionScript 1/2 :: Scale Textfield Font Size Limit On 127px Dynamic Text It Be Bigger

Jun 21, 2010

So I've got one more problem because the font size limit on 127px I need to scale my dynamic text so it can be bigger. So here the code I tought could work:
this.createEmptyMovieClip("text1_mc",1);

[Code]....

View 1 Replies

ActionScript 3.0 :: Send Data From Dynamic Text Field On Stage To Dynamic Textfield In Mc?

Sep 28, 2010

I have 2 input textfields on the stage and 1 dynamic textfield.

-input1 is for quantity

-input2 is for page count

When a user enters a number into the page count it makes a calculation and places the outcome into the dynamic textfield. This textfield is for the individual price.All of this so far works. What I want to do now is create another dynamic textfield for the total. So the individual price is multiplied by the quantity and this result is put in the new dynamic text field. I have the code for that working but here is where it gets tricky (for me anyway).The total price is to start off invisible. When I roll over the individual price the total price is to appear (For a test lets just say when I roll over an area the total price appears).To stop cursor flickering this should be done inside a movieclip. So... I have create a movieclip and placed a dynamic textfield inside it. They all have instance names BUT how do I reference it in script?I need to tell the resulting calculation to be placed inside the textfield which is inside the movieclip. If it isn't inside a movie clip I can do it. But how to I reference it when inside one?

View 1 Replies

IDE :: Anything Placed On Stage Automatically Disappears?

Aug 21, 2009

I am a new-comer to these forums, as I am still trying to get used to Flash CS4.

This seems like a very simple problem (might not even be a problem at all), but I can't figure out for the life of me.

Everytime I open up a new window, and as I randomly begin to draw in pencil or make rectangles, when the focus on the window is changed to somewhere else my drawings just disappear.

View 8 Replies

ActionScript 2.0 :: Scale Proportion Past Stage But Not Below Stage

Aug 22, 2006

This goes out to Scotty or any other guru floating around out here. I need the image_mc movieclip in this .fla to scale to fit browser, however i need the image to scale in proportion. I would also need a listener of sorts that will NOT allow the image_mc movieclip to scale below the stage size of 1024 x 768.

[URL]

View 4 Replies

ActionScript 3.0 :: MovieClip Disappears From Stage When Printing?

Sep 8, 2010

I am printing a parent moviclip which is on stage and has many child movieClips with linked classes having all single frames.When I try to print by passing it to printObject which is in external class few things happend as:
 
1. the object is printed but moviclip is removed from stage
2. also the dynamic text labels are not printed
3.the size is smaller than the original.
 
how to get to resovle these issues to obtain good print out from flash cs5 using AS

View 1 Replies

ActionScript 2.0 :: Add Wordwrap = True To A Text Field, The Text Disappears?

Dec 1, 2006

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 Replies

Professional :: Text Disappears At Runtime When URL Link Used In Text

Jun 2, 2010

I'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 Replies

ActionScript 3.0 :: Text Disappears When Changing TextFormat Or Text?

Apr 24, 2009

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

View 1 Replies

Put A Dynamic Text Field In Center Stage?

Mar 23, 2009

I've managed to put a text field onto the stage using AS2 but now I'm trying to make it stay in the center of the stage. [code]...

View 1 Replies

ActionScript 3.0 :: Dynamic Text And EventListener On Stage

Nov 5, 2008

Text is placed on stage dynamically with a MouseEvent. This is functioning correctly. I want to create a tween for the text once it displayed using the same MouseEvent but can't get it to
work.

Here's a sample of what I have (Bold is what is not functioning) :
stage.addEventListener(MouseEvent.MOUSE_OVER, buttonsEffect);
function buttonsEffect(evt:MouseEvent):void {
evt.target.alpha=1.0;
if(evt.target == D) {
sndD.play();
[Code] .....

View 3 Replies

ActionScript 3.0 :: Add Dynamic Text Message To Stage?

Jan 31, 2010

I'm having trouble adding a text message dynamically on stage using as3.I have an animation that the user interacts with and when a variable reaches a certain value I want to display a message to the user. How can I do this ?[code]....

View 3 Replies

ActionScript 3.0 :: Displaying Dynamic Text Without The Stage

Feb 4, 2011

I have a DynamicText movie clip call mcShotsText. In my .as file I'm creating an instance via:

private var _mcShotsText:MovieClip;
_mcShotsText = new mcShotsText();
_mcShotsText.x = 300;
_mcShotsText.y = 300;
addChild(_mcShotsText);

If I make the symbol so that it starts with text, it displays that fine. I want to alter it in code throughout the course of the game. I was hoping this would work:

_mcShotsText.text = "I am a cample";

View 2 Replies

ActionScript 3.0 :: Dynamic Text Is Placed On The Stage And Instantiated?

Sep 6, 2011

I'm facing problem regarding dynamic texts. My dynamic text is placed on the stage and instantiated. I'm setting the text value in AS by using textname.text = smthing... Initially it was showing the correct result on testing the movie clip.. But after few runs it started showing garbage values... When i traced the value, trace showed the correct result but not displayed properly on the dynamic text..I then deleted and recreated the texts.. After some trials od deleting and reinserting it started working fine.. But soon the problem creeped in.

View 2 Replies

ActionScript 3.0 :: Object Disappears Once The Registration Point Is Off Left Side Of The Stage?

Sep 22, 2009

I am moving movieclips around my stage in relation to the users mouse location.  All of my movieclips have the registration point placed in the default  top left corner.  As an object moves off the stage to the left it suddenly disappears when the registration point reaches the edge of the stage.  I would like to see the whole object move off the screen instead of just disappearing when the left corner reaches the edge.  I would move the registration point to the right side but I would like the movieclip to be able to move off all sides of the stage (top, bottom, left, right)

View 5 Replies

ActionScript 3.0 :: MainTimeLine Vs Access A Dynamic Text On Stage

Jul 31, 2009

Short version : Im confused on the difference between the two when accessing something on the stage from a package. Longer version: I passed in a ref to the stage to the constructor on a class, and was unable to use it to access a dynamic text on stage. I pass in this instead and am able to access it.

[Code]....

View 3 Replies

ActionScript 3.0 :: Font Embedding From The Stage Using Dynamic Text

Oct 22, 2009

I've been working on this all day. All I need is the font to be able to be both bold and regular in one string. However, while the string is being written on screen once it hits the bold tag (I have the string writing into a htmlText textarea) everything becomes bold. I can't seem how to figure out how to get it both bold and regular. Ive tired embedding via AS and from the stage using dynamic text. Nothing has worked.

[Code].....

View 6 Replies







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