Text Trouble
hey guys...i have a slight problem with loading multiple text files into flash mx. i have more than one button in my .fla file and i want it so that when you click one button, it loads one txt file into the dynamic text w/ scroller, and then when you click another button...it loads a different txt file into the same dynamic text w/ scroller. i was going to just attach my .fla file, but it was too big....so here's what i have so far:
i loaded both files into flash in the first frame (on 2 different levels):
//Create a new instance of the loadVars object and assign it to a variable loadVarsText = new loadVars(); loadVarsText.load("data.txt"); //assign a function which fires when the data is loaded: loadVarsText.onLoad = function (success){ if (success){ trace ("done loading"); //Now that we know the data is loaded, //set the text content of the Text Field //with the instance name "scroller" equal to the //contents of the variable text.text = this.var1
}else{ trace ("not loaded"); } }
and then on the other layer the same thing, only with loadVarsText.load("data2.txt"); and text.text = this.var2 instead of var1.
and then in actions for the different buttons i put:
on (release) { text.text = loadVarsText.var1 }
and on the second button:
on (release) { text.text = loadVarsText.var2 }
only problem is...when i start the movie it automatically shows what i had stored in data2.txt, and when i click the other button (for data.txt) the text just disappears! thanks for all your help...its greatly appreciated!!
FlashKit > Flash Help > Flash MX
Posted on: 06-30-2003, 04:46 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[flash8] Trouble Highlighting Specific Areas Of Text In A Dynamic Text Box
Hi all, I'm currently trying to work out a method to highlight specific areas of text within a dynamic text field at runtime.
The method I've been toying with so far has been the use of CSS highlighting, but have not seemed to have any luck thusfar. What I'm attempting to do is to illustrate, to students, sections within a passage of text pertaining to correct methods of source referencing (source in terms of bibilographical references), and so am essentially trying to change the background colour of sections of text specified at runtime.
Here's some code I've thrown together to test the CSS theory:
PHP Code:
var highlightstyle = 'span.highlight { background-color:yellow }';var txt = '<p><span class="highlight">highlighted text</span> non highlighted text<span class="highlight"> more highlighted text</span></p>';txtbox.html = true;txtbox.styleSheet = highlightstyle;txtbox.htmlText = txt;
however it don't work...and here I was thinking this would be a fairly easy affair
Any ideas?
Trouble Parsing Name To Dynamic Text Field .text Property
Hia, I'm making a media player with a playlist, when a list item is selected the 'name' (of selected track) should be parsed from the xml into the dynamic text field (title_txt).
What's happening is when the swf starts title_txt contains "level0.title_txt", when you first click an item, title_txt is parsed "undefined".
The trace function I set up to mimic this also brings back "undefined".
I'm not sure what's happening, any help would be really appreciated.
In my fla, I have:a list component inth an instance name of "list"
a video holder with the instance name of "video"
a title box with a var of "title_txt"
its a pretty simple fla.
the list is populated by xml
XML Code:
<xml> <listitem name="Battle 1" url="streams" thumb="battle1.jpg"> <stream name="battle1.flv" start="0" len="-1"/> </listitem>
<listitem name="Fight!!!" url="streams" thumb="fight.jpg"> <stream name="fight.flv" start="0" len="-1"/> </listitem> <listitem name="Marco Diaper" url="streams" thumb="marcodiaper.jpg"> <stream name="marcodiaper.flv" start="0" len="-1"/> </listitem>
<listitem name="Cheetah Cougar" url="streams" thumb="cheetahcougar.jpg"> <stream name="cheetahcougar.flv" start="0" len="-1"/> </listitem> <listitem name="Cloning" url="streams" thumb="cloning.jpg"> <stream name="cloning.flv" start="0" len="-1"/> </listitem> <listitem name="Run" url="streams" thumb="run.jpg"> <stream name="run.flv" start="0" len="-1"/> </listitem> <listitem name="Midgets 1" url="streams" thumb="midgets1.jpg"> <stream name="midgets1.flv" start="0" len="-1"/> </listitem> <listitem name="Midgets 2" url="streams" thumb="midgets2.jpg"> <stream name="midgets2.flv" start="0" len="-1"/> </listitem> <menu> <listitem name="Battle 1"/> <listitem name="Fight!!!"/> <listitem name="Marco Diaper"/> <listitem name="Cheetah Cougar"/> <listitem name="Cloning"/> <listitem name="Run"/> <listitem name="Midgets 1"/> <listitem name="Midgets 2"/> </menu></xml>
This is my main actionscript file (VideoSourcePro.as), line 65 is where the problem is.
Actionscript Code:
bG_mc.setStyle ("backgroundColor", 0x404040);trans_mc.setStyle ("backgroundColor", 0x404040);
mx.controls.treeclasses.TreeRow.prototype.drawRowFill = mx.controls.listclasses.SelectableRow.prototype.drawRowFill = function (mc:MovieClip, newClr:Number) { this.setStyle("backgroundColor", 0x404040); switch (mc._name) { case "bG_mc" : //Alpha when the row is not selected var tempAlpha = 0; break; case "tran_mc" : //Alpha when the row is selected var tempAlpha = 10;
break; default : var tempAlpha = 10;
} mc.clear(); //Here's the trick: mc.beginFill(newClr, tempAlpha); mc.drawRect(1, 0, this.__width, this.__height); mc.endFill(); mc._width = this.__width; mc._height = this.__height; //Hide the main bg of component list.depthChild0._alpha = 0;};//Set up the list box, call function VideoThumb to create the actual thumbnailslist.rowHeight = 70;list.cellRenderer = "VideoThumb";list.selectable = true;list.setStyle("color", 0xFFFFFF);list.setStyle("fontSize", 12);list.setStyle("fontFamily", "Verdana");list.setStyle("backgroundColor", 0x404040);listitem.setStyle("backgroundColor", 0x404040);
title_txt.setStyle("color", 0xFFFFFF);title_txt.setStyle("fontSize", 12);title_txt.setStyle("fontFamily", "Verdana");title_txt.setStyle("backgroundColor", 0x404040);title_txt.setStyle("backgroundColor", 0x404040);//create new empty listener objectlistListener = {};//Function to handle what happens when an item in the list is selectedlistListener.change = function(evtobj) { var nav = list.dataProvider[list.selectedIndex]; nc = new NetConnection(); //create a connection nc.connect(null); //null connection for progressive download ns = new NetStream(nc); //create a stream video.attachVideo(ns); //pipe stream to this video object // walk through the chosen item, build and play it var reset = true; for (var i = 0; i < nav.childNodes.length; i++) { var stream = nav.childNodes[i]; if (stream.nodeName == "stream") { // build path to flv, and play it myStreamPath = nav.attributes.url + "/" + stream.attributes.name; title_txt.text = nav.name; trace(nav.name + "_" + "title_txt"); ns.setBufferTime(10); ns.play(myStreamPath); reset = false; } } };//Add an event listener on the list, when it triggers, run the listListener function to repopulate the listlist.addEventListener("change", listListener);//Function that loads the XML file, parses it, and builds the list of available video clipsvar xmllist = new XML();//setup a variable to hold the XMLxmllist.ignoreWhite = true;xmllist.load("playlist-demo-1.xml");//load the XML file//The following gets called when the XML has been loadedxmllist.onLoad = function(status) { if (!status) { trace(status); } var entries = this.childNodes[0]; var playlists = {}; var nav = []; for (var i = 0; i < entries.childNodes.length; i++) { var entry = entries.childNodes[i]; if (entry.nodeName == "listitem") { //builds array of video clip names playlists[entry.attributes.name] = entry; } else if (entry.nodeName == "menu") { //builds array of available videos for (var j = 0; j < entry.childNodes.length; j++) { nav[j] = playlists[entry.childNodes[j].attributes.name]; } } //end else if } //end if //sends the array of videos to the listbox UI list.dataProvider = nav;};//end xmllist.onload
//resizes the video object to the width and height of the clip function onVideoResize() { if (video.width != video._width || video.height != video._height) { video._width = video.width; video._height = video.height; //center video in playback area newx = (400 - video._width) / 2; newy = (335 - video._height) / 2; video._x = newx; video._y = newy; }}setInterval(onVideoResize, 200);//keeps checking video size
And this is the actionscript file which gets the thumbnails for the list (VideoThumb.as)
Actionscript Code:
class VideoThumb extends mx.core.UIComponent { static var symbolName = "VideoThumb"; var label:Object; // the new text label we'll use var listOwner:Object; // reference to the tree - supplied by the tree var thumb; var nc; // NetConnection var ns; // NetStream var streamurl; function VideoThumb() { // nothing needed - we're extending v2; } function init() { // nothing needed - we don't have any instance variables to initialize } function createChildren(Void):Void { // attachMovie (linkageID, new name, depth) var v = this.attachMovie("VideoHolder", "thumb", 0); v._width = 80; v._height = 60; v.styleName = listOwner; var c = createLabel("label", 1); c.styleName = listOwner; c.selectable = false; } // pass all sizing from the tree to the cell function size(Void):Void { label.setSize(label.getPreferredWidth(), label.getPreferredHeight()); label._x = thumb._width + 10; label._y = thumb._height / 2 - label._height / 2; } // str is the suggested string to render from the tree (based on the node) // node is the entire XMLNode for the row // sel is the selected state (not usually used) function setValue(str:String, item, sel) { _visible = item != undefined; if (!_visible) { return; } label.setValue(item.attributes.name); //trace(item.attributes.name); // Thumbnail is picked up as the first frame of the playlist var url = item.attributes.url; var stream = item.attributes.thumb; var start = item.attributes.thumbpos; //grab jpg thumbnail instead of initiating stream var newClip = this.createEmptyMovieClip("thumbie", this.getNextHighestDepth()); newClip.loadMovie("thumbs/" + stream); // If explicit thumb is not specified use the // start frame of the first stream if (stream == undefined) { stream = item.childNodes[0].attributes.name; start = item.childNodes[0].attributes.start; } // Give up if we still don't have valid thumb info if (stream == undefined) { return; } // Render the thumbnail only if necessary if (streamurl == url + "/" + stream) { return; } streamurl = url + "/" + stream; //trace( streamurl ); trace(stream);
} // ensures the cell is centered vertically properly - luckily, the label also implements this method. function getPreferredHeight() { return 60; } function getPreferredWidth() { return label.getPreferredWidth(); }}
I've also zipped up the source files and uploaded them, they can be downloaded from here.
Thank you in advance.
James
Having Trouble Adding Additional Text To Text Stored In Var
How can i add "&print=page" to printVar=facility.php?type=all&state=ak so it would be, printVar=facility.php?type=all&state=ak"&print=pag e in a button?
I tried this and it won't work..
[code]
on(release){
getURL(printVar+"&print=page")
}
or
on(release){
newPrintVar = printVar+"&print=page"
getURL(newPrintVar)
}
Trouble Writing Text To Dynamic Text Box
I am using Flash MX (6.0). I am trying to display some text in a dynamic textbox. In my first frame a have a routine that imports and parsed a csv file into an array. After completing the array, the playhead goes to frame 2 where I am just trying to assign a value to a dynamic text field. I don't think it should be this difficult. Here is my actionscript. I have also attached the fla. Thanks!
First frame (creating array):
code:
stop();
// Initialize variables and constants
var _fileload = new LoadVars();
var full_array = new Array();
var DIR = "pix/";
// Start the data loading
_fileload.load("csv.txt");
// Functions
_fileload.onData = function(txtfile)
{
var temp1_array = txtfile.split('
');
for (var i = 0; i < temp1_array.length; i++)
{
var temp2_array = temp1_array[i].split(',');
full_array[i] = temp2_array;
}
gotoandplay(2)
};
Second frame (assign part of array to dynamic field):
code:
stop();
// Populate listbox
for ( var i = 0; i < full_array.length; i++)
{
listbox_lb.addItem(full_array[i][0]);
}
// Add some text
title_txt.text = full_array[0][0];
Trouble With External Text, Also Help With Dynamic Text
hello! i'm trying to put some external text into my flash movie for a news update section. i'm having some difficulty having it display, regardless of following the directions. i have the feeling it's because the external text would be brought into a movie within a movie within a movie (it's in one of those masked scrollbar movies). would something like this stop external text from being displayed?
also, i'm having trouble getting links in dynamic text showing up in the same scrollbar movie. it shows the regular text, but everything that is a hyperlink just isn't there. any reason why this is doing this?
thanks!
Linking Text To A URL (horizontal Text Only) : Trouble
G-day everybody
I started yesterday to write a full website in Flash but I am stuck now. I simply would like to link a part of a text to a URL.
I did what's explain in Flash help :
Linking text to a URL (horizontal text only)
1 Use the Text tool to select text in a text block.
2 In the properties Window, enter the URL to which you want to link the text block.
It doesn't work, what happend is for example if I wanted to go to yahoo.com I get the following path :
www.mysite.com/mypage/www.yahoo.com instead of just www.yahoo.com, so it seems it's adding to the URL where I am the desired one. I am stuck since a while and I would like to move forward, so if I forget to check a box somewhere I will appreciate your help.
Pazouille
The Trouble With Text
hey people... i have a question about using text with Macromedia Flash MX. i'm a little new to Flash, but i know most of the basic stuff. anyway, i want to have the text spacing spanned out at first, and then create a tween of some sort to make the text "scrunch" together back to normal size. i know this is probably a really easy question, but i've tried and tried and i just can't get it to work! lol...thanks for all your help.
-nathan
Text Trouble
hey,
i'm populating a dropdown box dynamically and need a little help..
here's a piece of my script:
Code:
drop1.addItem("PT502 1/2" Impact Wrench");
i want the box to display 1/2".. how do i tell flash to take the quote literally? i imangine this has to do with unicode, but i dont know how to do that...
thanks,.
-myk
Text Box Trouble...
I have a text box with a scroller on it and I've put some of my friend's info in it and then i went to test movie and is said exporting to flash and w/e, then when it showed it, there was no text, jus a bunch of squares , so I when to the text box and deleted all the text and just typed "hey" in it and i click tets movie and there was still just a bunch of squares... whats wrong!?
I'm Having Trouble With Scrolling Text?
Hi..Basically I want to be able to produce a text box which you can scroll up and down with a bar at the side.
When you roll over the down button the text should automatically scroll and not stop until you roll off!
The best example i can find of this is at: http://www.habitat.net - you will find it in the "Press" section (on the English version).
Hopefully someone can help me. I also want to be able to control the type face and use different colours within the text, just as they have done on habitat's site.
Any open source files for flash 5 would be most appreciated!
Thank you very much!
Leo
Trouble With Text Field
Hello I am having trouble moving a dynamic text field could someone please help me with some sample source code
Dynamic Text Trouble
Im loading an external txt file into a dynamic text field but my problem is i cant get it to display right in the text field what im trying to do is get the text to display like so
1
2
3
instead all i can get is
1
2
3
is there anyway to get rid of those extra spaces so the text lies beneath instead of spacing itself out like that? is it done in the txt file itself or somewhere else any help would be great thanks
HTML Text Trouble
I get this error message from a dynamic text field set up to render text as html.
Scene=Scene 1, Layer=Content, Frame=3: Line 1: ';' expected
about.htmlText = "<B>ABOUT HYPNOTISM</B><BR><BR>What Is Hypnotism?<BR><BR>Yes, it's true, I did invent hypnosis! Hey, someone had to. Actually, nobody really knows when or how it came about. Hypnosis is the power, words have when surrounded by one idea or thought. Wow, lets take a look at this! I thought you had to be in some kind of weird, unconscious, trance to be involved with hypnosis.<BR><BR>No, it really only involves weird unconscious trances when you want it to be that way. We are talking about the "power words have," when surrounded by our complete attention. As we surround our attention on one idea our thought, amazing things happen. We forget how much time ticked off on the clock when we were experiencing hypnosis. Remember the last time you were involved in a really good movie or reading a good book, or working on your computer at all hours of the night?<BR><BR>Did you realize you were in the "hypnotic" condition? As you were in this condition, did your work seem effortless at times? Did you feel comfortable? Did you feel relaxed?<BR><BR>Have you ever listened to a song that brought you back to a different time and place? Have you ever smelled a fragrance that brought a memory or series of memories back to you?<BR><BR>If you answered yes to any of these questions, you will be a great hypnotic subject! You will achieve almost any goal you desire."
Can anyone explain why the text wont render and I get this message?
Cheers
Studentmonster
Trouble With Text Transparency
Recently, I have been working with a template that I bought and downloaded. I am running into a problem, though. When you open the .fla file and move the timeline along the top of the movie, you will see the words "Night Clubs" come up. First smaller, and then larger. The larger version is semi-transparent. This effect also happens a couple of times later in the movie. However, when you export the movie, or even go to Control>Test Movie, the large text comes up non-transparent. Can anyone explain this to me, and suggest the ways to get around this? The .fla file can be downloaded here:
http://webpages.charter.net/dj_nrg/intro.zip
Thanks, in advance.
[F8] Having Trouble With Text In A Template...please Help
Hey all,
I just purchased one of those pre-designed templates to spruce up my website a bit...the one I got was at http://icetemplates.com/show-template-1929.html, as you may need to see the template to answer my question correctly. Also, I'm using Flash 8.
As you'll see on the template, if you click the "Services" link - it's the one with the camera - it'll bring up an extended window with some text. So here's my problem. The text that's highlighted in yellow seems to be able to bring up a link, as once you move the mouse over it, it goes from a cursor to the hand. What I want to be able to do is change that yellow text (which I've already done, no problem)...but make the text below it change based on which item they click.
For instance, the first yellow line is going to be "wedding photography", and when they click it, I want to have a paragraph or two about my wedding services. The next line will be "product photography", and when someone clicks that, I need the wedding stuff to disappear and have info on my product photography services come up. I was hoping to be able to do this with layers, but I'm not sure if that's possible.
Can someone please let me know the easiest way to achieve this. I struggled through the rest of the site and actually figured out most of the issues, but this one has me pulling my hair out now for two days.
Thanks a bunch!
Brian
[F8] Text Field Trouble
This is my situation.
I have a few words on the stage. They have been modified and are Movie Clips.
These words form the sentence,” Bob is in the house." However the words are scrambled up. The idea is that these words will be part of a sentence building game.
I have created a “dynamic” text field using the….. this.createTextField…..method.
I have it set up so that when the user clicks (onRelease) on any one of the words on the stage, that clicked on word leaves its location and enters into the TextField.
I have a (MC)button alongside the text field . The purpose of this is to check the content of the TextField and see if the words that the user sent into the field form a proper sentence.
I have been unable to connect the check button with the content of the field. I have tried ….onChanged method as well as addListener, combined with a conditional statement. Anyway what ever I have been doing is incorrect.
The Button (Movie Clip) I am using is not a component.
I would appreciate some help with this.
Thanks for your time
Mango
[F8] Having Trouble Getting Text To Show
I am making a quiz file where i would like a summary movie clip (showing how well/poorly the learner did) at the end. In my "actual" file, i have a separate .as file that has the code that is shown in the example. I am not getting the summary movie clip or text to show at the end. Can anyone tell me where i've gone wrong?
[F8] Text Field Trouble Please Help
The problem I am having is this.
I want to insert text into a dynamically created text field that is nested in a movie clip. I want to insert this text from the main time line.
What I have done is this.
Created a graphic on the main time line and converted it into a movie clip.
I named this clip "Bob_mc"
I then went into the library and created a new movie clip.
I called this clip "Rex_mc"
In "Rex_mc" i used the this.createTextField action script and called this text field "My_txt"
I then edited the Movie clip "Bob_mc" by adding a layer and nesting " Rex_mc" on that added layer.
I have attempted Bob_mc.Rex_mc.My_txt.text = "etc etc etc"
and a thousand other pathways and I have yet to be able to insert text into this field from the main time line. Can someone tell me how I can make this happen . Thanks for your time
Mango
[CS3] Trouble Modifying Text...
Hi everyone,
I'm experiencing some difficulty modifying the text in this Flash Template that I've downloaded. I've done this countless times before but just can't figure this one out (I'm trying to change the menu text).
You may download the .fla file here:
http://cyrixweb.net/NANNY.fla
Any guidance/suggestions would be greatly appreciated.
Trouble With Text Scroller
So I know how to create a dynamic text box, multiline, give it an instance name, and attach a UIScrollBar to make it scroll.
The problem is when I paste the text I want to use into the text box the text box automatically becomes resized and i can't scale it back down to fit in the area I want. The text box spills out of the window I created.
Can someone please tell me what I'm doing wrong?
Trouble Displating Xml Text Via Css
Hi i am strugeling to get a text loaded from xml displaied with an embeded font and styled with css.
The following exemple works if i use the TextFormat class, and the xml traces correctly. But with the css the swf compiles blank.
Thanks for your time.
xml:
Code:
<?xml version="1.0" encoding="utf-8" ?>
<data>
<header>Welcome...</header>
<body>
<![CDATA[<p>Lorem Ipsum is simply dummy text of the printing and typese <a href="http://google.com">RSPCA</a> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum </p>]]>
</body>
</data>
css:
Code:
a{
color: #0000CC;
}
a:hover{
color: #FC3636;
text-decoration: underline;
}
p{
color:#ff0000;
font-family:foo;
font-size:12;
}
as:
Code:
[Embed(source='WHICRG__.TTF', fontFamily="foo")]
private var myfont:Class;
private function init(e:Event = null):void
{
removeEventListener(Event.ADDED_TO_STAGE, init);
Font.registerFont(myfont);
loader = new URLLoader();
loader.load(new URLRequest("test.xml"));
loader.addEventListener(Event.COMPLETE, onLoader);
}
private function onLoader(e:Event):void {
xml = new XML(e.target.data);
label = new TextField();
label.width = 500;
label.embedFonts = true;
label.autoSize = TextFieldAutoSize.LEFT;
label.antiAliasType = AntiAliasType.ADVANCED;
label.wordWrap = true;
label.x = 100;
label.y = 100;
addChild(label);
cssLoader = new URLLoader();
cssLoader.load(new URLRequest("test.css"));
cssLoader.addEventListener(Event.COMPLETE, onCss);
}
private function onCss(e:Event):void {
var style:StyleSheet = new StyleSheet();
style.parseCSS(loader.data);
label.styleSheet = style;
trace(xml.body);
label.htmlText = xml.body;
}
Trouble With XML And Dynamic Text
I've attached the code below. It is only displaying the last entry. How can I get it to display all of them? When I trace list[i] it outputs all of it.
Attach Code
Code:
var list:XMLList = xml.na.officelist.office;
for( var i:uint = 0; i < list.length(); i++){
na2_txt.text = list[i];
}
Dynamic Text Trouble
Im loading an external txt file into a dynamic text field but my problem is i cant get it to display right in the text field what im trying to do is get the text to display like so
1
2
3
instead all i can get is
1
2
3
is there anyway to get rid of those extra spaces so the text lies beneath instead of spacing itself out like that? is it done in the txt file itself or somewhere else any help would be great thanks
Trouble Using <img> Tag In Text Field
I am working on my wedding website, and everything I have read says I can use the <img> tag to place images into text fields using HTML tags. I use loadVars to load HTML text into a dynamic field, and it puts space in my text for the picture, but displays it over the edge of my text box, shifted something like 30 to the left of where it really should be, straddling the edge of my text box. Any help would be appreciated, as I am at my wits end on this.
Trouble With Text On A Button
I'm sure I'm doing something wrong when I make a button that has text on it. The button works on the rectagle under the text, but is not "clicable" if you click directly on the text. For example, I'm making a button that says "replay." Here are the steps I took:
I drew a rectangle. Then a wrote the text "replay" on top of it. I highlighted all of it and converted to a symbol and finished the button. You can't click on the text.
I also tried not putting the text on, creating the button, then adding text on the completed button. Still no good.
What am I doing wrong?
Thanks.
Trouble Getting Text To Fade In And Out
i am having trouble with adobe flash player. the web page is http://www.webdevelopersnotes.com/tutorials/adflash/flash_web_site_des​ign_tutorial_fade-in_and_fade-out_effect.php3, and i have tried this, and it is not working. the text just sits there. did i do something wrong, or is the software (flash player) not working properly?
Thanks.
Trouble With Text Fields
Hi, I'm trying to figure out how to code text fields in Flash (and I'm new to Action Script, at least in going beyond basic interactivity). Problem is, this is for a client and I'm on a deadline.
The user has to type a particular number in a textfield, then a particular number in a second textfield. The numbers are automatically added and in a third textfield, the answer is displayed. There are other examples in the exercise where four or five numbers have to be added, and in one case a couple numbers are multiplied.
Does anybody have any ideas?
Thanks,
Glenn
Trouble With Scrolling Text
Hi I have a textbox that I've tried numerous different ways to scroll but am having absolutely no luck. I have uploaded the file for those who may want to have a go at helping to fix this problem I am having.
http://www.bobvideo.co.uk/downloads/events.fla
I am very grateful to those who try to help. Thanks in advance.
Dynamic Text Trouble
I created a dynamic text box and masked it. However, whenever I change the text of the dynamic text box object. The text is not changing however when I check the attribute .text the text is changed.
I have the fonts embed and tried the to change the text manually (hard code it) and read off text file. The font is in library and has a linkage.
There is someting wrong with my setup, I am sure (duh!).
The following is my code:http://pastebin.sekati.com/?id=Vinny@b5fe5-a4f08814-t
Any suggestions?
Thank you,
Vinny P
Having Trouble Getting The .text Of Child
Hi,
I have a sprite called newCircle. It has two children: over (sprite) and label8 (textfield). I can access the alpha value of "over", but I'm trying to set my variable to the value of the textfield label8 when clicked.
Code:
newCircle.addChild(over);
newCircle.addChild(label8);
this is inside my event listener for CLICK but just returns null.
event.currentTarget.getChildByName("over").alpha = 0;
_firstCard = event.currentTarget.getChildByName("label8").text;
Any help is greatly appreciated,
Tony
Dynamic Text Trouble
Well...
I have a dynamic text box. The text within it is loaded from an ASP file (but that really doesnt matter) and i wanted to know if there a way to check the text inside the box. the asp file will load in some text and if you are not logged in it will change the text inside to "login to see info"
i thought of just saying
if(_root.textbox == "text"){
_root.textbox = "login to see info"
}
but it doesnt work. if i make the information undefined then this works
if(_root.textbox == undefined){
_root.textbox = "login to see info"
}
so i think there is some way to make it work.
Thanks for your help
Stupidsaint
Trouble With Text (from Illustrator)
Howdy - any Illustrator-savvy Flash experts out there?
I am converting a map created in Illustrator into a Flash document. The map has text labels in it that converted quite nicely. However, they don't show up when I "test the movie". First I kept the text in the same movie clip as the objects it was labelling, then I tried moving all the text to it's own movie clip. The movie clips are linked to checkboxes so the user can turn on and off the different layers. But even in it's own movie clip with it's own checkbox the text is still not showing up. However some leader lines that I also brought over from Illustrator work fine, as does the object art itself.
Any clues as to what the heck is going on?
Thanks in advance!
Trouble With Text Fields
Hi, I'm trying to figure out how to code text fields in Flash (and I'm new to Action Script, at least in going beyond basic interactivity). Problem is, this is for a client and I'm on a deadline.
The user has to type a particular number in a textfield, then a particular number in a second textfield. The numbers are automatically added and in a third textfield, the answer is displayed. There are other examples in the exercise where four or five numbers have to be added, and in one case a couple numbers are multiplied.
Does anybody have any ideas?
Thanks,
Glenn
Trouble With Dynamic Text
Hi there...
I'm trying to get 3 variables from my ASP-page into Flash. But it ain't working...
I was told to use this code (part of the code of the ASP-page containing the .swf):
<param name="movie" value="game.swf" />
<param name="quality" value="best" />
<param name="phone" value="0673755324" />
<param name="highscore" value="235" />
<param name="username" value="Peter" />
And this is the code I'm using in Flash:
ActionScript Code:
loadVariables("test.asp",0);
Can anyone tell me what I'm doing wrong?
Thnx...
Leon
Having A Lot Of Trouble With Text Files
I figured out how to load a text file. I am also able to output the text i read in, im a dynamic text box. But I am having a real lot of trouble using the values from the text file.
This is for my high scores table in the game I'm making.
I want to be able to replace a score for example:
score10 with the new highscore;
does anyone have any idea on how to help me ...
Thanks
Mike
Trouble W/ Dynamic Text Box
Hi.. I'm trying to load text in HTML format from a text file....into a dynamic text box. It works great at the root, however, when I try to place the text box inside a nested movie clip that moves around, I can't get the text to show up.
Shouldn't I be able to access a text box with this variable "_level0.text" ANYWHERE by creating a dynamic text box and assigning the variable name to be "_level0.text"?
Here's a partial dump of the output.
Level #0:
Variable _level0.$version = "WIN 6,0,21,0"
Variable _level0.text = "
<b>Master of Science</b>: 1993 - 1996
<font color="#330000">Miami University: Oxford, Ohio</font><br>"
Movie Clip: Target="_level0.menuclip"
Trouble With Loading TEXT, With External SWF
I have a website that so far consists of 2 .swfs, a Main.swf and a News.swf. The main.swf automatically loads the news.swf into itself when you go to it. However, the News.swf is supposed to load seperate text, "news.txt". The text does not load when you go to the page, but, if you access the news.swf file all by itself it loads the text just fine. Also, the tricky thing is, if you go to the Main.swf, and then hit "news" in the navigation, it reloads the News.swf like it was never loaded to begin with, and the text appears just fine.
help!!
go here:
http://www.dillusion.com and go to "launch beta test"
here are the swfs:
http://www.dillusion.com/news.swf
http://www.dillusion.com/main.swf
Trouble With Scrolling Text Field
sorry if this is dumb -- you guessed it, i'm a newbie...
the malfunction:
have a scrolling text field linked from navigational elements. you click on nav, text loads correctly. click on scroll up or down buttons, text scrolls correctly...this all works fine for awhile. then it breaks -- and by "breaks" i mean that the scroll buttons suddenly fail to initiate scrolling of any kind, and clicking on alternate nav elements (not the scroll buttons) brings on mad fits of uncontrollable scrolling.
help??
Trouble With A Tutorial Of Scrolling Text
i followed a tutorial that showed me how to create a smooth scrolling text box. It had me create the text i wanted to scroll and then tween it. then, it had me command my "scroll down" button to play the tween when it was rolled over and stop the tween when it was rolled off of. then, it had me create a MC with nothing inside of it except actions. It was supposed to make the text go Up when it was played. so, it told me to command the "scroll up" button to play that movie clip when it was rolled over and stop that Mc when it was rolled off of. now, I got the scroll down button to work just fine. When its rolled over the text scrolls down. and it stops when the button is rolled off of. BUT, the scroll up wont work. when i roll over it it says TARGET NOT FOUND, and when i roll out of it says the same thing. i think the problem is that Im putting this whole movie clip text thing into another movie clip. whenever you push a button on my site, an animated MC of a box comes up, then the text fades into that box. from there I want the text to scroll. I Downloaded the .fla file of this tutorial and whenever i put it into my MC box it wont work, but when i put it onto my main stage it does. how could i fix this?
Trouble With Dynamic Text Fields
When I put the text into a dynamic text field it looks just fine. But when I test the movie, the text looks very jagged and bad - I guess aliased is the right term here. Why is this happening?? I can't figure it out for the life of me and I need to get this website done. Please help!!!!
Thanks.
Trouble With Dynamic Text Fields
When I put the text into a dynamic text field it looks just fine. But when I test the movie, the text looks very jagged and bad - I guess aliased is the right term here. Why is this happening?? I can't figure it out for the life of me and I need to get this website done. Please help!!!!
Thanks.
More Trouble With Dynamic Text Fields
I'm trying to make only certain lines of a dynamic text field bold. But when I test the movie, ALL of the text is bold. Why? Why? Why?
Please help! Thanks.
More Trouble With Dynamic Text Fields
I'm trying to make only certain lines of a dynamic text field bold by selecting the desired text and clicking the "bold" button in the properties inspector. But when I test the movie, ALL of the text is bold. Why? Why? Why?
Please help! Thanks.
Trouble Showing Unicode Text
I created a file where a french version of text is loaded trough a textfile, formated in UTF-8.
http://www.vanremoortel.be/p2003-fr%20agenda.swf
Here, the text is like it should be, INCLUDING special characters like é and ŕ.
When I load this movie into an other movie -main movie with menu- there the text does not show.
http://www.vanremoortel.be/p2003-intro.swf
HOW COMES?
thans for your help.
Bert.
Having Trouble Masking Dynamic Text
Hello all!
I am attempting to mask a dynamic text field which pulls it's value from an asp page. I can get my text field to populate just fine without my mask layer, but once I mask it's layer, I can no longer see my dynamically placed text. Once the mask is removed - whala! My text is back.
Any suggestions??
Thank you in advance!
:o)
Dynamic Text Color Trouble
I am using dynamic text with a scrollbar component, nothing fancy.
My problem is that I want to have different colors of text within one box, but every time I change the color of some text, it will change the color of all of the text.
Any help is greatly appreciated, thanks!
Trouble Loading An Outside Txt Into Dynamic Text
ok
here's my problem
i have outside text in a .txt document and im loading it in a Dynamic text box using "loadVariablesNum"
and it workd fine if the text box is sitting in the main timeline, but if it is inside a movieclip that is on the main timeline... it doesnt work
so in other words
how do i get dynamic text to load the .txt file if the dynamic text box is inside a movie clip that is then on the main timeline?
is it a (_root.loadVariablesNum() ) call? or a _parent. or _global? im at a loss and if that isnt fun enough... how would the code look if the movie clip was in multiple scenes? is there a way to load the .txt and file it for multiple clips to pull the info?
thanks
-c
'Lil Trouble With Text Scoll Bar Componet
Hi,
Actually I have the scroll bar scrolling my text quite easily, and resized the scroll bar itself with little problem. My problem is, in viewing the .swf in the flash player, the scroll bar works perfectly. Viewed in a browser however, there's this annoying thing happening that when I scroll to the bottom of the text field, the bar of the scrollbar stops at around 15 pixels before the bottom arrow. This happens with my mouse scroll wheel as well. Scrolling upwards, the bar goes all the way to the top.
Any suggestions or known issues with this? I can email my .fla if neccessary.
In advance as always, many thanks for any help.
Claude
Trouble With LoadVariables Ans Ascii Text
Hello flashers!
I have created a trivia game that uses the loadVariables() function to load questions from a text file into an input text field. The problem I'm having is that for SOME of the questions, the spacing is not working properly. The strange thing is that I have done nothing different for these questions that I have done with the questions that are working.
When I run it at design time, everything works just fine. When I run it through a browser online, things get funky.
Here is the link:
http://members.shaw.ca/kitbin/trivia/index.html
The text files I use follow this format:
variable1=1&question=Where is Mile High Stadium?&answer=A. Denver
B. St. Louis
C. Green Bay
D. Plano
None of the questions are spaced properly when I collapse the spacing like this:
variable1=1&question=Where is Mile High Stadium?&answer=A. Denver
B. St. Louis
C. Green Bay
D. Plano
I end up with the same problems when I insert ascii characters for carriage returns.
Any suggestions out there?
|