Numbers Into Words
does anybody know how to convert numbers into words...in flash actionscript..or do this in another language and get it into flash...cos this can be done in vb script...
FlashKit > Flash Help > Flash ActionScript
Posted on: 04-07-2004, 05:14 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Creating A Preloader With Words Instead Of Numbers
Hey everyone -
Can someone please help me out with creating a preloader that displays the numbers spelled out instead of the actual numbers?
Example
"one"
"two"
"three..."
instead of
"1"
"2"
"3..."
Below is the code that I have for a number version.
onClipEvent (enterFrame) {
total = Math.round(_root.getBytesTotal()+_root.holder_mc.g etBytesTotal())/1024;
loaded = Math.round(_root.getBytesLoaded()+_root.holder_mc. getBytesLoaded())/1024;
percent = Math.round((loaded/total)*100);
text = percent+"%";
gotoAndStop(percent);
if (loaded == total) {
_root.gotoAndPlay("play");
}
}
THANKS!
Converting Words And Letters Into Numbers
as a newby on the forum i would like to ask you if you could help me out.
I need to convert a many paged document into numbers.
logicly a=1, b=2, ..z=26 & 1=1, 2=2, etc..
the numbers of the letters need to be seperated by comma's
and the spaces between words must be replaced by dashes
so for example:
"i am crazy for doing this" should look like this:
"9-1,13-3,18,1,26,25-6,15,18-4,15,9,14,7-20,8,9,19"
does anyone know of a script that will take up to 500 words per conversion, or does anyone know a application that will be able to do this? unlimited amount of words would even be better.
Thanx in advance,
Raoul
How To Create 3D Words Or Animated Words ?
Hi guyz !! First let me thank you for thinking of viewing my problem !! I 'am extremely new to Flash ! Okay !
Anyway , i 'am planning to create 3D words using Flash which can be used in Powerpoint . The words can also be animated !
And so , I need your help !! I hope that U guyz would help me !! Thanks !!
Test Equality Of Ip Numbers/ Non Existing Numbers
I'm building a site that recognizes the computer that enters. I've set a variable containing the ip adres, and i wanna ad a name to this.
So... when i say
if ip = 120.155.654.321-->flash tells me this is not a number.
if ip eq 120.155.654.321-->flash tells me this is not a word.
know any solutions???
thanx
sven
Converting Numbers To Numbers With Numerical Separators
So if I return 10000 as a number in flash, how can I convert it to 10,000?
or, 1000 - 1,000
or 1000000 - 1,000,000
These numbers are generated by a complicated math formula, so they can be ANY number...
Is there no way of doing this in Flash???
Actions For Numbers Between Two Numbers
I am trying to make a movie duplicate, and I got it all, EXCEPT, I want it to move over and line up in colums when the screen gets full going down. I started out with _y position = i*25, and that worked, but when it gets to the end of the screen I want it to do this y position= (i-15)*25 and x position = 250; could get that far... the problem is when it gets to the bottom the second time i need to do y position= (i-15)*25 and x position = 250 between 16 and 30, and the next "column" to be between 31 and 45 etc.
on (release) {
setProperty (_root.myMc, _visible, 0);
do {
duplicateMovieClip (MyMc, "MyMc"+i, i);
set (_root.myMc.i, _root.i);
_root["myMC"+i].minus = String(i);
i = i+1;
} while (i<=num);
}
[F8] In Your Own Words...
Could somebody please explain in their own words what the differences between "this", "_parent, and "_root" are and what situations would call for the use of which one?
thanks in advance!
Can Someone Put These Words Into AS?
can someone put these words into AS? i just dont know the format to it.
ok i want it like this
if _parent.ammo = 1 and on press
gotoandplay ("t1-2")
if u could translate for me that would be very muy nice
Can Someone Put These Words Into AS?
can someone put these words into AS? i just dont know the format to it.
ok i want it like this
if _parent.ammo = 1 and on press
gotoandplay ("t1-2")
if u could translate for me that would be very muy nice
Can You Tell Me In PS CS' Words?
Hi...
Can someone tell me on Photoshop CS' words the combination of colors o tecniques to do an interfase like this?
http://www.widegroup.net/ie/index_home.htm
Do you know a better one?
Thanks
Deleting Words
is this possible in flash5?
I'm currently doing a vocabulary exercise and i would like the user to delete off some unwanted words from a sentence. Thereafter, i need to check if what they have deleted is correct. How can i do this? Any help appreciated
Problems With My Words
Hello to all,
First, I am a new user of Swish. I have spent about four hours working on my first movie. It looks good and I was even able to publish it to Frontpage and the animation is working fine. The problem I am having is when I view the movie with swish all my words, fonts, and actions are working but when I view it in a browser or in frontpage the letters of the words are changed to jibberish words (the fonts are the same) and the color is removed from all my pics (black & white). What am I doing wrong?
Please help! I plan to use this as the intro to my website. http://www.members.cox.net/delre (if anyone would like to check it out in the future)
Any info will help.
Thanks!
Monica
Flipping Words
Is there a way for me to "flip" a group of words around on a page?
How Can I Do And See The Chinese Words?
I can type the Chinese words in the sample_guestbook.swf but I cann't recive that.
I opened the the entries_so file(SharedObject) that was saved in FlashCom Server and it's unregulated.
I know Unicode support in Macromedia Flash MX,but the entries_so file was saved in ANSI.
How can I do and see the Chinese words?
Any help would be greatly appreciated.
Thanks in advance.
softip
Button With Words
why is it that when i make a button with words it will only show the little hand when i am exactly on one of the lines? how do i set up a little feild around it?
Omega Words
If you've seen the omega interactive intro.. and if not its cool... I'm looking to get the effect you see with the words that fly in and then explode in the begining... can anyone recomend a program to recreate something like that effect?
thanks,
--Metalguy
Using Accented Words
I am trying to input data from a text file. My problem is that when I use accents(spanish words) Flash gets confused. It works fine if I don't have the accents.
Please help
Not Sure How To Describe This In One Or Two Words....
does anyone know how do the following (i've seen it before, so i know it's possible):
i'd like to make a movie that fills the full width/height of my browser window. inside of the movie is a repeating pattern that in turn, fills the browser window.
also inside of that movie, my main content movie is loaded. this content movie is a FIXED width and height and even though the outer movie with the background pattern stretches to fill the full browser window, i cannot allow the loaded in movie to resize. it should just remain centered in the browser.
any ideas? much thanks...
nick
Elastic Words
I would like to be able to give that elastic effect on words.
Specialy when you move the cursor over them.
It is possible on Flash 4?
Thanks
3D Words? (with 3d Glasses)
I am trying to do something in 3D (with use of glasses) in Flash. I have the concept down of what I want...and I know you need to use the blue/red off-center combo for colors, but does anyone know specifically what red and/or clue is needed for this? Llight/dark? The numbers of the colors would be great too!
Thanks if anyone can help!
RH
Buttons & Words...
I have 4 Buttons on the left side of my page. And I want to be able to, when I click on lets say 'Button1' a paragraph or a sentence comes up on the other side, the right. The same with the other buttons, but they would have different sentences or words. How would I do this?-thanks
Hey Oldnewbie: Just A Few Words
We just returned from a 10 day visit of montreal. By the end of our trip I found that I didn't want to leave. The city is great and the people were wonderful. You are lucky. Maybe someday.......
chosenson
Words That Write Themselves
Hello everyone
I would like to know if there is perhaps a tutorial on making words write themselves. What I mean by this is that I am making an opening title where the words (in crayon font) begin to write themselves on the screen. Would this involve masking?
Fancy Words
Please help me make a really cool title to make my new movie stand out think of anything tell me the script so I can copy it I use Flash 5 e.g a wavy pattern black and white use 1 layer! It is gonna be called True Crime and with small letters streets of L.A I will b very grateful thaaannnkkkzzzzzzzzz!
Search For Words
Hey guys
How do I search though a text field and find a certin word or string...
example 1
This is text inside a text box
I want to find - "inside"
example 2
This is more text inside a text box
I want to find - "text inside"
Is this possible ... and how do you do it
thanks
Foul Words
Does anyone know of a way to search the contents of an input text box to find certain words? I want to identify and blank-out swear words that users might put into a form on my site.
I am using Flash MX 2004, but have no real knowledge of the changes made in Actionscript 2.
Hope you can help,
Felix.
Counting Words In A Txt Doc?
My boss is importing a text document into flash and needs to count the number of words in the doc before it hits the text field.
any way?
Flying Through Words
link
I have been playing with this for a long time, and I can not get the hang of it.......does any one know of a tute or a simpler open source to get the concept to the z axis floating thing.
This one is done with arrays and random.
I want it to do a distinct line up.
Any one have any ideas?
Number Of Words
I have a string of words in a variable, split by commas. Is there a way of detecting the number of words(not letters) in that one variable. Or even how many commas are in that one variable?
Floating Words
K here is the idea. I have a marble looking object in the middle and I want links to float around it. On the mouse over I want the link to fade in and enlarge in the center. Though, I want it all to look smooth. Can anyone help me with this?
Emerging Words
Hello All,
So I've got a challenge (or not) for you all. I've been looking all over online and I haven't found a similar flash animation so perhaps you guys can help. I'm trying to make a simple Flash movie where words seem to randomly fade-in or emerge from a white background. It is a list of words that appear and disappear in different locations. I already seem to have the code to make words appear randomly, but there is one hitch to this initial part. Since I'm using .addchild everytime it loops instead of starting from a clear screen the back begins to clutter up with words.
Here is the code for what I've got:
var t = this.addChild(new word());
for(var i:int=0;i<1;i++) {
t.x = Math.random()*450;
t.y = Math.random()*400;
t.dx = Math.round(Math.random()*450);
t.dy = Math.round(Math.random()*400);
t.scaleX = Math.random()*2;
t.scaleY = t.scaleX;
t.onEnterFrame = mover;
}
function mover() {
this.x += (this.dx-this.x)/3;
this.y += (this.dy-this.y)/3;
if(Math.round(this.x) == this.dx) {
this.dx = Math.round(Math.random()*450);
this.dy = Math.round(Math.random()*400);
}
}
To begin with: 1. Any ideas how to delete the instance of the symbol at the beginning of every loop?
2.How do you fade-in symbols?
Thanks for your help!
Words RUNNING....
Please help me to solve this problem...
I have a word called LION. I need to change that word to KING. But The word lion will be in stage or screen. When i enter a new word KING the alphabets of the word LION must RUN alphabetically to KING...ie L of LION must go like L,M,N,O,P,Q,R,S,T,U,V,W,Z,A,B,C,D,E,F<G,H,I,J,K ie from L to K.Like this all the characters must run simultaneously... I had made a function to get next character shown below.
ActionScript Code:
function nxt(curralp) {
if (curralp=='A') {
nxtralp='B';
} else if (curralp=='B') {
nxtralp='C';
} else if (curralp=='C') {
nxtralp='D';
} else if (curralp=='D') {
nxtralp='E';
} else if (curralp=='E') {
nxtralp='F';
} else if (curralp=='F') {
nxtralp='G';
} else if (curralp=='G') {
nxtralp='H';
} else if (curralp=='H') {
nxtralp='I';
} else if (curralp=='I') {
nxtralp='J';
} else if (curralp=='J') {
nxtralp='K';
} else if (curralp=='K') {
nxtralp='L';
} else if (curralp=='L') {
nxtralp='M';
} else if (curralp=='M') {
nxtralp='N';
} else if (curralp=='N') {
nxtralp='O';
} else if (curralp=='O') {
nxtralp='P';
} else if (curralp=='P') {
nxtralp='Q';
} else if (curralp=='Q') {
nxtralp='R';
} else if (curralp=='R') {
nxtralp='S';
} else if (curralp=='S') {
nxtralp='T';
} else if (curralp=='T') {
nxtralp='U';
} else if (curralp=='U') {
nxtralp='V';
} else if (curralp=='V') {
nxtralp='W';
} else if (curralp=='W') {
nxtralp='X';
} else if (curralp=='X') {
nxtralp='Y';
} else if (curralp=='Y') {
nxtralp='Z';
} else if (curralp=='Z') {
nxtralp='A';
} else {
nxtralp='A';
}
return nxtralp;
}
Please help me to solve this problem...If possible please show an example..Thankyou...
Twister FX With Words
Hi!
I basicly want to use the twister effect by Pom using
words and dots instead of random letters.
Also i want the twister to "twirl" downwards too, like in a x shape.
One center and different words twirling up from the center and down from the center,.
I'm no good at AS so i've attached a .FLA with what i got so far,.
From Letters To Words?
I have a little function here from one of my books that generates a random cycle of letters based on a string, is it possible to have this working with multiple words instead of individual letters?
ActionScript Code:
// create string to randomly select characters fromstr="t";// create controller mcthis.createEmptyMovieClip("mc",1);mc.c=10;mc.onEnterFrame=function(){ // attach new instance every frame. this._parent.attachMovie("particle","p"+this.c,this.c); // set initial values for new instance in onLoad this._parent["p"+this.c].onLoad = function(){ this.wl=50+50*Math.random(); // wavelength for sine this.ampl=0; // amplitude for sine this.as=2*Math.random(); // speed for aplitude change this.sp=2+2*Math.random(); // speed for upward motion this.bx=_root._xmouse; // set base x coord to mouse pointer position this._y=_root._ymouse; // set base y coord to mouse pointer position this._x=this.bx; this.txt=str.substr(Math.floor(_root.str.length*Math.random()),1); } // fire off the onLoad function this._parent["p"+this.c].onLoad(); // onEnterFrame function for new instance this._parent["p"+this.c].onEnterFrame=function(){ // calculate new coords this._x=this.bx+(this.ampl*Math.sin((this._y)/this.wl)); this._y-=this.sp; // increase amplitude of wave to make the smoke spread out this.ampl+=this.as; } // increase counter for levels this.c++;}stop();
Just A Quickie - One Or Two Words Will Do
Hi there - I've used the tuturial on THIS page to help transition my pages smoothly: http://www.kirupa.com/developer/mx2004/transitions.htm
Everything is working fine; however, if I move the buttons and the A/S off the main timeline, I am not able to load the relevant sections anymore. I just keep loading the same swf over and over... Section 1.
This is the code that is supposed to sit on the main timeline to enable the transitions:
on (release) { if (_root.currMovie == undefined) { _root.currMovie = "main"; container.loadMovie("main.swf"); } else if (_root.currMovie != "main") { if (container._currentframe >= container.midframe) { _root.currMovie = "main"; container.play(); } } }
The MC that I've moved everything into is called 'fluid'.
I know I need to change the path to the container, and I've tried the following to try and reach it:
_root.fluid.container.
fluid.container
and neither have worked.
Does anyone have any urgent suggestions? I know it's a simple fix - I just can't see it!
Array Of Words?
is it possible to have an array of words, and then, with another set of code, to have those words randomly animating (perhaps from the distance, to closer up, like a zooming non-blurred effect) on the stage?
if so, how would i go about it?
Words Animation
im noob in flash
how do i do a word animation?
like i have one word and i want to change to another for example:
lord of rings -> senhor dos aneis
but between them they have some animation like 1st with word desapearing and then show the other.
regards
Words Appearing - How ?
Hi i've just seen this website http://www.the-medium.net/. when the user clicks contact the words appear very smoothly. What i have done is created a simple movie clip that has the words hi james!!!! which moves from right to left and stops. What i want to know is how can i modify it in such a way that when as it reaches the left, the words gradually appear. From the right hand side i don't want them to be seen. But gradually i want the words appear. The only difference between mine and the website is that it does not move, it just appears slowly and smoothly and you click contact button. How can i creat this effect???
Also how can i control the speed the word hi james because it is moving quite quick??
Please help me please.
Matching Words
Does anyone know how to do something like when a key is pressed, if its Ascii code match a dynamic random text( only one character for the moment), it will go to another character. In other words, it will regonized the character i type match the character of the dynamic random text.
Something like the effect of a game called "House of Dead-Typing of the Dead" Hope i didn't spell wrongly the name of the game!
Thanx!
Twister FX With Words
Hi!
I basicly want to use the twister effect by Pom using
words and dots instead of random letters.
Also i want the twister to "twirl" downwards too, like in a x shape.
One center and different words twirling up from the center and down from the center,.
I'm no good at AS so i've attached a .FLA with what i got so far,.
From Letters To Words?
I have a little function here from one of my books that generates a random cycle of letters based on a string, is it possible to have this working with multiple words instead of individual letters?
ActionScript Code:
// create string to randomly select characters fromstr="t";// create controller mcthis.createEmptyMovieClip("mc",1);mc.c=10;mc.onEnterFrame=function(){ // attach new instance every frame. this._parent.attachMovie("particle","p"+this.c,this.c); // set initial values for new instance in onLoad this._parent["p"+this.c].onLoad = function(){ this.wl=50+50*Math.random(); // wavelength for sine this.ampl=0; // amplitude for sine this.as=2*Math.random(); // speed for aplitude change this.sp=2+2*Math.random(); // speed for upward motion this.bx=_root._xmouse; // set base x coord to mouse pointer position this._y=_root._ymouse; // set base y coord to mouse pointer position this._x=this.bx; this.txt=str.substr(Math.floor(_root.str.length*Math.random()),1); } // fire off the onLoad function this._parent["p"+this.c].onLoad(); // onEnterFrame function for new instance this._parent["p"+this.c].onEnterFrame=function(){ // calculate new coords this._x=this.bx+(this.ampl*Math.sin((this._y)/this.wl)); this._y-=this.sp; // increase amplitude of wave to make the smoke spread out this.ampl+=this.as; } // increase counter for levels this.c++;}stop();
Words Around A Ball
I wanto to make an efect the the text keeps moving around a ball.
How can I do that?
Thanks
Words Random()
hi there.!
I have this code. what is the mistake
i want words random()
but.. no encuentro the mistake?
palabra = new Array("r", "a", "b", "e", "g", "0", "5", "9", "2", "7", "u", "c", "3", "o", "w", "x", "m", "s");
p = palabra.length;
t = createTextField("texto", 10, 100, 80, null, null);
t.border = true;
t.autoSize = true;
for (var i = 0; i<=p; i++) {
t.onEnterFrame = function() {
i++;
palabra[i].random(10*i)/2;
};
}
/*hi there.!
I have this code. what is the mistake
i want words random()
but.. no encuentro the mistake?
*/
Fading Words
Hi Everyone,
I am new to Flash and I am stuck with what is probably a simple question for you all. But i was wondering if anyone out there knows how to make words fade in and out of view ??
Thanks so much
How Can I Change The Words' Alpha From 100% To 0?
hi,
i want to change the word's alpaha from 100% to 0% (in order to let the wrods disappear from the screen)on my movie clip. fisrt, i converted the words to graphic. then i use the motion tween in order to change the alpha. but it doesn't work.
i tried to insert several keyframes and changed the properties, such as words' color or alpha on every keyframe. it can work, but i think what i did is too complex. can you give me some good idea?
thanx in advance.
|