Help "enhancing" dynamic text
Im am currently working on a flash website and have succeeded
in making a scrolling text area... the thing is the text is dynamic
and you can't change like one word into one specific font... i've
been also trying to link this certain word to a different frame in
the scrolling text area but i can't! also i want to make an image
appear when you "mouse over" a certain word in this dynamic text
area. Any help would be much appreciated thank you.
Hi kglad,
Thank you for the note. I have gone over the Actionscript and
can find no obvious flaw. Can you tell me how a property might be
assigned before the text is loaded? Could network traffic affect
this?
I did some tests during peak usage times.
The tests of the project seem to indicate that once the error
was encountered and the content reloaded (keeping the same session)
that the error would not reoccur. Closing the session and browser
and er-entering resulted in no error.
However, closing the session then deleting cookies and/or
temporary internet files then starting a new session caused the
problem to reoccur. I could delete just the cookies and the problem
would reoccur. I could delete just the temporary internet files and
the problem would reoccur.
Again, the error, when it does occur, seems to affect some
text fields more than others and never consistantly. Its a moving
target.
Thank you for your earlier clue.
Tim
Similar Messages
-
Newb needs help with dynamic text
Hi Everyone,
I don't like being a newb - but that's how it is...
I'm trying to create a multipage registration form that
allows uses to register products.
The first page asks for name etc, and on the second page I
want it to say "Welcome "+username "!" - that sort of thing...
The problem is I can't get it to keep the dynamic text values
accross the pages.
I can get it to repeat the input on the first page with this
code:
_root.firstname_txt.onChanged = function() {
_root.firstname_repeat.text="Hello
"+_root.firstname_txt.text;
However when I call it on the second page it is undefined:
second_repeat.text="hello "+_root.firstnamt_txt.text;
trace (_root.second_repeat.text);
I'm sure this is something simple and I'm just a programming
dunce...
Any help is appreciated.
taif your textfield (_root.firstname_repeat) doesn't exist on
the 2nd frame, its text property will be undefined.
to remedy, either extend your textfield's existance into the
frames needed or use a variable to store its text property (in your
onChanged handler) and use that variable to retrieve the value you
need. -
Hi, I was just wondering if anyone could help me out.
Basically, I'v created a dynamic text on the main timeline
with an instance name of "score". I then created a button within 2
movie clips. The idea is that when the button is pressed, I add to
the score. The code I'm using on the button is
on(press){
_root.score.text +=20;
I'm not an experienced actionscripter, I was wondering if
anyone could maybe tell me where I'v gone wrong and what to do to
make this work. Thanks xDHmmm.
Well officially the .text property of a textfield is a string
so what will happen is that the 20 gets turned into string and
concatenated (or appended) the the string value in the text
property.
Can you clarfify the problem? Is your textfield changing or
not?
If it is changing then you will need to do something like:
_root.score.text = Number(_root.score.text)+20;
That requires that a valid number already exists in the
textfield. It might be safer to track the score in a separate
variable and then assign it to the textfield's text property each
time it changes.
If its not changing then try putting a trace in to see what's
happening:
on(press){
trace("textfield is:"+_root.score)
_root.score.text +=20;
If you see 'undefined' then it may just be a typo - perhaps
you called it Score with an uppercase S for example. If its defined
and nothing is visible then it could be that you've embedded fonts
without numbers or something like that. -
Help with dynamic text and and css !
My second question of the day.
I'm trying to build a feature in my app in which the user can
hide/reveal
bolding and or
italics and or
underlining. The text is being loaded in from an xml file
and I was thinking about styling it with css in order to get the
underlining. My problem is that the only way I can think about
pulling this off is to have a css style sheet that has a defined
bold,italic and underline class defined- - then another one that
just has a italic and underline class defined -- then another one
that has just a bold and underline class defined . . . and so on
and so on. You can see why I would prefer a much more streamlined
system. Unfortunately my experience with dynamic text styling is
somewhat limited. Hopefully someone can help me out here.Perfect. I knew it was some little snippet that I was
forgetting. I made a temporary fix of creating a 0% alpha box over
the button like a fake click area above the text, and that worked
but I know that it was a half-arsed way of working around it.
Thanks. -
HELP! Dynamic text is KILLING me!
I have a movie clip inside a movie clip with a dynamic text
box in that with the VAR, btntxt. From the main timeline I am
changing what the text box says by stating with actionscript
_root.movieclip1.movieclip2.btntxt = "hello, how are you doing?";
But this isn't working! The text box disappears on me and will not
load. Can anyone help with this?
Thanks, ColtonTry this:
_root.movieclip1.movieclip2.btntxt.text = "hello, how are you
doing?";
If that doesn't work, delete "btntxt" from the VAR field and
enter put that "btntxt" into the <Instance Name> field.
And make sure your movieclips have Instance Names of
"movieclip1" and "movieclip2" as well.
Chris -
Help figuring dynamic text feeds
hello folks,
I'm trying to set up a simple flash file that uses dynamic
text to fade from one text value to another. basically it's like an
alert page that an admin would update the text file with the
necessary alerts, so that the flash file on the page would load the
appropriate new messages.
The flash would work as such: message1 would fade in and
display for a desired time, then fade and be replaced by the 2nd
message (if there is one).
It seems to me that a perhaps a javascript function or
something would be more appropriate? but I'm not familiar with
working with dynamic text so any insight would be greatly
appreciated.
thanxHmmm.
Well officially the .text property of a textfield is a string
so what will happen is that the 20 gets turned into string and
concatenated (or appended) the the string value in the text
property.
Can you clarfify the problem? Is your textfield changing or
not?
If it is changing then you will need to do something like:
_root.score.text = Number(_root.score.text)+20;
That requires that a valid number already exists in the
textfield. It might be safer to track the score in a separate
variable and then assign it to the textfield's text property each
time it changes.
If its not changing then try putting a trace in to see what's
happening:
on(press){
trace("textfield is:"+_root.score)
_root.score.text +=20;
If you see 'undefined' then it may just be a typo - perhaps
you called it Score with an uppercase S for example. If its defined
and nothing is visible then it could be that you've embedded fonts
without numbers or something like that. -
Help with dynamic text and hand cursor
The buttons that I am creating are not displaying the hand
cursor. I tried searching for an answer, and have found nothing.
They are movieclip buttons with a dynamic text field. I already
switched them out to non-selectable text, and I am using:
b1.buttonMode = true;Perfect. I knew it was some little snippet that I was
forgetting. I made a temporary fix of creating a 0% alpha box over
the button like a fake click area above the text, and that worked
but I know that it was a half-arsed way of working around it.
Thanks. -
Dynamic Text with external .txt files
I need help getting dynamic text to display. I've used the
following tutorials (among others).
http://www.kirupa.com/developer/mx/dynamic_scroller.htm
http://www.kirupa.com/developer/mx/multiple_dynamictext.htm
In Flash 8 on last frame of maintimeline of movie, I have a
layer with a background image, 2 buttons and a dynamic textbox
(made scrollable) with scrollbar component. Textbox is given a var
of "content", and an instance name of "textBox", which is
referenced in scrollbar parameters.
I have created 3 text .txt files, and saved them to same
folder with movie .swf file. Text in files is preceeded by
"content=" on line preceeding text to correspond with var of
dynamic textbox. The files were created in Rich text format on Mac
OSX4.11 and saved with .rtf extension, then file extension was
changed to .txt (wouldn't save as .txt)
I've added the following actionscript to this last frame:
loadText = new LoadVars();
loadText.load("TEXTintro.txt");
//creating the loadVarsText function
loadText.onLoad = function(success){
if (success){
textBox.text = this.content;
else{
trace("Error loading external content");
Buttons have an instance name assigned with the following
actionscript:
on (release) {
loadText = new LoadVars();
loadText.load("TEXT1.txt");
loadText.onLoad = function(success){
if (success){
textBox.text = this.content;
else{
trace("Error loading external content");
When I test movie, I can see buttons on last frame of movie,
but they don't load any text when pressed, and "undefined" text
appears in upper left corner of text box before I press either
button.
I am getting the following Output errors:
**Error** Scene=MoonOfWintertime, layer=TextBox,
frame=2500:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Scene=MoonOfWintertime, layer=TextBox,
frame=2500:Line 11: Syntax error.
**Error** Scene=MoonOfWintertime, layer=TextBox,
frame=2500:Line 1: Statement block must be terminated by '}'
on (release) {
**Error** Scene=MoonOfWintertime, layer=TextBox,
frame=2500:Line 11: Syntax error.
Total ActionScript Errors: 4 Reported Errors: 4No more output errors, buttons still not working, but I got
my intro .txt file to load in textbox that loads with frame using
the following code I tried from another tutorial:
loadText = new LoadVars();
loadText.onLoad = function() {
textBox.html=true;
textBox.htmlText = this.textContent;
loadText.load("TEXTintro.txt");
Tried the following code with buttons, but doesn't work.
Other code suggestions?
on (release) {
loadText = new LoadVars();
loadText.onLoad = function() {
loadText.load("TEXT2.txt");
on (release) {
loadText = new LoadVars();
loadText.onLoad = function() {
textBox.html=true;
textBox.htmlText = this.textContent;
loadText.load("TEXT1.txt");
} -
Dynamic Text Field is not displaying foreign characters... HELP!
I have a dynamic text field that is not displaying foreign characters properly. They appear as boxes.
Here's what I've tried.
Under properties for the text field, I clicked on the embed characters button. In there, I pasted all the special characters I would need and clicked okay. Shouldn't this be enough for the text to display properly? What am I missing? Please help...More info: I'm noticing that in the actual dynamic text field in my .FLA file, if I type a foreign character like é, it pops up as a block. My family font is set to New Caledonia... is it possible that New Caledonia doesn't have those particular glyphs? The thing that doesn't make sense to me though is, last year when I made this card, it worked fine with New Caledonia... Any help is greatly appreciated!!
-
Dynamic Text won't Print - Ahhhh! Help!!!
I'm importing a png file using an xml file and a text file
for importing text. The image and text show up fine, but when I
PRINT, both don't show up. I"VE GOT TO GO LIVE WITH THIS TODAY. It
has to Print! PLEASE HELP!I found my own answer and thought I should share it with all
of you. Since I was so surprised that you had to use ActionScript
to tell the movie to allow dynamic text or a dynamic png files to
print. You basically add the following lines for each instance of
dyanmica text or for a movie clip. I was alos using a prebuilt
component, so I had to give this component an instance name.
function printpic(){
print(this.pic, "bframe");
I called the function printpic just to stay in alignment with
the instance name of the movie clip on the stage which was pic.
Then everything printed like it was suppose to.
D -
I am looking to create a good dynamic text scroller like the
one that
is a component. Any one have information on how to make one
it is
really appreciated.
Thanks
RandyIn your program and dynamic actions use structure RP50D for return dates (RP50D-DATE1 and RP50D-DATE2 to retrun values)
0000 06 75 I INS,0041,,,(RP50D-DATE1),(RP50D-DATE2)/D
0000 06 76 W P0041-DAR01='01'
0000 06 77 W P0041-DAT01=RP50D-DATE1
PROGRAM ZHPADYN.
TABLES : RP50D,
P0000,
P0041.
*& Form GET_DATE
* text
FORM GET_DATE .
DATA : I0041 LIKE P0041,
L_DAT LIKE P0041-DAT01,
L_DAR LIKE P0041-DAR01.
PERFORM READ_INFOTYPE(SAPFP50P) USING P0000-PERNR
'0041'
P0000-BEGDA
P0000-ENDDA
'1'
'NOP'
I0041.
DO 12 TIMES
VARYING L_DAR FROM I0041-DAR01 NEXT I0041-DAR02
VARYING L_DAT FROM I0041-DAT01 NEXT I0041-DAT02.
IF L_DAR = 'HR'.
RP50D-DATE1 = L_DAT.
ENDIF.
IF L_DAR = 'PE'.
RP50D-DATE2 = L_DAT.
ENDIF.
ENDDO.
ENDFORM. "GET_DATE
Hope this helps,
Puneet -
I'm having a small problem in my dynamic text box. For some
reason numbers are not being displayed correctly. I am working with
the Render Text as HTML box checked and am trying to get this
result :
01/15/09: No Meeting
01/15/09: Camping Trip
simple enough, however this is what i am ending up with:
1/1/: No Meeting
1/1/: Camping Trip
Here is the code i am using which returns the above result:
main_info.htmlText ="<p>01/15/09: No
Meeting</p>01/15/09: Camping Trip";
For whatever reason its not liking my numbers, is there
something that i am supposed to put in front of a set of numbers so
it displays it without thinking it is html code ?
Thanks for any help you can offer.I use this piece of code:
//Load Text
Stage.scaleMode = "noScale";
articleData = new LoadVars();
articleData.onLoad = function() {
box.htmlText = this.job1;
title.htmlText = this.title;
And its works fine on my computer(local), but when i upload
the files the text
dont appear.
I have tried to do another swf to test and the problem still
and i try to use
http://....same problem -
Help ! flash MX dynamic texts
i have created a dynamic text box to make it to a scroll bar
. when i select the top part of the text and change color black
change to red , then when i go to preview . how come the hol text
in the box also change to red color? i'm newbie in flash MX .. can
some one give me a solution? tksI think text boxes only render in one color. Your option is
to tell render the text box as HTML (look in the Properties
Inspector for the tect box for that option) and use HTML font
attributes in your dynamic text to control the color.
Hope that helps! -
Please Help -- Dynamic Text Wont Load :-(
Hi Gang,
I've just written a quick mail form in Flash8Pro/PHP - the
user enters their contact details & a message, and it sends it
off to the specified email address.
The feature works fine for the most part, but there's one
little problem. The dynamic text field that confirms the message
has been sent successfully isn't working properly. I'm using the
following php code to send dynamic text back to the flash document
saying the message has gone through OK:
print "sendresult=Message Sent!";
where sendresult is the name of the dynamic text field's
variable.
The strange thing is that the code works fine if the
sendresult dynamic text field is inserted into the main flash
document. It's only when I put the sendresult field into the movie
clip that holds the flash mail form (including the button with the
loadvariablesnum command), that the text won't update at all. I've
tried:
print "_root.enquirypage.sendresult=Data Sent!"
and
print "enquirypage.sendresult=Data Sent!", but neither of
those make any difference.
Any suggestions? Anybody know what's causing this problem?
Any help would be very very appreciated - I know I could probably
get around this by just setting the visibility of the dynamic text
field on & off when necessary and keeping it in the main flash
doc, but I'll be using this feature quite a lot and I'd really like
a proper/versatile solution. In case it's necessary, the
actionscript that sends the message off to the php is just:
loadVariablesNum ("form.php", 0, "POST");
Many thanks in advance gang,
- JayYour code loadVariablesNum ("form.php", 0, "POST"); will load
your variable sendresult in level 0 - the main timeline. If you put
the text field inside a movie clip it expects a local variable in
that movie clip.
Use _level0.sendresult or _root.sendresult as the dynamic
field's variable.
Or, instead of loadVariablesNum you could use loadVariables,
like this:
_root.enquirypage.loadVariables("form.php", "POST");
or, if you make the call from a button inside the movie clip:
this.loadVariables("form.php", "POST");
/uamg -
New and need help - drag and drop with dynamic text
So I'm doing this project and as an animator I'm not familiar with the whole action script side of flash
Okay so far I've managed to create the whole Drag and Drop feature and it works well, the thing is I want to make it so when you drag in object in the correct spot and new text appears, and I need like six different object with the dynamic text. but I have no idea how to integrated it in my code or where I should start!
So i based myself on some tutorial so theres some code in there that had dynamic text, but not exactly what i wanted
Your help would be much appreciated!
This is my code:
var counter:Number = 0;
var startX:Number;
var startY:Number;
six_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
six_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
five_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
five_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
four_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
four_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
three_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
three_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
two_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
two_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
one_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
one_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
function pickUp(event:MouseEvent):void {
event.target.startDrag(true);
reply_txt.text = "";
event.target.parent.addChild(event.target);
startX = event.target.x;
startY = event.target.y;
function dropIt(event:MouseEvent):void {
event.target.stopDrag();
var myTargetName:String = "target" + event.target.name;
var myTarget:DisplayObject = getChildByName(myTargetName);
if (event.target.dropTarget != null && event.target.dropTarget.parent == myTarget){
reply_txt.text = "Good Job!";
event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
event.target.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
event.target.buttonMode = false;
event.target.x = myTarget.x;
event.target.y = myTarget.y;
} else {
reply_txt.text = "Try Again!";
event.target.x = startX;
event.target.y = startY;
if(counter == 6){
reply_txt.text = "Congrats, you're finished!";
six_mc.buttonMode = true;
five_mc.buttonMode = true;
four_mc.buttonMode = true;
three_mc.buttonMode = true;
two_mc.buttonMode = true;
one_mc.buttonMode = true;where you have
xxx.text = ....
is where you're assigning text.
Maybe you are looking for
-
!!!!!!!!!!!!!
-
Using Photoshop Elements 6 Am trying to restore on a new computer from a computer that died. I had a backup. The files were originally on a drive H: on the old computer. When the old drive was placed in the new computer, it was recognized as E: Did
-
How to show Color Picker value (draw zone)
Hello to all How to make a selection of Color Picker direct the user can see the selected color? In my example - the color selected by Color Picker should paint the square. Any variants ? Preferably with DOM. var wColor= new Window('dialog', ' ');
-
Print Report & Download CSV link missing in Custom SQL Report template
Hi All, In Apex 3.1, I've been using the default templates till some color change issues forced me to create a custom one. The problem is my Download CSV and Print (excel,pdf) are gone in the new report. How would I reference them in report template
-
Dreamweaver crashes when working with BC-Site and pause for more then 10 Min
Hi, absolutely annoying and drives me crazy: when working at a BC-Site in DW and pausing for approx 10 min. DW crashes regularly (always!) when saving or uploading (which is the same). This sucks so deeply! Could you pleeeeease take care of this issu