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




White Box Around Dynamic Text



I am using "_sans" as my font and I'm still getting a white box around my dynamic, single line text. Any solutions?



ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 08-04-2005, 11:04 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

White Space In Dynamic Text Box
I need some advice on dealing with white space in dynamic text.

I have a text box that is being created and filled via actionscripting. I'm filling it with a simple .txt file like this:
body=here is some text.

The text is not HTML and it's not escaped.

The box is narrow (25-30 characters) and the text usually winds up being eight or ten lines deep. When the text flows in, I get a space at the beginning of some lines. It apears to happen when the space won't fit on the line above. I really want my left edge to be squeeky clean here. I'm sure there is a simple solution, but condenseWhite didn't work. What am I doing wrong?

thanks in advance...

AS 2 Loading Text In Dynamic Box Help (the White Space) ? ? ?
Hello everyone,

I am trying to find a bug that comes from flash when i load text from external txt file.
Let`s say that in the text file i have this line "Hello World", in flash using LoadVars it will load and show the message as it is "Hello World".

But what happens if the text is like this with 2 lines?
"Hello
World"

In flash it will load and it will show the text as this
"Hello

World"

You notice that it will put an empty line for every new line in the text file.

How can i avoid that?
I have tried to emmbed the characters and also i made many changes but none of them came to work and show the message without the unnecesary empty line.

If anyone knows how to make it work as i need i would appreciate the help

Thanx in advance!

White Space And Hscroll In Dynamic Text Fields
I have an anomaly where text loaded into a scrollable dynamic text field can sometimes disappear into hscroll boundaries beyond the borders of my text box even though wordWrap is set to true.

ex:
the text is wrapping
fine upto a point
then suddenly disappears off screen ==>

Does anyone know what might be causing this?

Second anomaly:
text is wrapping fine
then suddenly a new
[space]line starts
with a space.

I am loading variables, simple text files
then myText.text = [varibale]

Thanks.

PS meanwhile I found a solution. The application used to create a text file seems to impact how Flash handles the text. If I use TextEdit on a Mac the non-wrapping problem occurs. If I use MS Word the same, except when I save the word file as an MS-DOS text file my problems are solved but not entirely, new anomalies arise. Which application do you use for creating text files.

I also tried putting the text inside the index.html page using "param name=FlashVars value=some text" but Flash is still not wrapping words correctly so I can only assume it is a bug and not a feature. I suspect if a character does not 'touch' the borders of a text field Flash does not detect the end of a word to apply wrapping.

Input & Dynamic Text Boxes Have A White Box Surrounding Them?
The other day, dynamic text boxes were just dotted lines around it, like they should be, and the dotted lines didn't even show up in the actual clip.

Now, all text boxes have a white surrounding with black lines for edges, and it shows up like that even in the clip!

Screenshot:



Can anyone help me get rid of this and fix it back to normal?

SELECTABLE WHITE TEXT ON BLACK BACKGROUND - WHITE CURSOR - CAN IT BE?
SO i have a dynamic white text on a black background... can select but can't see what.
It is possible to change the selectable cursor's default black color with white?????
THANK YOU!

Dynamic Loaded Jpegs Have A White Boarder
Elo peeps

I am working on the polls section of my website, Finally got round to doing something with this section. anyways I am loading jpg's into the flash movie at runtime and they seem to appear with a white boarder. Some of the images are fine. check the link and you will see what i mean

Cheers
Paul
http://www.innovativedesigns.org.uk/...ll/f1poll.html

Dynamic Slide Show With White Boxes Showing Up
I have been trying to build this application for a number of weeks now and have run into something that simply stumps me.

I have a photo gallery that loads photos, an mp3 and (eventually) a txt file that will have captions, photo credits and transition times.

Now when the first two pics load and transition, they have these weird white boxes covering the photos. When the transition between the photos is done, the white box goes away.

i have no idea where these shapes are coming from. The mp3 is not set to stream, I can interchange the photos and the problem persists, I have tried changing the depths.

THEY ARE GHOSTS IN THE MACHINE and are slowly driving me mad.

please help.

Dynamic Flash Files And Weird White Backgrounds
Please help, I am delivering flash files using IFRAMES. The weird thing is that in IE 6 the backgrounds appear white. One of the files has an all red background, but it is coming up as white and some of the text is not legible since it is white too. I am not setting any background color in the embed tags, and the web page background is a dark grey.

Has anyone experienced this before in IE? How can I fix it?

Here's the code:


Code:
<SCRIPT LANGUAGE="JavaScript">

<!-- Hide from old browsers

now = new Date();

random = Math.round(Math.random() * 100000000);



// Modify the following two lines to reflect site specifics

site = "http://domain.net:80";

target = "/site=somethingall/area=somethingall";



document.write('<IFRAME SRC="' + site + '/hserver/acc_random=' + random + target + '"');

document.write(' NORESIZE SCROLLING=NO HSPACE=0 VSPACE=0 FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 WIDTH=300 HEIGHT=250>');



document.write('<SCR');

document.write('IPT SRC="' + site + '/jnserver/acc_random=' + random + target + '">');

document.write('</SCR');

document.write('IPT>');



document.write('</IFRAME>');

// End Hide -->

</SCRIPT>



<NOSCRIPT>

<A HREF="http://http://domain.net:80/adclick/site=somethingall/area=somethingall">

<IMG SRC="http://http://domain.net:80/nserver/site=somethingall/area=somethingall">

</A>

</NOSCRIPT>
Any help would be great.

Thanks,

Transparent Background With White Text
I'm new with Swish 2 and i'm trying to create a movie that will allow me to fade in text on an existing html page with a background image.

I've been able to create the text and the timeline with fade-in, however, the background for the scene is solid. I tried changing the Alpha level for the back ground to zero, but that didn't matter.

I created a Rectange object which allows me to create text objects to put inside the rectangle (which IS transparent with the Alpha settings) ... BUT the background is still grey or whatever the color selected...

Question: How do I get a transparent scene?

Thanks,
Mamix0ye

Input Text - Black Box, White Box?
On creating an input box in a regular flash window, the box will expand with the text as you type more (and has a white corner)

Yet with the FHH Scroll component, the box has a black square in the bottom right corner that prevents it from extending and causes no problems.

It was simple solution to copy and re-size the box, but for the life of me i can't figure out the difference between this white box and black box and how to achieve it on a normal basis.

I simply must know.

Here's a sample..

Black Outline Around White Text
Hi,

I wondered if anyone knows an efficient way of creating a black outline around text characters - to use, for example, to enhance readability where white text crosses areas of pale background.
The text is dynamic with embedded runtime shared fonts.

One way that is of course possible is to duplicate every textfield, colour black and then pixel shift is four directions. However, this turns one textfield into five. A problem since some of the application I'm developing may have up to 120 textfields on screen (scrolling lists). It does work, but performance on bottom of the range machines suffers greatly.

Many thanks in advance,

Morgan

White Space In An External Text File
Is it possible to use an load an external text file with multiple variables and line breaks? In other words could I make:

Code:
&defaultParkNum=1&printEnabled=no&usePointer=yes
look like this?


Code:
&defaultParkNum=1

&printEnabled=no

&usePointer=yes
I want to do this so it is easier for people other than me to change these settings. However, when i try to put line breaks into the file, the variables don't get loaded.

Perhaps theres something like ignoreWhite i could use?

White Text Alpha Tween Issue
When tweening the alpha value of white text utilizing 'anti-alias for readibility' the text pops at the end of the tween, resulting in a less than smooth effect. I've experimented and found that this only happens with white text, and it's less noticeable when the text is larger.

Comparing white text to any other color, it seems like flash applies a slight boost to the thickness of white text. I'm guessing this is the cause of the pop effect when tweening its alpha value.

I've looked around and haven't found any discussions on the issue. Anyone in Kirupa land know of a solution or workaround while preserving text quality?

White Space When Loading Html Text From XML?
I am trying to load a html text from a XML with flash cs4 but It loads with huge whitespace before and after the text. In an older, different version of the site made in AS2 it loads the same xml with no whitespace.

I've tried setting xml.ignoreWhiteSpace = true but it doesn't seem to change anything. Somebody please help?

flash code:
Code:

var XMLRequest:URLRequest;
var XMLLoader:URLLoader;
var xml:XML;

var myBody:String;
var myTextFormat:TextFormat;

loadXML();

function loadXML():void{
   XMLRequest = new URLRequest("blakedirect.xml");
   XMLLoader = new URLLoader();
   

   XMLLoader.load(XMLRequest);
   XMLLoader.addEventListener(Event.COMPLETE,onLoadXML);

   function onLoadXML(e:Event):void{
      xml = XML(e.target.data);
      xml.ignoreWhitespace = true;   //notice i've put this option
      makeText();
   }
}


function makeText(){
   myTextFormat = new TextFormat();
   //myTextFormat.bold = true;
   //myTextFormat.italic = true;
   myTextFormat.size = 10;
   //myTextFormat.color = 0x32ACC4;
   myTextFormat.font = "Verdana, Arial, Helvetica";
   
   
   
   myBody = xml.TEXTWINDOW;
   //trace(myBody);
      
   var bodyTF:TextField = new TextField();
   bodyTF.x = 0;
   bodyTF.y = 0;
   bodyTF.width = 550;
   bodyTF.height = 400;
   bodyTF.setTextFormat(myTextFormat);
   bodyTF.htmlText = myBody;
   bodyTF.wordWrap = true;
   addChild(bodyTF);
}




xml code:
Code:

<PAGE>
   <HEADER TXT="BLAKE WEST"/>
   <TITLE>Director / Producer</TITLE>
   <FORMAT><![CDATA[
   <!-- Put your html here -->
<a target="_blank" href="http://us.imdb.com/name/nm1231010">IMDB link</a><!--and end it here -->
   ]]></FORMAT>
   <CREDITS>UPDATED</CREDITS>
   <OTHERINFO>9.2008</OTHERINFO>
   <QUICKTIME HEADING="CLICK FOR DIRECTING REEL" HTML="blake/directproduce/blakedirect_video.html"/>
   <TITLEIMAGE JPEG="blake/blakeimages/blake2.jpg"/>
   
   <TEXTWINDOW>
   <![CDATA[
   <!-- Put your html here -->

   After editing for several years, Blake West made the leap into directing and producing when he formed Ivisualeyes Films in 2003.  He is currently attached to direct & produce "The Flyer Hold-up" with producer <a target="_blank" href="http://us.imdb.com/name/nm1155608/">Jason Koornick</a>.  It is in development.


   <!--and end it here -->
   ]]>
   </TEXTWINDOW>
   <SLIDES>   
      
      <SLIDE JPEG="musicvideos/caine/gallery1/crop0009_1.jpg" />
      <SLIDE JPEG="musicvideos/caine/gallery1/P1180253.jpg" />
   <SLIDE JPEG="blake/blakeimages/Blake_susanrawdin_1.07_2.jpg" />
      <SLIDE JPEG="blake/blakeimages/Blake_susanrawdin_1.07.jpg" />
      <SLIDE JPEG="blake/blakeimages/B-IN-NYC_2.jpg" />
      <SLIDE JPEG="blake/blakeimages/IMG_6614.jpg" />
      <SLIDE JPEG="blake/blakeimages/IMG_6656.jpg" />
      <SLIDE JPEG="blake/blakeimages/IMG_6722.jpg" />
      <SLIDE JPEG="blake/blakeimages/IMG_6725.jpg" />
      <SLIDE JPEG="blake/blakeimages/IMG_6741.jpg" />
      <SLIDE JPEG="blake/blakeimages/blake2.jpg" />
      
      
   </SLIDES>
</PAGE>

I'm just loading the <TEXTWINDOW> node for this test.
source files are here: http://kangaroach.xtreemhost.com/test/test.zip
...

Text String - Input Field - White Space
Hello

Question:

can flash recoqnize white space in a text string?

For example: If an input field was to collect words in a sentence and pass them to an array or individual variables. Basically would it be possible to take a sentence that has been inputed and seperate each word. Flash would have to recognize the white space inbetween each word and seperate it from there.

I not asking for an example although it would be nice just a answer if it is possible or not with ActionScript then I can try and figure it out from there.

Thanks

cheers,

noss

White Input Text Field Prints Grey
Hi! I have a problem about input text fields. I have an application that uses input text field and users can write and print. The problem is sometimes the input text fields backgrounds prints grey instead of white. In my actionscript code I have the properties to config background and stuff and even so the grey boxes always appear.

Can somebody help me? Sorry for my bad english





























Edited: 09/15/2008 at 04:50:53 AM by doozat

White Box? SWF Shows As White Box In Dreamweaver
The SWF starts animating, but a white box will show for a second and motion starts on /home.

on /portfolio and its lower levels the buttons showup but the graphics dont...

Im a noob, but I know the home page is only 48k, so I wouldnt guess size is an issue...

link

White Box? SWF Shows As White Box In Dreamweaver
The SWF starts animating, but a white box will show for a second and motion starts on /home.

on /portfolio and its lower levels the buttons showup but the graphics dont...

Im a noob, but I know the home page is only 48k, so I wouldnt guess size is an issue...

link

White Box? SWF Shows As White Box In Dreamweaver
The SWF starts animating, but a white box will show for a second and motion starts on /home.

on /portfolio and its lower levels the buttons showup but the graphics dont...

Im a noob, but I know the home page is only 48k, so I wouldnt guess size is an issue...

link

Removing White Space/line Returns From Text File
My .txt file has the variables on a new line so it's easy to read. However, there is all the whitespace with a new line. Anyone know a script to remove the whitespace?

TIA

/B

ComboBox Selected Item Text Label Behind White Background
This is one for components experts.

I'm using the ComboBox component populated with XML data. Everyting works fine. Except sometimes the text Label indicating the selected Item all the way on the top of the comboBox doesn't appear. The label remains white.

With extensive debugging I've discovered that the text label somehow appears behind the white background.

comboBox.focusTextField.border_mc which is the white background is behind the text Label MC.

WHY? What am I doing wrong?

It must be some depth or styles issue...?

Any insight appreciated.

Thank you all.

Cheers

stephank

[CS3] White Backgrounds Instead Of White, Why?
This is just about the only question that I have right now, until I actually get into doing some work with flash. Anyway:

My problem deals with viewing some flash animations online. Before I updated my Flash Player to version 9, I have been able to view some of the animations on, say, Newgrounds, without a problem. However, after the update, what used to be black backgrounds are now white. A good example of this could be seen on VGCats.com.

http://www.vgcats.com/comics/extras/stillalive.php
On the loading screen and the replay screen, as well as throughout the lyrics, the background is white where it should be black.

As well as here:

http://tta.fireball20xl.com/
Here, I know for a fact that, behind the green star, the background used to be black. But now it's white for some reason.

I've tested this on a couple computers, just in case. All the ones that updated to Flash Player 9 have white backgrounds. The other computers that have not, however, stayed black as it should be. So, I'm only guessing it has something to do with the update, but I do not know what.

I tried uninstalling and reinstalling both CS3 and Flash Player, and I did the usual things like clearing caches and cookies, but nothing I've done so far has seemed to solve my problem.

More or less, I'd like to know who else has had this problem at some point? Hopefully someone else has, I don't like being the only person in this situation. Makes me feel like an idiot trying to ask.

But I would like to know how to solve this, so I can get on my way with enjoying the animations as they should be.

Thanks.

Loading Text & JPG Nito TextField Makes Textfield White
Hi guys !

Does anyone know, why a textfield may become white when loading text + JPGs into it? Sometimes it happens to me, sometimes not. I haven't figured out why.

If you have any clues... I'd be really thankful

The AS I'm using:

_target.container.t.html = true
_target.container.t.condenseWhite = true
_target.container.t.autoSize = "left";
_target.container.t.htmlText = _data.texto

The String ( &HTML ):

"Text lorem ipsum bla bla ..... <img style='WIDTH: 154px; HEIGHT: 59px' height='298' width='856' alt='' src='http://www.spacilong.com/arq/img/AlcatelLucent_Hor_2col_sm.jpg' />

Jumping To Areas Of Dynamic Text, Printing Dynamic Text
hello,

I have a movie clip that loads a .txt file into a dynamic text field. Due to the amount of content in the file a scroller bar is needed in order to view all of it. I want to create buttons that jump to different areas of the dynamic text for easier navigation so the user can go directly to various sections instead of having to use the scroller all the time. What kind of coding would I need to put on the buttons and within the .txt file at the areas I want to jump to?
Also, I would like to give the user the option to print everything within the dynamic text field only, not the surrounding elements in my movie clip. Is that possible?

thanks!

Dynamic Text Not Loading On Server . . . Other Dynamic Text Issues
ok - here's the url

http://www.rongilcreast.com/Test_Site/main.html

when I 'test movie' in Flash, the text comes in. But not now that it's online . . .

2nd problem. I want to add a scrollbar to the textbox, but when I drag the scrollbar onto the textbox, it doesn't snap-to the text box and resize itself.

all the files are here:

http://www.rongilcreast.com/Test_Site/main.fla
http://www.rongilcreast.com/Test_Site/main.swf
http://www.rongilcreast.com/Test_Site/Index.txt

whatamIdoin'wrong?

tia . . .

[AS2] Changing Text In Dynamic Text Field With Dynamic Instance Name
I dont know what I am missing here but what I want to do is change the text inside a dynamic text field via actionscript. the code I am using runs in a loop within a function. Trace is outputting the correct values.


PHP Code:



    for(i=0; i<=4; i++) {
        if(_root["order_"+ q][i] == 0) {
            ["order_"+ i]text = "First";
            trace("first");
        } else if (_root["order_"+ q][i] == 1) {
            ["order_"+ i]text = "Second";
            trace("Second");
        } else if (_root["order_"+ q][i] == 2) {
            ["order_"+ i]text = "Third";
            trace("Third");
        } else if (_root["order_"+ q][i] == 3) {
            ["order_"+ i]text = "Fourth";
            trace("Fourth");
        } else if (_root["order_"+ q][i] == 4) {
            ["order_"+ i]text = "Fifth";
            trace("Fifth");
        }
    } 




basically I want to do this -


PHP Code:



order_0.text = "First"; 




So how can I change this line to work as expected?


PHP Code:



["order_"+ i]text = "First"; 





EDIT- The instance names for the dynamic text fields are set
Thanks

Trying To Take The Text From One Dynamic Text Field And Populate Another Dynamic Text
I'm trying to take the text from one dynamic text field and populate another dynamic text field with its contents.

I want to display the text that is in the text field _root.MC_Control.tab_title in another text field called _root.video_title.

I have tried this:

_root.video_title.text = _root.MC_Control.tab_title.text;

and this:

_root.video_title.text == _root.MC_Control.tab_title.text;

neither one seems work....am I missing something?

Asfunction - How To Load Dynamic Text With Dynamic Text? [F8]
Hello dear helpers !!!

I'm trying to get external, dynamically loaded text to load different text files into a text box. I've figured out that I need asfunction to do it through calling a function in the movie and passing it variables, although i haven't been able to write this function at all... would anyone mind giving me a hand???


thanks sooo much!!

p.s. I've managed to get this working by creating a toggle function, so at the moment I have 25 text boxes and a show/ hide function, but that's very buggy.

Loaded Text File Wont Show All Of The Text In Dynamic Text Field
When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.

The text that is in the text file is as follows, and as far as I can see there is no reason why all this text shouldnt show in the dynamic text field; by the way all my targets are correct, I know that for fact.


message=Code: Cheat:
BEEPSAGONER Deactivate the censor beeps
DRACULASTEABAGS 50 lives
DUTCHOVENS Frying pan mode
XFYHIJERPWAL IELWZS Debug mode
BOVRILBULLETHOLE Shoot all objects
EASY Easy mode
VERYEASY Very easy mode
SPUNKJOCKEY New death animation
SEXYMANN Birdy & Squirrel scene

Code: Unlock chapter:
PRINCEALBERT Barn Boys
CLAMPIRATE Bats Tower
ANCHOVYBAY Slopranos
MONKEYSCHIN Uga Buga
SPANIELSEARS Spooky
BEELZEBUBSBUM It's War
CHOCOLATESTARFISH The Heist
WELDERSBENCH All chapters and scenes

Code: Unlock Multiplayer character:
WELLYTOP Conker
EASTEREGGSRUS Neo Conker
BILLYMILLROUNDABOUT Gregg the Grim Reaper
CHINDITVICTORY Weasel Henchmen
EATBOX Cavemen
RUSTYSHERIFFSBADGE Sergeant and Tediz Leader
BEEFCURTAINS Zombies and Villagers

Is It Possible To Change A Text Field From Dynamic Text To Static Text At Runtime?
The reason is because the dynamic text appears to be taking up about 90 % of the CPU usuage and I dont know any other way to reduce the CPU usage.

The text areas pull in lots of data from text files which slows down the program.

Any ideas?

Trasfering Text From One Dynamic Text Box To A Input Text Box On A Differnt Page?
Ok so I have a text box set up which receives the date on a callendar which you click on. On another page (a seperate html file) I have an input text box for receiveing this text.

I've been trying to do this using various methods using getURL, but, I can't get it to work. This is becoming tedious especially as I'm not able to test it without having to reupload the files.

If someone could please inform me on how I should do this I'd be vary greatful.

If you need any further information I'll reply as soon as possible.

How To Break Up Text When Calling Text Into A Dynamic Text Field
I am calling test in from a .txt and was wonding if there was a way to have a page with a bunch of information and have it obly call an indevidual paragraph or sentance depending on what i want it to ask.


ThnX

Load Text From A Text File Into A Dynamic Text Field
I'm trying to load text from a text file into a dynamic text field. The text field is on the "blog" page of the website. When I test my movie, the first time I go to the blog page, the text from the external text file (AND the CSS styles) show up fine. But when I click from the blog page to go to the "profit calculator" or "contact" pages and THEN click to go BACK to the blog page, the blog page animates back in, and right as the animation ends, the text on the blog page suddenly disappears and won't come back. PLEASE help me figure this out!

Dynamic Text Box / Xml Content - Text Is Too Close To Border Of Text Box
Hi,

If you take a look at my flash movie you will see that I have draggable movie clips, which contain dynamic text fields. These text fields contain text drawn in from a simple xml document.

The problem I have is that the text in the text fields is hedged right next to the border of the autosized text box. This makes them look untidy and in the worst case difficult to read. I wonder how I can add some margin to the left and right of the text to fill in some space.

http://www.nottingham.ac.uk/home/ccz...AndDrop3.1.swf

http://www.nottingham.ac.uk/home/ccz...AndDrop3.1.fla
(you also need the xml doc at : http://www.nottingham.ac.uk/home/ccz...scriptions.xml )

The code which formats the text boxes is:

with (main["dragAct"+i].dragActText) {
text = actText[i+1];
background = true;
backgroundColor = "0xe2e2e2";
setTextFormat(myFormat);
autoSize = "center";
border = true;
borderColor = "0x666699";
}

my text formatting looks like this, and you can see that I have tried to use leftMargin / rightMargin but these properties don't seem to work:

var myFormat:TextFormat = new TextFormat("Tahoma", 12);
myFormat.leftMargin = 20;
myFormat.rightMargin = 20;
myFormat.bold = true;

Any suggestions most welcome.

Thanks

Free Flash Source For Dynamic Slideshow With Automatic Thumnbails And Dynamic Text?
Is there any free flash source for dynamic images slideshow with automatic thumnbails and dynamic text / caption just like the one here:
http://images.businessweek.com/ss/06.../slideshow.htm
or this one:
http://www.clubparis.net/gallery

TIA

Dynamic Vars, Dynamic Paths Using Variables And External Text Files
Hi there,

first off, apologies for the long post, but its a tricky problem to explain... and on my first post too! (sorry )
Im have a bit of bother with flash calling variables from a text file, and using them to make paths to other variables, and to control the amount of time a duplicate clip occurs. The first of these 2 problems is this:

Im loading a text file "content.txt" into _root. (this works fine)
it contains the variables:

webclipcount=2
&webhenry=hello hello
&webbutton01=henry

on the main timeline I have this button

on(press){
sectiontitle="web"
clipcount=webclipcount
}

there is a text box on the main timeline with variable name of bodycopy.

on a clip on the main timeline I have this;

onClipEvent (enterFrame) {
if (num< _parent.clipcount) {
duplicateMovieClip(thebutton, "button"+depth, depth);
this["button"+depth].name = _parent[_parent.sectiontitle+"button"+num];

this gives button01 the name henry- this works.

on the duplicated clip I have these actions:

on(mouseDown){
_parent._parent.bodycopy=_parent._parent[_parent._parent.sectiontitle+this.name]
}

so we end up with a path like:

_parent._parent.bodycopy=_parent._parent.webhenry

and it in turn should make the textbox on the main timeline contain "hello hello"

but it doesnt.

also for the duplicating clip, unless i use:

onClipEvent (enterFrame) {
if (num< 2) {.....
<snip>

it wont work either. it seems neither can be dynamic/ pulled from the text file. (well, i can get them to work!)

If I use direct paths like:

on(mouseDown){
_parent._parent.bodycopy="bloody hell it works!"
}

and

onClipEvent (enterFrame) {
if (num< 2) {.....
<snip>

it works, but not if they are dynamicly set from the txt file...
Anyone care to shed some light onto this? its doing my head in!
thanks in advance or the help.

cheers,

chris

Mouseless, Autoscrolling, Dynamic Tweening, Dynamic Text...
I am having the darndest time finding help on this even though it seems like a common task (ok done venting)

What I need is this:

A dynamic text field (from txt file) that will autoscroll vertically. I know that I can do this by motion tweening a movie clip containing my dynamic text, but heres the thing: this source txt file will be updated daily (daily events). Some days it will be a few lines of txt (no scrolling necessary). Some days it may be 500 or more lines of text. So simply motion tweening my movie clip a fixed speed and distance will not work. I need the scroll speed, text box size, and scroll distance to be dynamic.

Please help us. The hack that made our kiosk made it almost impossible to open, so it takes me forever to open it and i don't want to do that every day... oh, you didn't need to know that, sorry.

An .fla or a tutorial would be a huge help as I am not action script savy, yet.

Thanks in advance!

Dynamic Aligning Input And Dynamic Text Box (flash 5 / 6)
Hi the title says it all really. i need to know how to dynamically align input and dynamic text boxes in (flash 5 / 6) so on a button press the text moves to the left or centred

thanks!

Dynamic Mask For Dynamic Text Won't Working Any Body Pls Help
Im' supposed to make a scrollable gridlike simulation with using MC. Inside that MC there are dynamic text area as cell in which its text will be updated dynamically.

Now i have a strange prob that when i use setMask to mask that grid MC it won't working


I have the MC name 'grid'
above that another MC name 'msk'

code is like tha
grid.setMask("msk");

it only shows the full grid instead of masking area.

Dynamic Text : Dynamic Height (depending On Content)
Hi people.

Im working on a website, and in some part there is a dynamic text space that sets its width depending on the resolution.

But well, I want the text to be sitting downside of my webpage. For this (I guess) I need to set the height of the space to its contents, so that I can use the textspace height as a unit, for putting it to the ground
(myTextSpace.y=stage.StageHeight - myTestSpace.height)

But well, I do not know, if there is any way to set the textspace height to its contents.

I hope I'm clear, thank you.

Dynamic Text Within Dynamic Movie Clip Loops
Ok my predicament. I am trying to create thumbnails, but instead of using pictures as the thumbnails I would like to have text, formatted blah blah for people to select. Now the code I am trying to adapt is fine and dandy to get working with pictures, so I know the part of this code that creates the movie clip is fine. However I cannot seem to dynamically create the text boxes within the movie clips. I need to have them within the movie clips so the opacity will change when they are hovered over.

Code:

currentName = "t"+k
thumbnail_mc.createEmptyMovieClip(currentName, thumbnail_mc.getNextHighestDepth());
thumbnail_mc.currentName.createTextField("text"+cu rrentName, thumbnail_mc.currentName.getNextHighestDepth(), 0, 0, 244, 28)
thumbnail_mc.currentName.text="test"

k will be changing anyway for each time through taht a movie clip is made hence why they will need different names.

Any help...hope this can be understood.

Accessing Dynamic Text Within Dynamic Added Movieclip.
Hi there.

I'm trying to access and change a dynamic text field within a dynamically added movieclip.

This is how I'm trying to accomplish that;


ActionScript Code:
uButton = attachMovie("_button",arr_videos[i][1], ++uDepth);
  uButton._x = uButtonStartX;
  uButton._y = uButtonStartY + uButtonDistance * uDepth  uButton.btn_name.text = "button name";

btn_name is the name of the dyn. textfield.

But this does nothing.. What am I doing wrong?

Thanks for your help

Samuel

Dynamic Text Field Receiving Dynamic Variables...
or something like that . . .

This is my problem: I'm generating _global variables via XML. Each variable represents different types of copy, of varying lengths. For Example:

_global.introduction = xmlDoc_xml.firstChild.firstChild.nodeValue;
_global.body = xmlDoc_xml.firstChild.firstChild.firstChild.nodeVa lue;
_global.summary = xmlDoc_xml.firstChild.firstChild.firstChild.firstC hild.nodeValue;

I want to create ONE text field, with scrolling, that will act as a template to house all types of content. I've assigned a variable that equals "content" to this text field. . . My problem is, I can't get the text field variable (content) to dynamically swap for the global variable (_global.introduction) in order to display the proper content.

This seems simple, but something's not working for me. Any thoughts? . . . BIG thanks in advance!

XML Loading, Dynamic Buttons, Dynamic Text Fields...
My last thread kind of died, I guess, so here's another one that I hope will get me some help; it has an updated FLA attached and what I think to be some better descriptions of my problems... I know I'm totally indebted to whomever will help, but this is an emergency and I need some timely advice.

so here's the FLA, XML, and some sample images: kirupaTest2.zip

1. I pretty much have the enlarged pictures loading I guess, which was my major problem before, but it doesn't matter because I can't get the code to "know" which of the dynamic thumbnails has been clicked (by "know", I mean return an index value, say 0 through 7 if there are 8 projects, that I can use to access that particular project in the array of 8 projects in the rest of the code)... So if the third movieclip thumbnail were clicked, I'd like "2" to come up somehow... I've tried this code, which is kind of lame, I know, based off of the idea of each of the thumbnail movieclips' names ending in their index number:

ActionScript Code:
//"this" is the button that was pressed; would return a string ending in//thumberMC_<number of whichever movieclip thumb was clicked>var: testString:String = this; //storing how many characters are in the string above...var: stringNumb:Number = testString.length;//using that value to take off the last string (hopefully the number)var: finalString = testString.charAt(stringNumb);


And that didn't work. (The code above was entered around line 71 in the layer "actions"; it's gone now)


2. An even bigger problem is I have some containers being drawn dynamically from height and width values pulled from an XML file. When I test the code that creates the objects using hard-coded values, it works fine; say if I put 481 in for the width and 375 for the height. But if I try to do it (sort of) dynamically like:


ActionScript Code:
var picHeight:Number = projects[5].bigPics[0].picHeightvar picWidth:Number = projects[5].bigPics[0].picWidth


it gets all screwed up; please try it for yourself in the supplied FLA. It's hard to describe what goes wrong; some things are drawn, and others aren't. I think it's because the objects are trying to draw before they have the data to draw with. This can be seen at lines 129 and 130.


3. Lastly, there's a dynamic textfield I'm trying to create that never shows up for some reason. Again, you could see in the FLA (in the "createDrawer" function around line 424).

If I can clarify, please let me know.

Dynamic Video Playlist And Dynamic Text Articles
Hi all, hope you can help me..?

I have the task of creating a Dynamic Video Playlist to be incorporated in a FLASH 8/HTML site. The site owner should then be able to upload their recorded videos. The client will be using a low budged camera. I am planning to suggest a video format to the client that will suit me best.

In addition I also need to create a section where text articles will be posted by the site owner.

I am a beginner in Actionscript 2.0, and I have Flash 8 installed in my PC.

Can anyone recommend some FLA source files to get me started, and a tutorial? I've seen some tutorials, but they are either too complicated or don't attend my needs.

Many thanks!

Getting A Dynamic Text Box's Text From HTML-formatted Text?
Hey! You recognize me yet? I've got (hopefully) one last question for a while. Could somebody please tell me how do to get the text value of a text box with text that's formatted as HTML? ( it was formatted similar to "textBox.htmlText = "...";")

I tried "myVariable = textBox.htmlText", but it just gave me the formatting garbage it's using (<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="12" COLOR="#000000"></FONT></P></TEXTFORMAT>) without the actual text that my users see. I also tried "myVariable = textBox.text;", but it returned a blank variable.


Many thanks, me Flash bruthas
Furry

Dynamic Text, Loading Text From Text File
I have a large text file, full of, believe it or not, alot of text. When it loads into the textbox in flash, it cuts off after a certain amount of lines. How many lines does it cutt off at and if I can, how do I increase this? THanks

How To Add Text To Dynamic Text Field Where Text Cursor Is. Please Help
Hello,

How do you, if possible, can add text to a dynamic text field on where the text cursor.

Example:
| = text cursor
by pressing a button I want to add "How are you?" where the cursor is
____________________________________________
Hello
|
Bye
____________________________________________



Results:
____________________________________________
Hello
How are you?|
Bye
____________________________________________


Please Help!
Thank you in advance!

Dynamic Length Of Dynamic Of Text Field?
is it possible to set the length of a dynamic text field so that the text flowed into it fits perfectly.
I need this so that I can get the _width of the movie clip it sits in.

help appreciated guys.

Copyright © 2005-08 www.BigResource.com, All rights reserved