What Went Wrong (Dynamic Text Box)
Hi Flashers, I have this problem that i only encounter after i finished the project. I have a dynamic text field w/c is capable to load different value depending on the buttons that will be click by the user. I have three frames on my first frame i have all the value i have txt as my variable and i have lots of value for this variable as i've said the value of the text field will depends on the clicked button and i have x as a variable for the scroll counter (here in the first frame i initialize it as x=1). Let me continue on the second frame i put the scroll condition and if it is scroll up the value of x=x-1 and if it is scroll down the value of the x=x+1. On the third frame i have this script stating gotoAndPlay (2) which means go back and play frame 2. The flow is this whenever i clicked a button the dynamic text field will change its value (cause i command that if a button is clicked gotoAndPlay(1) which means go back and play frame1 therefore the dynamic field will change its value and x =1) and it will go to the top or the minscroll but thats already working but that ok with flash player 4 and now im using flash player 5 for the hyperlink to work cause i used flash 5 in creating this project. The text wont go to its minscroll although the x is already equal to 1.
Hope somebody can help me to his/her coolest way!!!
Ciao, ods
FlashKit > Flash Help > Flash ActionScript
Posted on: 08-21-2001, 09:59 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Dynamic Text - Am I Doing Something Wrong
I'm wondering if I'm doing something wrong here or this is just how stuff works. I have a movie clip (myClip_mc) which has a dynamic text field called myText_txt . The movie clip has a bunch of key frames where other stuff changes, but the myText_txt field appears on each of those frames. I set the myClip_mc.myText_txt.text = "Some Text Stuff". Then I do a myClip_mc.gotoAndStop("label") and the vaule of myClip_mc.myText_txt.text is blank and I need to reset it with another statement myClip_mc.myText_txt.text = "Some Text Stuff". Am I doing something wrong, or is this just the way it works. I would think since the name of the dynamic text field instance is the same in the movie clip that it would remember it's value even if I go to a new key frame.
Thanks in advance to anyone willing to help me out.
What's Wrong With My Dynamic Text?
Below is the code i have used to make a bytes loaded and bytes total for a loading sequence but the text does not appear at all?? if anyone know's what i'm doing wrong i would greatly appreciate their help.
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
if (bytes_loaded == bytes_total) {
gotoAndStop(3);
}
this.loaded_txt = (bytes_loaded)
this.total_txt = (bytes_total)
thanks guys.
What The Heck Am I Doing Wrong? Want To Have A Dynamic Scrolling Text Box
Help! Can anyone tell me the stupid thing I am doing? Is it possible to load text, dynamically from an external source, into a v2 mx pro scrollpane?? I have an xml file feeding into my flash file and I am taking out html content from this xml feed. I just want to be able to load a scrollpane with this text.
I can dynamically create a scrollpane, attach a movieclip to it which has a preset, say 10 lines line, dynamic text box in it and load that into the scrollpane fine. Except if my xml loaded in text is more than 10 lines, it is cut off. So what the heck do I do??
thanks
frank
Wats Wrong With Dynamic Text Field?
i just added a dynamic text field and typed some text in it when i publish flash doesnt show the text. but when i right-click select all in the text box it shows.file attached
wats wrong ????
Dynamic Text Displaying Wrong Font
Hi guys.
Here is a project I'm currently working on:
http://www.bobthabuilda.net/RDT/
The loading screen in the beginning is supposed to use a special font that I've downloaded. I can see this font on my system when I test the live site online on my system, but when I get on other systems (which don't have the font on their system) it displays a default font, usually Times New Roman or the like.
I'm just wondering if there is a way to embed the font somehow so it uses the font I've chosen for it to use.
If anyone can help me I'd appreciate it.
Thanks.
[MX04] What's Wrong With My Dynamic Html Text Code?
Code:
titleText.htmlText = "<a href = "" + arrLinkHref[i] + "">" + arrLinkText[i] + "</a>";
When I do this, the text/hyperlink doesn't appear...that is, nothing appears at all. Yes, I've enabled the html attribute of the text field, and a trace statement correctly prints what I want.
Dynamic Text Field Displaying Wrong Font When Published
The header says it all..
When I publish anything set to dynamic text it displays some sort of Times New Roman font, but when it's set to static it displays fine. The font I'm using is plain Verdana, no html formatting or anything fancy. The problem occured shortly after I imported some text from illustraor.
Mer
Dynamic Text Field Displaying Wrong Font When Published
The header says it all..
When I publish anything set to dynamic text it displays some sort of Times New Roman font, but when it's set to static it displays fine. The font I'm using is plain Verdana, no html formatting or anything fancy. The problem occured shortly after I imported some text from illustraor.
Mer
Dynamic Variables - What I´m Doing Wrong?
Hi there,
i`m setting a variable and i want to link that to a mc dynamically
this one works!
_root.cartArray[0] = _root.items1.sticker;
the items1 is changing to items2, items3 and so on.........
so I put in a variable(_root.order) in the path like
set(_root.cartArray[0], _root.items+_root.order+.sticker); or
_root.cartArray[0] = "_root.items"+_root.order+".sticker";
won`t work.
So what I`m doing wrong here??
Any suggestions - thanks in advance
>mt
[f8]wrong Dynamic Mc Height
Hi
I am attempting to put a vertical menu bar, each made up of a text fields inside a mc. The mcs and text create fine, but I am having "FUN" trying to position them vertically.
In the snippet below you can see that I go round a loop and format the mcs etc - all works. However, when I use trace(linkBtn._height) I get the same value for every button and some are right, some are wrong.
Strangley If I pick one specific button out using the if(i==6) {... it tells me a different height (which happens to be correct)
What's going on? And more importantly, how do I get the correct heights.
Thanks in advance
Edward
Code:
for (var i:Number = 0; i < RootNode.childNodes.length; i++) {
//get the text for the designMenu links
linkText = RootNode.childNodes[i].firstChild.nodeValue;
if (i == 0) {
designMenu.text = linkText;
designMenu.setTextFormat(btnRollOff_fmt);
designMenu.antiAliasType = "advanced";
designMenu.embedFonts = true;
trace(i + "=" + designMenu._height);
} else {
//bring in a movie clip that will form the link
var linkBtn:MovieClip = attachMovie("link_mc", "linkBtn" + i, getNextHighestDepth());
linkBtn.createTextField("linkTxt", getNextHighestDepth(), 0, 0, 169, 0);
linkBtn.linkTxt.setNewTextFormat(btnRollOff_fmt);
linkBtn.linkTxt.autoSize = "left";
linkBtn.linkTxt.wordWrap = "true";
linkBtn.linkTxt.border = "true";
linkBtn.linkTxt.antiAliasType = "advanced";
linkBtn.linkTxt.embedFonts = true;
linkBtn.linkTxt.text = linkText;
trace(i + "=" + linkBtn._height);
if (i == 6) {
trace("number" + i + "=" + linkBtn._height);
}
}
}
What's Wrong With This Dynamic Button
I have created a moviclip to act as a button.
In my actions layer I have written the following code and placed it on frame 1 with a stop action.
b1_btn.butText_mc.buttonText.text = "Building Information";
there is also a different button (lets call that button Y) that sends the playhead to frame 5.
I placed a new keyframe in the actions panel at frame 5 that says stop();
but by creating that new keyframe in the actions panel, now the text "Building Information" does not populate into my b1_btn. do I need to copy this code and reinsert it everytime i place a new keyframe on the actions layer???
any help would be great.
Wrong Display In Dynamic Preloader Textfield
My preloader works fine when using this skript!
var numframes = _totalframes;
if (numframes == _framesloaded) {
gotoAndPlay ("Main");
} else {
loaded_a = Math.round(getBytesLoaded()/1024);
total_a = Math.round(getBytesTotal()/1024);
percent_a = Math.round((loaded_a/total_a)*100);
total = loaded_a + "/" + total_a;
percent = percent_a + "%";
gotoAndPlay ("preloader");}
But what if I don't want to preload the entier swf !?!?!?
inorder to let my swf stream I changed the aktion skipt to:
var numframes = 30;
if (numframes == _framesloaded) {
gotoAndPlay ("Main");
} else {
loaded_a = Math.round(getBytesLoaded()/1024);
total_a = Math.round(getBytesTotal()/1024);
percent_a = Math.round((loaded_a/total_a)*100);
total = loaded_a + "/" + total_a;
percent = percent_a + "%";
gotoAndPlay ("preloader");}
now my swf streams fine but my dynamic textfield displays 50% when playback starts !!!
what do I have to change in the rest of the skript for my textfield to display 100%
when playback is started ???
Thanks !
Scrolling Text Box References Wrong Text
I've created two scrolling text boxes on two different layers in MX, using the pre-fab scrolling text box/code that came in the assets library. The boxes are the same, except for the text in them.
The box works great on layer one. Scroll bar works fine. In the authoring environment, the box on layer 2 looks fine, but when I go into "test movie" mode to test its functionality, it is referencing the text from the box on layer 1. In the .fla, the text is correct, but in the .swf, it references the text from the original box.
Can anyone tell me why this is happening and/or how to correct it to reference the right text? Thanks-
Actionscript Created Dynamic Textfeild Uses Wrong Font. I Need A PC Instead Of Mac?
(deleted former similar post for very unclear title)
I have a font problem, and I suspect it's Mac-related. I use a PC at work, but I now don't have access to Flash 8 at work, and (of course) the font I need is not available for my Mac. Without a PC, I can't seem to fix my embedded font problem.
I have a dynamic text box created with actionscript and the font is linked in the library, but for some reason it won't work. It uses device fonts, no matter what. Can anybody out there with a PC help? Is that what's wrong, or have I embedded the font wrong? .FLA attached
Thanks in advance for any help ...
Eileen
Dynamic Arrays And Functions Calling The Wrong Objects...
the current movie in question is located here. The code in question is on layer "images" and frame 6.
The movie uses vars.txt to load filenames for the pictures I want to load. The idea is that, when the mouse rolls over each picture, they increase their _alpha. I know that the problem is with the variables and the way functions are handled.
How do I set up the onRollOver function for each object in the array to work with itself correctly?
What Am I Doing Wrong? Dynamic Load Jpeg Loader Component Pro04
Hi all - take a gander at this code -
Code:
function populateImage(){
flashData = _root.flashData;
var captureImageLocation = "file:///"+flashData.personImage.image.imagePath;
if( captureImageLocation != undefined ) {
photo_mc.scaleContent = true;
photo_mc.loadMovie(captureImageLocation);
}
}
populateImage();
This is in a frame with one of those new fangled pro04 image loader components named photo_mc. The dynamic content stream all works, no worries there, but I keep getting an error with regards to the image - "Error opening URL 'file:///Feature.jpg'" - the image is in the same folder as the swf. Any ideas anyone and can I then subsequently move the file to deeper folders?
thanks - this should be simple....
frank
Text In The Wrong Place
I have a number of text boxes, some of which are scrollable and others that are not. When the scrollable boxes are viewed in a browser the text are moved over to the right. Completely outside the boarders of the boxes. Can anyone help.
Whats Wrong Here? (text)
when i am looking at the stage and play my animation video i can see the text (my name) and other objects fly around the screen and everything works fine... when i go to "test movie" all of the other objects show up on the screen except for the text (my name) this also happens when i publish preview in flash...... no text?!?
What's Wrong With My 'Fading Text'?
Hi,
I can't get help from other Flash Forum, hope that this forum buddies can help me to solve my simple question.
Pls see the attached file.
I try to make a simple fading text and no problem when I play it in Flash editor. But when I export it, the text seems cannot fade at all. Why?
They told me it's font type problem and I must embed the text, but even when I use Arial text the problem still exist.
Anyone can help?? Thanks!!
[F8] Calling The Wrong Text
OK so most of my code works. I have my swf at: http://rbelotte.net/work.swf
So I want the 6 colored "buttons" at the top to load text 1 through 6 from my external txt. and the block of colored "buttons" below the orange bar to load text 7 through 103.
The problem is button 1 works ok, but 2 through 6 do nothing, and the other buttons repeat text 1 through 9 then "undefined". What have I done wrong?
Here's my code:
var my_array=new Array();
dtext.html = true;
var buttonText:LoadVars = new LoadVars();
buttonText.onLoad = function(success) {
if (!success) {
dtext.htmlText = "<b>FAILED TO LOAD</b>"
trace("failed to load");
} else {
for(var i=1; i<104; i++) {
trace(eval("this.button"+i));
mc=eval("this.button"+i);
my_array.push(mc);
_root["mcbutton"+i].onRollOver = function(){
this.gotoAndPlay(2);
assignText(this);
}
_root["mcbutton"+i].onRollOut = function(){
this.gotoAndPlay(21);
dtext.htmlText = "";}
}
}
};
buttonText.load("buttonText.txt");
function assignText(who){
dtext.htmlText = my_array[who._name.substr(-1)-1];
}
Something Wrong With Dinamic Text
There's something wrong with dinamic text in MX.
i'm using Loadvariables to load a text from a txt file but the text appears without the punctuation.
This only happens in flash MX, i did exactly the same thing in flash 5 and it loads the text correctly.
In fact i could do the work in flash 5 but MX do a better publish.
this is a flash MX bug or i missing something.
tkx
Limiar
What Am I Doing Wrong With Text / Scrollbar ?
Help me please...
I set up my text to the scrollbar...
It ran great...
Until I ad a keyframe to the Text (to change it at another frame) or SAVED THE FILE (so I could... save the file)
It is teasing me by working and then breaking so easy. So frustrated with my inability to get this to work right. Why is it doing this?
Edited: 06/19/2007 at 09:56:23 PM by mynick123
Text Will Not Load What Am I Doing Wrong..?
This is driving me nuts. I want the text to load on the buttons (c1, c2, ect) I used Lee's button tutorial and it works fine. I just want the text to load dynamically onto the buttons. I've made another project that works PERFECTLY with the same code. It uses the same buttons from Lee's tutorial, but it will NOT work for me. It's driving me nuts.
Help is APPRECIATED.
http://rapidshare.com/files/10901576/test.rar.html
sorry for rapidshare, but I don't have my own host.
Loading Text File.What Am I Doing Wrong?
In my main timeline actions layer i have
Code:
loadVariablesNum("test.txt", 0);
Then in my text box named text1 the var. is
mytext.
Test.txt has mytext = "blah, blah, blah."
Can anybody tell me what I am doing wrong?
Thanks
Simplistic Text Boxes Gone Wrong
hi all,
my problem is this: i have created a simple flash site where on the main scene i have a dynamic text box with macromedia's own scrollbar in along side it. problem is when i write the text box out in flash i can scroll, but when i put in the simplest of code like loadVariables(bla bla.txt, "") it doesn't scroll anymore. the text appears so there is no problem with that, but the scroller doesn't want to play anymore.
one of the most simple things once again stops me dead!
thanks for any help
atocp
What's Wrong With _parent.this[variableName].text?
Can someone tell me what's wrong with code: _parent.this[variableName].text?
I need to be able to change variableName.
The Flash when compiling throws an error.
It doesn't seem to allow this to be in the middle.
BUT 'this' at the start IS allowed.
i.e. it doen't throw an error for:
code: this["_parent." + variableName].text
Unfortunaltey, this doens't allow me to do what I want to do!
The expressions for some reason is not the equivalent of:
code: _parent.instanceName.text
(Where instanceName is the instance of the name that variableName was holding.)
HELP! I'm pulling my hair out.
I can't see a way out!
Thanks.
OM
(And the above problem ISN'T the same as the other posting I made. That had a similar problem of using 'this' on the right hand side of the equation.)
Simple Text Variable Gone Wrong
Can anyone help me with this? I have spent the last hour and a half looking through tutorials and tweaking my file to achieve what should be a simle task.
I have an input text field located in a mc in my flash file with the variable name: nameIn
I have a dynamic text box later in the file which I want to call the variable nameIn into. So far my code is this:
Code:
_root.content_mc.userName_txt = "Logged on as "+_root.content_mc.password_mc.nameIn;
It doesn't work, what am I doing wrong??!!
Arabic Text Running The Wrong Way
I need to place a series of words, in Arabic, in an array. When I copy the words from the original text document to the script window, the order of the letters reverses from right-to-left to left-to-right, so basically all the Arabic is being written backwards in Flash. Could anyone give me some guidance on how to deal with this? Many thanks in advance.
Formatting Text Field, I'm Doing It Wrong?
I'm making the move to AS 3.0, finally, and I'm running into troubles with formatting a text field created in AS. It loads the text fine, but it does not format it properly. What am I missing? Just an FYI, the text field is being created against a black background, hence the white text and border. Help!
Attach Code
stop();
//----VARIABLES
//TEXT FIELD
var txtWhat:TextField = new TextField();
//TEXT FORMAT
var txtBody:TextFormat = new TextFormat();
//EXTERNAL TEXT LOADER
var externalReq:URLRequest = new URLRequest("ZD_What.txt");
var externalLoad:URLLoader = new URLLoader();
//LOAD TEXT
externalLoad.load(externalReq);
//ADD EVENT LISTENER
externalLoad.addEventListener(Event.COMPLETE, textReady);
//TEXT FORMAT
txtBody.font = "Arial";
txtBody.color = 0xFFFFFF;
txtBody.size = 10;
//TEXT BOX
txtWhat.width = 532;
txtWhat.border = true;
txtWhat.borderColor = 0xFFFFFF;
txtWhat.height = 180;
txtWhat.wordWrap = true;
txtWhat.x = 110;
txtWhat.y = 13;
txtWhat.setTextFormat(txtBody);
addChild(txtWhat);
function textReady(event:Event):void
{
txtWhat.text = event.target.data;
}
Firefox Displaying Text Wrong
This is very odd!
We are working on this website for a danish jewelry designer, and i wanted the headlines to be a special font, so i made this flash file with a dynamic text field, displaying a variable.
Everything worked fine, untill we had to use danish chars like æøå. It is very strange, it seems like it works just fine in IE but Firefox is just displaying stupid things like ?? and stuff..
check out this link ( make sure to see it in both IE and Firefox ) and notice the top text saying Sølvringe
http://renderworks.dk/graugaard/inde...dukt&id=4&sp=1
the reason why it is called rw.swf?path=overskrift.swf is because we want it to be xhtml valid.
Wrong _height For Movieclips With Text.
Here's something odd...
If I create a static text box and put in 9 lines of text, in the properties the height of the box is 172 px. But if I then convert it to a MovieClip, give it an instance name of testText, and add the action
Code:
trace(testTest._height);
to frame 1 of the movie, I get the output: 160.5. This is with the little text selectable button in the text properties deselected. If I make the text selectable and run it again, I get the output 192.6.
Why are these different? And why are both of them wrong? How do you, correctly, determine the height of a textbox?
Thanks
nic
Director Movie Help---text Wrong
ok i haven't done to much with director but i am messing around and learning.
i spent a good bit of time working on a project for a friend and now on some computers it looks right and on some the letter e is on the line below the word welcome and the r is below enter. and the skip intro link is sometimes not visable unless you scroll down.
i was wondering if it has to do with the stage size or what. also on one computer the font is different. what can i do do make this more or less "universal" so everyone can see it properly.
here is the site any suggestions would be greatly appreciated!
thank you
http://www.geocities.com/adelesparrotmarket
Loading Variables From Text File. What Is Wrong Here?
Ok, I have 3 frames in my movie. On frame 1 it stops and pulls in the loader movie clip.
This clip has this action:
onClipEvent (enterFrame){
function myFunction(){
//data is loaded
_root.boo = container.boo;
_root.coo = container.coo;
trace(_root.coo);
//note, the above trace says "ready66"
if(_root.coo=="ready66"){
_root.gotoAndStop(2);
}else{
_root.gotoAndStop(3);
}
}
container=new LoadVars();
container.onLoad = myFunction;
container.load("test.txt");
}
It always goes to (3) even though _root.coo = "ready66" when I view variables. I have tried removing all the _root and just doing container.coo, etc.. I have also added more items to the text.txt file around coo.
Wrong Character In Input Text With Firefox.
I've searched for this but not found an answer (sorry if I missed it).
I've a text box which accepts email addresses however it seems to substitute the " character for the @ symbol when using Firefox.
I've tried using system.useCodepage=true
and embedding the font but with no luck.
The movie can be seen HERE
and the input field shows up after you've chosen who you want to make an appointment with and selected the date/time.
Thanks for any help.
Martin
[AS] MX: Wrong Refs In Loaded Swf That Loads Text?
Last edited by feynman : 2005-08-19 at 05:28.
Hi,
I'm loading various external swfs into an empty mc depending on a menu selection. All these external swfs load 1 .txt-file and 18 .jpg-images dynamically. These external swfs work very well on- and offline (if tested on their own), once they're loaded into the empty mc of the main swf, the text doesn't show up anymore - but the images do. Here's how each external swf loads the .txt-files into the appropriate mc "tc":
ActionScript Code:
var loadText = new LoadVars();
//
loadText.onLoad = function(loaded) {
if (loaded)
{
loadedText = this.loadMe;
defineTextFieldFormat(tc, "text_txt", true, false, null, true, true, false, null, "dynamic", true);
tc.text_txt.text = loadedText;
//
textStyle = new TextFormat();
defineTextFormatObject(null, 0xFFFFFF, "copy_condensed_plain", 1, 5, 5, 8);
tc.text_txt.setTextFormat(textStyle);
}
else
{
tc.text_txt.text = "****e, file didn't load!";
}
// var dummy = tc._height;// <- affects the proportion of the scrollbar
sbHeight = Math.floor((tfHeight / tc._height) * 100);
//
if (tc._height > tfHeight)
{
createScrollBar(sbWidth, sbHeight, sbDistance, sbLineColor, sbFillColor);// <- creates a scrollbar if necessary
}
delete ("loadText");
};
//
loadText.load("../text/testtext.txt");
ActionScript Code:
tf = this.createEmptyMovieClip("textFrame_mc", this.getNewDepth());
tf.drawRectangle(0, 0, tfWidth, tfHeight, tfBackground, 100);
//
tf._x = tfxPos;
tf._y = tfyPos;
//
tc = tf.createEmptyMovieClip("textContainer_mc", this.getNewDepth());
tc.createTextField("text_txt", this.getNewDepth(), tc._x, tc._y, tfWidth, tfHeight);
//
tm = tf.createEmptyMovieClip("textMask_mc", this.getNewDepth());
tm.drawRectangle(tc._x, tc._y, tfWidth, tfHeight, null, null);
//
tc.setMask(tm);
What am I doing wrong? Wrong use of "this"? Can't be, because the mc "tf" shows up?! Any ideas someone out there?
PS: Even if I hardcode the tc.text_txt.text = "rubbish"; it does not get displayed in the loaded state...
Thanks for a reply!
Input Text Question (posted To Wrong Forum 1st Sorry)
I would like to do this:
if 'checkmark1' is visible then in textbox1 write 'yes'
I have a form with check boxes.
The boxes are buttons that have a when clicked make check mark visible. I want it so that when the check mark is visible to write in the corrisonding text box (dynamic right?) hte word yes.
So I can have the variable to be submitted with the form.
Thanks folks
Wrong Keyboard Mapping In Text Imput Field
I'm trying to collect an email address in an input text box but when viewed on the server the @ and " characters are switched (like on a US keyboard). When previewing in Flash it works fine. Anyone experienced this problem before?
Joe
What's Wrong With My HTML Formatted Externally Loading Text?
I am trying to load in a text file into a flash movie which has some HTML formatting to it - there's very little i can find out about this on the web - it kinda works..
here's my external text file..
history=<B>History of BodyTalk</B>
<B>World Wide Focus</B>
The International Association (IA) <a href="http://www.bodytalksystem.com" target="_blank"> <font color="#0099FF"> www.bodytalksystem.com </font></a>
What's Wrong With My Externall-loading HTML-formatted Text?
I am trying to load in a text file into a flash movie which has some HTML formatting to it - there's very little i can find out about this on the web - it kinda works..
here's my external text file..
history=<B>History of BodyTalk</B>
<B>World Wide Focus</B>
The International Association (IA) <a href="http://www.bodytalksystem.com" target="_blank"> <font color="#0099FF"> www.bodytalksystem.com </font></a>
Input Text Boxes Displaying The Wrong Color
http://home.attbi.com/~xsleeperx2/as/as.fla
in the bottom left there is a button that says machine info, it's supposed to display text from a script but instead it shows up invisible. i can select it although it doesn highlight and copy it so i know the script is working b/c the text is there ... but i can't see it
any ideas anyone?
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.
|