Text In Action
Using some teaching from this great site I have embedded text in flash by putting the text in actions and then using dynamic text. Is there a way of having text in bold but not all of it, just example the title what should I do to make it bold.
Thankyou
FlashKit > Flash Help > Flash Newbies
Posted on: 02-01-2005, 03:46 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Cannot Paste Text Into Action For Text Scroller-i Get An Error
Hi guys!
ok hehe can anyone tell me whats going on here??? I am using a pritty cool little text scroller and need to use about 10 versions of the same one im doing in a flash file..so about on 10 different scenes.Anyhow for some reason this text here works when i copy it into the action for the text scroller:
content.expList = "Vibez Recordings was set up in '95 as an artistic outlet for London based, urban music producer, Dave Stewart - otherwise known as SUBJECT 13. The Vibez imprint offered its own unique brand to the sound of Drum and Bass, enabling the independent to gain credibility and critical acclaim within the genre. Through the fusion of jazz, funk, ambient soundscapes and deep drums, Vibez defined its sound as experimental and forward thinking..<br><br>"+"Subject 13's initial releases on Vibez Recordings and tracks such as 'Oceans' on Fabio's Creative Source imprint and 'Faith' on LTJ Bukem's Good Looking Records, have cemented '13 and Vibez as one of the original pioneers of the DnB sound, gaining him recognition in the UK scene and from abroad. After signing solo album 'Disclosed Knowledge' to Sony Japan, the 'Vibez Presents' compilation enabled Stewart the unique opportunity to highlight some of his talented new producers at Vibez Recordings, facilitating the international distribution of their music whilst developing Vibez growing status in the Far East..</font><br><br>"+"Vibez has always let the music do the talking and with 27 single releases, 2 albums and 1 compilation under its belt has managed to keep production quality and artistic values at a high level throughout its history. With artists hailing from places such as Russia, Estonia, Sweden, Holland, Finland & Germany, and affiliations with majors Sony and EMAP Performance Network, Vibez has always prided itself with diversification and experimentation of styles.<br><br>"+"Those of you familiar with Vibez will not be surprised at the development of styles that the label has undertaken for it's new wave of releases. With sister label Pauze set to release an eclectic format of music and Vibez concentrating on experimental DnB, with Artists such as Alaska, Nucleus and Seba contributing, expect more innovative and groundbreaking releases form the label.";
AND THIS TEXT DOES NOT WORK..IT HAS ALL SAME CODE BUT DOES NOT?:
content.expList = "Liquinova is: Sean McCaff (DJ-Producer)& Sven Figee (Keyboards/Producer)Sean McCaff and Sven Figee first started working together in 1998 on a lounge/dance project for the "Waterloo/Le Zoo" compilation (NY, USA), which had great reviews in the New York magazine "Time Out"...<br><br>"+"Having realized they had a great vibe when working together in the studio creating new sounds and beats, they decided to take things seriously.Liquinova was born.Combining the dance/electronic/DJ background of Sean McCaff with the musicianship and "acoustic" experience of Sven Figee, the Liquinova sound was released..</font><br><br>"+"Liquinova just licenced 5 tracks to Club Cocoon (The Hague, Holland) for their special anniversary lounge-cd, mixed by DJ Menno.In addition, PAUZE Recordings (London, UK) got some tracks coming out on their new "Pauze" compilation series – Volume 1 , Eclectic Development that is being launched autumn 2004.Liquinova is currently working on their first album, planned to be released winter 2004.This album will be a result of creative collaborations with various artists like Rose (vocals), Dez (vocals), Fammy (vocals), Bart (sax), Victor Muli (vocals), Subject 13 (vibez productions), DJ Menno and DJ Ramon..<br><br>"+"Get ready for a dive into the world of Liquinova.";
THE ACTIONS ON THE CLIPBOARD CONTAIN ERRORS-ACTIONS WITH ERRORS CANNOT BE PASTED IN NORMAL MODE IS ERROR I GET WHEN I TRY TO COPY PASTE TEXT.
IF ANYONE CAN HELP TELL ME WHY ID BE REALLY PLEASED!!THANKS DUDES!
CC
Link Text In Action Script To Text Box
Hi there, i'm trying to make some kind of a news scroller, was wondering how i can attach the 'news' text, to a text box through action scripting...
any help appreciated
thanks
Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Action Script Question: Where Is The OnRelease Action In The Action Folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Action Script Question: Where Is The OnRelease Action In The Action Folders
Action Script Question: where is the OnRelease action in the action folders
I’m working on a project and I trying to make it when you click down on a button that click will send you to a point in the movie and then a symbol will play from there. I know that you need to pick the key with the button on it in the time line and then I know you need to pick the button that you would like to assign the GoToAndPlay statement on.
But what’s really messing with me is where in the heck the on release or the on mouse down statement is in the little action a book when are looking in the action window.
Any help would be much appreciated.
Help With Action Text
I am using Flash 5
and I want to animate my text....I haven't used it in a while and I use to be able to animate the text but I no longer know where the option is....could someone help me
And also...how do I use Magic Flare in FLASH since its Macromedia
I created a hot Text flash in Magic Flare....and I want to import it to Flash 5 and use it in the JPG but It is a blur once its imported...
what do i guys
Thanx
Following Text In Action Scripting
I am looking for a sample file or tutotial on how i can make text follow the mouse, i am looking for the text to have personality ie: gravity and follow after one another
if anyone can help please help now
many thanx in advanced
Text Action Script Help
hey guys i have a problem and need some help (don't we all?)...
i have this text field where i want some text to appear one letter at a time. The only way i know how to do this is using keyframes and adding to the text field one letter in each keyframe. as u can imagine it's driving me insane and i'm sure there's a much faster and simpler way to do it with actionscript. do you guys know how i can do this?
is there some way to use a loop that increments the text until it's all shown in the movie?
Scrolling Text Action...?
Hello freinds,
When the mouse over on button text will scroll continuously till the text end and when the mouse release text will stop.
can any body tell me which is the action script for this?
Thanks!
Animated Text Action
I have been trying in vain to get a simple fade in text movie to appear on a web page by clicking a button (text symbol) on the same page. I am using Flash 5 and also tried creating in Swish 2.0. What am I missing? Does a template exist for this effect? Thanks for the assist.
If Text Has Been Loaded, Then New Action
Hello,
Could someone tell me how to code this: if the text in the first quote has been loaded/completed, then make the tween in the second quote happen.
Quote:
on(release){
loadText = new LoadVars();
loadText.onLoad = function(success) {
if (success) {
_parent.veld1.html = true;
_parent.veld1.htmlText = this.content;
}
}
loadText.load("auteurs.txt");
}
Quote:
new mx.transitions.Tween(veldmaskMC, "_alpha", mx.transitions.easing.Strong.easeOut,100, 0,2, true);
So I want to be sure if the text is there, before I make the tween happen.
Thank you!
Jerryj.
[ Help ] Action Script Odd Text
Hello .
Its been a while since i have been here , and i need some help plz .
I developed a chat application in flash with php backend -
here is the problem .
The text loads into the flash txtField from the top instead of the bottom . it's loading in from a txt doc with help from php does anyone have a clue as to why or some hints when i should start looking ..
thanks for the help .
Timothye
My Action Text Is Invisible
An odd glitch i've run into here. A while back I turned on a large number of fonts (using Mac's Font Book). InDesign had no trouble handling it, but several programs including Flash MX 2004 were slowed to a crawl.
To fix the problem (several days later) I turned off nearly all the fonts and went back re-organizing them and turning only only the ones I needed. Occasionally I would open up a document which was missing fonts, turn them on in FontBook and it was no problem.
The weird glitch I've run into though is that if I open up the "Actions" window in Flash, any code that appears in that box (for buttons, frames, etc...) is invisible. I can copy and paste it into a text document and it shows up - but it's impossible to see in flash - which makes programming difficult.
Has this happened to anyone else before (i'm on a Mac running 10.4.6)? I've tried uninstalling and re-installing the program, but to no avail. I've also tried to make sure that all of the basic fonts (ventura, geneva, etc..) are turned on.
Any thoughts would be great on what might make that text magically re-appear.
[F8] Text Input Action
Hi, I was wondering if anyone knows of a way, when an input text field is selected to hide an mc (either via _alpha or _visible). Or am I just wasting my time?
Thanks,
Robb
Add Get URl Action To Dynamic Text
I bought a template for dynamically generated text links generated using an array and some effects. I am trying to add a simple get url function to the buttons, which I can apply tot he background of the flash file. The problem is that the links only work when you click on the background but not where the text is.
When I try to add the get url function to any of the elements that came with the template it says that no actions can be placed on the elements.
Is there any way around this so that where ever you click the get url function will work??
You can view the buttons at www.3rdbasenights.com, they are the navigation links on the left hand side of the page.
Variables In A Text Field And In A Action?
Hi
I have called a variable using the following frame action:
Code:
Begin Tell Target ("../vote/bar1")
Go to and Stop (/vote/vote/:choice1)
End Tell Target
This has worked fine, and the movie recalls the variable and goes and stops at the appropriate frame.
but...I have now placed a text field on the same MC where the above action is placed, and i want to add the following action where by:
Code:
Set Variable: "textfield" = "variable called before (in go to and Stop action)"
It works fine if I call the text field /:choice1 but that is no good to me. How does it change if the variable being set is in a textfield rather than a frame action?
Thanks in advance
Hope you can help
Ash
How Do You Get Action Script Text To Disappear
I want to get my action script text to disappear when it is done, or after a certain period of time. How do I do that. Here is the actionscript that makes the dynamic text if it helps:
onClipEvent (load) {
text = " test ~test...";
x = 100;
y = 105;
sleep = 1;
kern = 8;
ykern = 15;
s = 0;
i = 0;
yc = 0;
xc = 0;
_root.letterclip._visible = false;
}
onClipEvent (enterFrame) {
if (i<text.length) {
if (s<sleep) {
s++;
} else {
s = 0;
while ((l=text.charAt(i)) eq "~") {
yc++;
i++;
xc = 0;
}
_root.letterclip.duplicateMovieClip("letterclip"+S tring(i), i);
setProperty ("_root.letterclip"+String(i), _x, x+(kern*xc));
setProperty ("_root.letterclip"+String(i), _y, y+(ykern*yc));
set ("_root.letterclip"+String(i)+".letter.value", l);
i++;
xc++;
}
}
}
Changing Text With Action Script
I have, hopefully, a simple problem. I am trying to create a flash movie that will act as a simply text editor. Users can type in text then select some and bold it, underline it, change color, etc. I got this working fine, however these changes do not show up in the HTML code unless you click in the text box and type something after you have already made changes (bold, underline, etc). When text is changed with code the variable does not pick up the new HTML tags. I want people to be able to edit text and save it to a txt file, but if the HTML tags don't show up, the changes they made won't either. I have an example of what I am taking about. You type in the box on the left and see the HTML code on the right. Notice when you bold some text it does not show up in the HTML code, but if you type again the tags all of a sudden show up. Is there code I can add to my buttons to somehow activate the text box and retrieve the new HTML tags?
http://www.gooweb.net/texteditor2.html
This is the code attached to the bold button :
on (rollOver) {
tText = eval(Selection.getFocus());
tField = Selection.getFocus();
tStart = Selection.getBeginIndex();
tEnd = Selection.getEndIndex();
tCur = Selection.getCaretIndex();
}
on (release) {
myTextFormat = new TextFormat();
myTextFormat.bold = true;
yo.setTextFormat(TCur, myTextFormat);
yo.setTextFormat(tStart, TEnd, myTextFormat);
}
Quotations In Action Script Text Ack
I am trying to utilise an image scroller, yet when I use action text that has quotes in it I get errors as it signifies something to the script..
ie:
_level0.masker.contentText:contentText = " he said,"what the heck is going on" , he shrugs and tries the board";
anybody know a solution?
Text Display With Action Script
I have been using Flash MX 2004 Professional for about 3 months, and I'm working on my first interactive marketing presentation in the Flash environment. I am trying to build a simple menu button that displays text on-screen when the mouse rolls over. Then when pressed, launches to a different screen in the presentation. I know it's probably not that difficult with the right syntax in Action Script, but for some reason I'm struggling. Any help is appreciated.
Thanks,
Lester
Random Action Script With Text
Hi everyone,
I am really new to Flash MX, as i have only been using it for one day, so any help would be much appreciated.
I have a list of 30 questions, such as All athletes are, all footballers are, and I would like to create a box which when I run the movie selects any one of these 30 questions on a random basis.
Does anybody know I can can set 30 questions (pieces of text) and then use a dynamic text box, to choose any one of these at random everytime the movie runs??
Please help
Thank you
Peter
Action Script FADE TEXT
Hi,
I'm new to flash MX, Usually I use the TWEEN to fade a TEXT, from ALPHA 0% to 100%, but I was wondering if I can use a script to do such thing. Because I notice that I'm loosing time.
So any example on how I can perform such thing with action script ?
Thank you,
gasma
Help: Scrolling Text Box Frame Action
I'm trying to make a scroll text block, and I've chosen this method:
scrollable text = "Huntress"
add newline add newline
"Lost in the woods in a never-ending
Pitch black, tall shadows, edges of pine
Needles glowing with a faint eerie
Green hue in the moonlight. The moon that must
Have shown somewhere, somewhere from way up high,
Outside. Not here. Here is a black dream
Standing in thin air with feet on the floor
Which way to go? They are infinite.";
Some how this isn't working, perhaps because I have many lines that skip to the next, with the "enter" button.
Is there some easy way to copy and paste this text into the code that this will work?
Animating Text With Action Script?
Hello.
I would like to create this effect using dynamic text and action script:
help.swf
so I can use it on many pages but not have to reanimate it and change the text.
Thanks.
Dynamic Text And Button Action
ok, I have two buttons,
when i rollOver BTNone, text slide out from a box.
when i rollOut the text slides back.
when I rollOver BTNtwo, the same piece of text changes,
but the movie is already going back to to frame 1.
If I get to my BTNtwo before the sliding movie gets back to Frame 1,
how can I make it stop in its tracks and go back to frame 24?
..
hope that makes sense,
here is the action from my BTN:
PHP Code:
on (release) {
_root.music.loadMovie("17years.swf");
}
on (rollOver) {
if (_root.info._currentFrame == 1){
_root.info.play();
_root.info.slider.btninfo="play 17"
}
if (_root.info._currentFrame == 24){
//_root.info.play();
_root.info.slider.btninfo="play 17"
}
}
on (rollOut) {
if (_root.info._currentFrame == 24){
_root.info.play();
_root.info.slider.btninfo="play 17"
}
}
How To Extend A Text Box Via Action Script.
Hi Flash folk,
If i add text to a text box dynamically then how do i extend the text box to fit all the text in it.( Will not know how much text will be inserted into the box).
Hope some one can help me out. At the moment i have a huge text box.
Thanks in advance...
Ivorsmalun...
Url In To A Button Action From A Text File
HI I'm trying to load a variable url in to a button action from a text file.
My text file looks like this:
&1_1_1="url 1.html"
&1_1_2="url 2.html"
&1_1_3="url 3.html"
&1_1_4="url 4.html"
&1_1_5="url 5.html"
&1_1_6="url 6.html"
and I'm putting this code on the timeline:
loadVariables ("urls.txt","")
and this on the button action:
var url;
url = 1_1_1;
on (press) {
getURL(url,"_blank");
}
But no success :-( could anyone help me please?
Many many thanks!
Resize Text In A Action Button?
I have created a action button in my movie which when clicked it opens up a weblink in the page it should do, but the text is really small in this button, how do i change the size of the actually text, i can scale the size of the box, but the text stays the same size.
Thanks in advance for your help.
Dynamic Text.....what I Can't Do With Action Script
Hi people,
I has on dymanic text, but i want play with actionscript....
So,
can i set the text align ?
can i set the text area width/height?
can i set if i put scroll or not?
...
Where i can learn to make this things?
tks
Where Do I Type In The Action Script Text?
I have to ask the most basic question that's probably ever been asked in this forum- "where do I physically enter the action script text inside Flash"? Is this done from the Action panel and if so, where in the action panel?
I'm going through the tutorials here and don't see any instructions anywhere that tell me where to type the action scripts? If I launch the Action panel, all I see are what look like Action Script "presets". For example, if I want to practice the setProperty tutorial...where would I enter the example script....
on (release) {
setProperty ("clip2", _visible, false);
}
thanks for dumbing it down!
E
To Capture A Text And To Put It In The Panel Action
I want to capture the text typed by a user with the keyboard and to use it in a program (written in the panel action).
For instance, the user types the text "TEXT" and the program automatically catch this text and process it (for instance, the program writes this same text in bold letters; so the text TEXT appears in the result panel).
How can I do?
Thanks for your help.
Richard
Asian Text In Action Script
Hey,
I have to translate a flash file in korian and all the text files go smothe but when i paste in action script i see squarse :S, this action script calls for text to go treu a banner verrie smooth. How can i let actionscript see korian?
PS i also have to do japaneese later
Text Animation With Action Script
is there a way to animate text with action script so that the text letter by letter and when a line finishes then the next line begins and at the end of the last line the whole thing fades out? if this is possible with AS or if anyone has an easy way to do this besides frame by frame animation
Thanks
Editing Text In Action Script
I am trying to edit the text in a text effect file. I opened the ActionScript for the item and changed the text. However, only the last 2 letters of the new text show up in the effect. Here's the ActionScript. The text I"m trying to edit is on line 66.
function Rotator(x, y, text) {
this.x = x;
this.y = y;
this.ry = 0;
this.rz = 0;
this.radius = 80;
this.count = 0;
this.init(text);
}
Rotator.prototype.init = function(text) {
for(var i = 0; i < this.count; i++)
_root["char" + i].removeMovieClip();
this.count = text.length;
for(var i = 0; i < this.count; i++) {
_root.attachMovie("char", "char" + i, 1000+i);
_root["char" + i].char_shape.value = text.substr(i, 1);
}
};
Rotator.prototype.render = function() {
var x, y, z, prev_x, value, dist, persp = 200;
var angle = this.rz, delta = (Math.PI*2)/this.count;
var angle_deg = this.rz*180/Math.PI + 90, delta_deg = 360/this.count;
var sin_rz, cos_rz;
var sin_ry = Math.sin(this.ry);
var cos_ry = Math.cos(this.ry);
for(var i = 0; i < this.count; i++, angle+=delta, angle_deg+=delta_deg)
{
sin_rz = Math.sin(angle);
cos_rz = Math.cos(angle);
x = this.radius * cos_rz;
y = this.radius * sin_rz;
prev_x = x;
x = prev_x * cos_ry;
z = -prev_x * sin_ry;
if(z > persp)
_root["char" + i]._visible = false;
else {
dist = persp/(persp - z);
value = 100 * dist;
with(_root["char" + i])
{
_x = x * dist + this.x;
_y = y * dist + this.y;
_xscale = value * cos_ry;
_yscale = value;
_alpha = value * dist;
_visible = true;
char_shape._rotation = angle_deg;
}
}
}
};
///////////////////////////////////////////////////////////////////////////////
drag = false;
prev_x = 0;
prev_y = 0;
dx = 0.02;
dy = -0.1;
r = new Rotator(Stage.width/2, Stage.height/2, "<< ekm.h1.ru << ekm.h1.ru ");
///////////////////////////////////////////////////////////////////////////////
onMouseDown = function() {
setFocus();
prev_x = _xmouse;
prev_y = _ymouse;
drag = true;
stop();
};
onMouseUp = function() {
drag = false;
play();
};
onMouseMove = function() {
if(this.drag) {
r.ry += (dx = (_xmouse - prev_x) / 20);
r.rz += (dy = (_ymouse - prev_y) / 20);
r.render();
prev_x = _xmouse;
prev_y = _ymouse;
}
}Text
Resize Text In A Action Button?
I have created a action button in my movie which when clicked it opens up a weblink in the page it should do, but the text is really small in this button, how do i change the size of the actually text, i can scale the size of the box, but the text stays the same size.
Thanks in advance for your help.
Action Trigger On Text Input
Hi.
I need to trigger an action when text is written in an inputTextField. When i written a name in the input text field i want a button to appear so i can go to the next frame and the name to be recorded in a variable for future writing it in a database.
Thanks.
Modify Action To Fade Pic And Text
Hi, in this file portofolio.zip there is a fla file with an fading code to change continous pictures. But what I else need is to change or apear every text for every pic (maybe each text load a file.txt) and use to change them not only the arrows, the numbers too.
I hope you could help me.
Thanks.
Action Script For Scrolling Text
I have a text field on a layer using dynamic text and html. My 2 buttons on a 2nd layer with this AS:
Up Button:
on (release) {
scrollText.scroll +=2 ;
}
Down Button:
on (release) {
scrollText.scroll -=2 ;
}
I don't like the choppy action you get with this method (by simply changing the +=2 to +=1.3.4. etc.) Is there AS that will scroll the text continuously when the button is pressed? I don't want a scroll BAR, I need my 2 seperate buttons positioned on stage where I want them. Thanks for any suggestions.
Action Script Text Animation
Hi
_
I'm using this tutorial to make a text animation, but i have problem in Flash MX when i try to edit the fonts.
http://www.kirupa.com/developer/acti..._animation.htm
_
I have followed all the steps of the tutorial to create a new project in Flash MX but i can´t do it.
When i play the proyect the letter that i put in the dynamic text box is repeated constantly, and not the text that i'm placed in the variable "TEXT".
_
Please i'm asking if you have any tutorial or if somebody could tell me how can i make this project in flash MX.
_
Thanks
Fading Text Bu Action Script
good day members
from the title above
how can i fade text by action script
i tried this code
ActionScript Code:
alpha=10;_root.onEnterFrame=function(){ if (mytext._alpha>100){ mytext._alpha=- alpha; //mytext is the instance name of the MC}else{ if (mytext._alpha<0){ mytext._alpah=-alpha;} };
the code above is by me i am not sure because it is not working
any help for that
Random Text Action Script
I've got a Flash idea/project that would involve action script that I am too green to figure out.
What I want to do is:
Display a flash movie that would load words randomly.
For instance I would (I'm guessing) make a list of words in a text file.
And the action script would randomly display each word one right after the other.
So it would display: Apples... Oranges... Pears... Bananas... Grapes...
Each about 2 seconds before going to the next Fruit.
Also, to make things more difficult I would want to be able to weight some of the words more heavily than others.
So the word "bananas" would show up more often, "Grapes" would show up less often, but more than "Apples"
Also, would there be a way for some words to appear LONGER on the screen than others. For instance, Apples would be on the screen LESS time, than a longer words or phrases like "fruit cocktail in a decorative bowl"
This would allow people TIME to read the longer phrase.
I am hoping that this can be done with an external txt. file that the flash file reads... but I don't know.
But I'm no expert! I am a graphic designer, trying to understand ActionScript/Flash
Whenever I want to add another "Fruit" to the list, I go to the text file, TYPE in the name of the FRUIT and somehow notate how many seconds I want that word to stay on the screen before it displays another word in the list of fruit.
Does this make sense? LOL!
Action Script Text Animation....
when i clicked this earlier it doesnt completely display the steps in my pc.... can anyone post a step by step procedure for here..... thanks i need this for my defense thanks fpr the help....
http://www.kirupa.com/developer/acti..._animation.htm
|