ActionScript 2.0 :: Replacing Letters With Other Text
Nov 19, 2006I am trying to make a simple encryption tool and I was wondering how I could use code to replace text, with something totally different!
View 2 RepliesI am trying to make a simple encryption tool and I was wondering how I could use code to replace text, with something totally different!
View 2 Repliesi have made a dynamic text box which pulls a twitter status using the API. what i want to do is find and replace ': )' (without the space)with a small graphic called 'smile.gif'
View 7 RepliesHow is it possible to replace text with the new (flashplayer 10) text engine? I've come this far:
ActionScript Code:
var font:FontDescription = new FontDescription("Arial");
var elementFormat:ElementFormat = new ElementFormat();
[Code].....
Is it possible to have a textfield with a Dummy text (for animation purpose) and then replace that one text from XML? When i try to do it i only get the letters from the Dummy text to te there if the dummy text has the same or some letters that the XML text have.
If my dummy text is hello and my xml text it sweden i only see " e e " when i run the flash file.
I'm trying to find a way to add to the front and back of a word in a string based on the letters it starts with.
For example if I had a string "I think http://www.facebook.com/ is better than http://twitter.com" it would look for the instance of "http://" and give me "I think <b>http://www.facebook.com/</b> is better than <b>http://twitter.com</b>"
This is the thread to discuss all things relating to the Fading Out Letters in Text tutorial.
View 1 RepliesI have an app that generates text from the user's input (dynamic text box).The user is allowed to use Danish letters like '�' (the 'a' with the ring above / å). My problem is that the top of the ring above the 'a' is cut off by the upper part of the text box. So, I want the text in the dynamic text box to move down a little. But as we all know, dynamic text cannot be vertically aligned in the properties of the text box. So, what to do?
View 1 RepliesI think that I have properly embedded the Verdana font (see image below). However, in my Flash game, dynamic text fields do not show certain letters, such as X and J. What am I missing?
View 8 RepliesI have just been upgraded from some previous version of flash to CS5. I have dynamic text fields that now do not show certain letters. For example "OK" shows up as "O" but "Ok" work. "SUPPLE" appears as "SPPLE". Some numbers fail to show up as well. When I trace the value of the text box all looks OK.
View 5 RepliesI am stuck on how to make these changes to an xml using AS3. My xml structure is as follows
Code:
<boys>
<boy>
[code]....
Using CS5, and certain letters simply won't show up in my dynamic text field. Not even a blank shows up, they just get stripped out. 'g' and 'v' are two of the letters, so the string 'v testing' shows up on the stage as 'testin'.
It doesn't seem to matter if I start with the string already in there, or add it dynamically. Here are the settings, but they don't really seem to matter either, I've experimented:
Classic Text
Dynamic Text
Ariel
Regular
Anti-alias for animation
Single line
I want to load a txt/dat file into flash - the file looks like this[code]...
View 0 Repliesi use a dynamic text that gets from a database some text and i would like to be able to show not all of the text but for example the first 80 letters of this text..
How can this be done ? i am searching quite a lot to find something...
To make the picture more clear i have a big text in database that i load it in flash.
First i have to show a description of this text wicht is about 80 letters of this text in a dynamic text and when the user chooses to "read more >" it shows all the text i have load....
Can anyone give a tip or a tut so i can count the text and for the description to show only the number of letter i want??
Does anyone know if it's possible to reformat dynamically loaded text into only capital letters?
View 2 RepliesI followed the tutorial Mouse Trail and ended up with the codes below, but de thing is the whole log of text moving instead of each letters follow the previous one.
[Code]...
cleaner way of searching through all of the descendants of an XML object and replacing all % values with actual values. I specify x, y, height and width positions in terms of percentages, and so must convert these to actual positions - it seems madness to first search and replace x values, then y values,
[code]...
I downloaded a flash template that includes a text file that it uses to load the content. So, I opened the text file and started to make changes to certain text and when I view the changes I noticed that certain letters and characters are not being displayed such as the letter w and the question mark ? and other letetrs.here is an example of the text I included in the text file:
&privacy_title1=Privacy Policy&privacy_txt1= what information do we collect?
We collect information from you when you register on our site, place an order or fill out a form.When ordering or registering on our site, as appropriate, you may be asked to enter your: name, e-mail address, mailing address or phone number. You may, however, visit our site anonymously.As you can see the w is missing and the question mark and some other letters.
i have a dynamic text field where an array controls a dynamic text box where the keypad reps diff numbers ie kpad1, 2 and so on. When I try to use letters it doesnt work, im assuming there has to be a nNumb equivalent for usung letters?
View 3 Repliesi add sound to Particular letters in dynamic text box in flash8.
i am having a input box in which i entering some text. If the text is "HI" and i am displaying it in the dynamic output box when a button is clicked. now i need the sound to be played when the mouse goes over the letter "i". i can change the letters. similarly i need for the letter "A" also.
I really like the text effect Pom used in the footer contest, and would like to use the same grid-type method of creating mc letters but with a different effect. i understand how to change the parameters and shapes of the letters, but can't seem to figure out which piece of code is purely for the explosion effect. basically, i want the letters but with the 'Repel' effect from[URL] here is Pom's AS:
[AS]
cellSize=3;
radius=10;
damp=.85;
[code]....
and here is the .fla using the repel effect using pre-made mc:
A client has asked me to update the create for a flash widget, they have a problem with the widget displaying "Undefined" where there is no data being pulled in from the XML. What they have asked me to do is write a bit of actionscript to display "Sorry, there is no offers at the moment" instead of it dipslaying "Undefined".
[Code]....
When I use the code in red once my cursor has replaced the mouse i can no longer click on my boxes. When i do not use the hide mouse code i can click the boxes just fine. What am I doing wrong? [code]
View 1 RepliesI have a main shell swf file that has two buttons on it that should each launch/load their respective swf files (tool1, tool2). These should essentially replace the main swf file. Also, I have a button on tool1 & 2 that should bring you back to the main menu. All these files are then compiled into an exe. Seems easy enough, but I'm not entirely sure where to start.
So far I have:
import flash.display.*;
import flash.net.URLRequest;
tool1_btn.addEventListener(MouseEvent.CLICK, gotoTool1);
function gotoTool1 (e:MouseEvent):void{
Loader(this.parent).load(new URLRequest("tool1.swf"));
}
My code is attached - I'm trying to replace the loaded pngfile with the next one to load everytime the swf loops. The codeattached is on the first frame of the timeline and it just loadsthe next png on top of the old one. Any time I try to put anunload() or a removeChild(myBitmap), nothing displays. I could havesworn that the way I'm using load() it would just replace the
View 4 RepliesI've got music player and one of the controls is a movieclip which acts as a PLAY and PAUSE button. What I would like is to swap the image of this movieclip everytime it's clicked. How would I go about doing this? Here's my code...
[Code]...
Simple Question: Is it enough to add the Child to be replaced to another DisplayObjectContainer or must it be manually removed from the former one before?
View 1 RepliesI am trying to use sIFR to replace the headlines (e.g. The Tour of A Lifetime) on this page: [URL] The font I want to swap in is Verlag by hoefler & frere jones. I had this working the other day but it suddenly stopped working: the font does not replace. All the js/css/flash files are linked correctly. I tested my verlag.swf and it works. And, I tested sIFR with a different font and the replacement worked. Am I having issues because I have yet to buy a Verlag license for the server?
View 1 RepliesWhen I use the code in red once my cursor has replaced the mouse i can no longer click on my boxes. When i do not use the hide mouse code i can click the boxes just fine. What am I doing wrong?
[Code]...
In AS2 I sometimes like to be able to just wipe everything off in one clean swoop and replace it with a new SWF.Which is of course uber simple, simply "_root.loadMovie("new_world.swf");"
View 4 RepliesI'm working on a project for the new year gathering at our work. I made an application in which you can type a wish for the company and when you send it your message will be displayed in an dynamic text field and in the background fireworks are launched. These fireworks are external swf files, made in adobe after effects. They are launched when clicking a button. They are played at random. However, after playing 2 or 3 they start slowing down, probably because they stack on each other. I need the new swf to replace the old swf, now my application keeps loading new swf on top of each other.
View 1 Replies