Double Quotes Don't Show In Text
Does Flash escape double quotes from text displayed on the screen?
I have a text element with some double quotes that should say Quote: "Where we want to live in 2007" but instead it's displayed as Quote: here we want to live in 2007
DevShed > Flash Help
Posted on: September 7th, 2007, 08:02 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Double Quotes And _y
I am reading about movie clip positions on the stage and I was looking at this example.
ActionScript Code:
targety = ""._y;
Now I just need a little clarification. I have a crude understanding of
object.property
but in the past I have always used something like
ActionScript Code:
MyMovieClip._y
and so my question is, what is the purpose of doing double quotes like this, which is an empty string..?
Thanks
How Do I Use Double Quotes Within A Variable?
I am using a variable called text. Text will be some html that will appear in a text box. Some of the text included will be the use of double quotes in a statement. This of course breaks the code. I tried using the special character code for right and left double quotes but I don't think flash recognizes special characters.
Loading URL With Double Quotes In It
how do i load data from an URL with double quotes in it? tried using a .php proxy file and also escaping the characters... no go. if i drop the URL in a browser i can pull up the page and get my xml no problemo. can't seem to load it into my xml object in flash though for some reason! grrr!
here's the url (i took out sensitive info):
Code:
http://api.oscar.aol.com/SOA/key=xxxxxxx/resource-lists/users/*anonymous*/presence/~~/resource-lists/list[name="users"]/entry[@uri="user:xxxxxxx"]
Problem Of Double Quotes In Geturl
Hi,
I am building an application where i am submitting a form using geturl method,but some values which are to be submitted have double quotes in them.flash converts double quotes into " and thus results differ.
how do i overcome this problem
regards
jayant
[as2]- Removing/truncating Double Quotes (" 's)
Good Day All! Im working with some XML that has double quotes around the text that i want to work with. For example- "Miami" and I would like it to look like- Miami
This is what i was working with so far (but doesn't work)
txt = "Miami";
var dirtyTextArry:Array = txt.split(""");
var cleaned:String = dirtyTextArry[dirtyTextArry.length-1];
trace (cleaned);
whats the best way to accomplish this??
Text Cut Off Randomly Externally Loaded Quotes From Text File.
Here is the issue, I through some ingenious coding produced a way how to create dynamically loaded random quotes onto hover captions, I know alot of you helped out and I thank you, the problem is now that it will load all that info but many times almost 90% of the time the caption will be too small to show the text, or too large and the text pops up all the way to the left of the site.
I posted you an image it is supposed to say We design websites, from full Flash sites to small HTML ones, however the excess is cut off, you can see the site at www.qualitytechnologies.net if you need clarity on the issue, I believe I also have a fla example file but I may be wrong, here is parts of the code:
The code for the hover caption on frame xx
ActionScript Code:
hover_mc.b1.onRollOver = function() { captionFN(true, this); this.onRollOut = function() { captionFN(false); };};hover_mc.b2.onRollOver = function() { captionFN(true, this); this.onRollOut = function() { captionFN(false); };};...captionFN = function (showCaption, bName) { if (showCaption) { _root.createEmptyMovieClip("hoverCaption", this.getNextHighestDepth()); //cap.desc.text = captionText; cap._width = 7*cap.fill_text.text.length; cap._alpha = 75; // if ((bName._width+bName._x+cap._width)>Stage.width) { xo = -2-cap._width; yo = -17; } else { xo = 2+cap._width; yo = -17; } hoverCaption.onEnterFrame = function() { cap._x = _root._xmouse-xo; cap._y = _root._ymouse+yo; cap._visible = true; }; } else { delete hoverCaption.onEnterFrame; cap._visible = false; }};
The random loading code, on frame 1-6 on the hover_mc clip, there are 6 buttons there from b1 to b6 of course.
ActionScript Code:
/**************************************** **Random Quotes Script******************* ****************************************/ ranQuote = new LoadVars(); ranQuote.onLoad = function(success) { if (success) { RanNum = Math.ceil(Math.random()*5); ran = this["filltext"+RanNum]; _root.cap.fill_text.text = ran;} else { _root.cap.fill_text.text = "The text failed to load due to an error";}} ranQuote.load("comprepair.txt"); stop();
And each button uses a type of this to start the random code:
ActionScript Code:
on (rollOver) { gotoAndStop("1");}
That should be enough to start off at least, I do see what the problem is, the hover caption code will continue to play regardless of the random code, I need a stop/reset code somewhere but can't figure out where.
Someone please help me I have been working on this thing for about a month now, and now it is getting really fun. Thank you.
Dynamic Text Box Quotes
i would like to include " " inside of a dynamic text box however it throws an error on its own since it thinks i am ending the box, is there a work around or code for this?
HTML Text Format “quotes”
Dynamic Text: HTML Text formatting: HTML Tags
To get the right quotation marks “example” I have been using the follo. HTML tags:
(opening quote)
(closing quote)
They worked beautifully in Flash 5. But in MX, the same tags give me an O.
I cannot use the inch marks "example".
Can someone pls help me with this problem?
“example” --- right
"example" --- wrong
Thanks
Random Quotes From Text File
Hello,
I have read different post from these forum, on getting random quotes from text file displayed in the flash movie.
I have txt file called quotes containing the following
quote1=easily the best sound i've heard on the web - steve"e2=blahblahblah"e3=qywyyettrtt"e 4=This is 4
and have this code on frame 1
loadVariableNum("quotes.txt", 0);
and this on 2
ran= math.round(math.random()*10+1);
myDynamicTextfield=eval("quote"+ran);
and a dynamic text box with the instance name of 'quote' but does not seem to be working, do not even get error.
Please help me if you can, just need it for random quote each time swf page is loaded!
Thanks in advance
Marcus
Quotes ( " ) And Dynamic Text
I'm having trouble trying to get quotations to appear in my dynamic text box... I've checked the [ characters ] tab in the property inspector and made sure that the Puncutation and Basic Latin Glyphs were checked... is there something that i'm missing here?
instead of a [ " ] i get [ " ] in the dynamic text box
ideas?
HTML Text Format “quotes”
Dynamic Text: HTML Text formatting: HTML Tags
To get the right quotation marks “example” I have been using the follo. HTML tags:
“ (opening quote)
” (closing quote)
They worked beautifully in Flash 5. But in MX, the same tags give me an O.
I cannot use the inch marks "example".
Can someone pls help me with this problem?
“example” --- right
"example" --- wrong
Thanks
Help Randomly Fadin In And Out Text Quotes
I have 5 quotes that I'd like to randomly fade in and fade out. Right now, the text is a graphic symbol. I've tried using dynamic text from a text file, the random function works, but the fade in/fade out doesn't work. What's the best way to do this in Actionscript, randomly, using the symbols I've created?
Thanks,
M
Dynamic Text And Embedding Quotes
I was wondering how you embed a pair of quotes when using a dynamic text field and text via actionscript? I can only assume you can do this... but currently I have some string variables with measurements that I can't display properly because a quote ends the string.
i.e. Code:
var title2:String = "29" x 160" Modern Menu Board"
Does anyone have a solution?
Thanks.
Random Quotes From External Text File
I've been trying to figure out how to load a random quote from an external text file which looks like this quote1=blah blah blah"e2=blah blah blah...and so on up till about 10 different quotes. I just want to know how I would go about randomly loading a selected quote? I'm using MX 2004.
Heres the code I tried to use but it only gave me an undefined:
Code:
ranQuote = new LoadVars();
ranQuote.onLoad = function(success){
if (success) {
RanNum = Math.ceil(Math.random()*10);
ran = ["quote"+RanNum];
quote_txt.htmlText = this.ran
}
else {
quote_txt.htmlText = "Text failed to load.";
}
}
ranQuote.load("Quotes.txt");
stop();
Any help or a tutorial pointing me in the right direction, or even a completely different way of doing it perhaps using XML, would be greatly appreciated.
Cheers,
AhrJay
After Escaping Quotes, String Won't Appear In Dynamic Text Field
I'm working on a quiz, and when users quick answers A,B,C, or D, in the quiz, their answer appears at the end of the quiz in a dynamic text field, so they can compare their answer to the correct answer, which is located right above in a static text field. For instance, if the user clicks answer A, the following is called:
ansA = "A. You're really lazy! Why don't you get a job?";
and the user sees:
A. You're really lazy! Why don't you get a job?
However, I need the user to see quotes around the answer. I added quotes, and tried escaping them like this:
ansA = "A. "You're really lazy! Why don't you get a job?"";
but nothing appears in the dynamic text field after I do this. How can I get this answer to appear in the text field with quotes?
Thanks
Flash Element - Display Quotes From Dynamic Text Like Gallery
How could I create a flash element that would load mutliple quotes from a text file, and will scroll through them... or fade through them? It needs to by dynamic so the client can upload or remove quotes.
I need to have this project complete by thursday morning. So if anyone has any ideas, please toss them out asap.
Thanks,
Andrew
Quotes Within Quotes Problem
This is a question on quotes.
This is my problem.....I have quotes within quotes, but Flash is giving me errors....How do I correct this problem.
var riyadhOneText:String = "The "Tigers of the Gulf," "People Movement for Change," and "Fighting Advocates for pets" claim responsibility. Petco authorities arrested and executed perpetrators.";
-r
Remove Double Click In XP For Flash & Show Flash In Firewall Protected Environment
Remove Double click in XP for flash & show flash inside firewall protected environment
Here is some code that will disable the annoying double click feature for flash when using XP. This code also enables all viewers to see your flash. For example some firewalls block flash (SO STUPID) but with this code instead of using the embed tags and object tags allows those users behind firewall environments to see your hard worked flash masterpiece.
Okay here is how you do it.
Inside your main file that is calling the flash .swf.
Remove the code that you currently have there and replace it with the code that is inside the putInsideIndex.html (see attachment)
Make sure that you change the name of the movie in that code so that it opens your swf. You might need to change the width and the height too so that you don't have your flash looking like a monster.
Alright then you need to take the other file called RemoveDoubleClick.js
Open it in your editor and change the name to the name of your choosing on line 12. Then post that file (DO NOT RENAME IT) into the same directory as the main file that you edited above. Most cases that would be the index.html or whatever.
So enjoy and start letting EVERYONE see your sites & be more user friendly!
GOOD LUCK!
Loading Swf + Double Clicking = Double Load -> Crash
Hello, help plz:
Have a button assigned to loading an swf, if the button is pressed twice the swf reloads and crashes, probably reloads data together and dosnt recognize, web crashes and needs to be reload reloaded... any suggestions?
thanks
Text And Double Clicking Help
I am creating a flash menu, and converted the text to a button, and also created an alpha box behind the text under a different button name. The thing is that when I try to click on one of the buttons, I am forced to double click before it does anything. Attached is what I have so far. How can I get it to work without having to double click?
Double Linebreaks When Importing Text
Hey!!
i have a problem..
Im importing text from a mysql database using asp, into a flash movie. But flash makes 2 linebreaks where there only should be one..
The text is stored in the database from a html textarea ?
anyone ?
Why Is My Dynamic Text Double Spaced?
for some reason, with my dynamic text, whenever theres a new line in the .txt file it skips a line on the flash page
like, if there was something like this:
Profane Humor has been a band since 1998.
Phil and Jed started the band with Andrew Davis.
The song led to Davis being kicked out of the band.
it would look like this once loaded into the flash file
Profane Humor has been a band since 1998.
Phil and Jed started the band with Andrew Davis.
The song led to Davis being kicked out of the band.
can someone help please????
Text Appears Double On Key Press
GGrreeeettiinnggss..
I have been having a peculiar effect happening when I try to use keystrokes in my older (v4) movies. In both form text fields and when using keystrokes as button actions I get two characters for every one keystroke (see "Greetings" above).
This gets annoying when using keys as actions for movement and makes form useless as all text is doubled. I though it was an actionscript error at first, but its happening in all my movies, even the simple ones.
Any input? Thanks in advance.
jg
HTLM Text Prints Double On Mac?
I am having problems printing HTML within a dynamic text feild - it printing a double image offset slightly? ONe of the images seems to be vector the other bitmap??! All is ok on PC.
Anyone got any ideas - Please!!!
Thanks in advance
Ol
Double Print Input Text On MAC?
Hi
I have created a kind of word processinf interface that the user can use to change fonts etc.
I am having problems printing input text fields without the font embedded. The font in use is always native to the machine (using FonList) in use and is displayed ok - my problem is that it is printed on a MAC it prints the text twice (one slightly offset from the other) One appears to be a bitmap too which is wierd!! As soon as I embed the font it stops, however I can't do this as I want the user to change the font (embedding it disbales this functionality)
All is fine on PC.
Anyone got any ideas how to solve this?
Cheers
Ol
Double Input Text Fields (MX)
MACROMEDIA FLASH MX (flashplayer 6)
i want to make two input text fields. when u click the send button, it sends info from the two text fields to somewhere where i can keep it. plz help me out, i wouldnt think it'd be that hard, but i dunno. thanks
More Questions About Double-spaced Dynamic Text
I found this thread
http://www.flashkit.com/board/showth...hreadid=391937
and wondered if anyone can explain, in basic English, what was meant by 'importing the file from a Unix server'? It's doen towards the bottom of the thread.
I'm trying to get rid of these double spaces caused by invisible characters at the end of text lines and I'm hoping this is a solution (whatever that is)
BTW, I'm in MX (if it matters) and %0A is not a solution (FYI).
How Do I Prevent Double Spacing In Dynamic Text?
What am I doing wrong? I have tried using html tags to format my text but the tags just appear in the text. I need to get rid of the double spacing.
(Probably a silly question but I have searched through the forums and couldn't find an answer. )
Thanks for any help!
Madeleine
Html TextArea Double Spaces Text
now that i finally have my XML loading correctly into an HTML textfield, can anyone explain why at random, the text box chooses to double space some of the lines of text? Is this my poorly formed XML, my aweful PHP (loading from mySQL), or a simple prefrences i did not set?
ContextMenuItem Captions Wt Double-byte Text
Hi All,
anyone know if it is possible to use double-byte text in a ContextMenuItem caption? I've tried and get "??????" in the place of the arabic text i'm attempting to show in the context menu.
Any advice much appreciated,
Sinead.
Import Text Double Line Problem
Not really sure if the question should be in this forum. but...
I have a swf (and associated fla) that imports text fine.. i use a little manipulation for correcting tildes and things but its basically running smoothly apart from one thing..
returns are being doubled online.
ie:
address line 1
address line 2
looks exactly like that offline (mac running panther)
but turns into:
address line 1
address line 2
when i view online.
the files are edited using a php backend in which i strip away as much crap as possible (ie trailing /n's) and when i view the same text file in an html textbox it also looks fine.
and ideas?
ta in advance
Loaded Text File Wont Show All Of The Text In Dynamic Text Field
When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.
The text that is in the text file is as follows, and as far as I can see there is no reason why all this text shouldnt show in the dynamic text field; by the way all my targets are correct, I know that for fact.
message=Code: Cheat:
BEEPSAGONER Deactivate the censor beeps
DRACULASTEABAGS 50 lives
DUTCHOVENS Frying pan mode
XFYHIJERPWAL IELWZS Debug mode
BOVRILBULLETHOLE Shoot all objects
EASY Easy mode
VERYEASY Very easy mode
SPUNKJOCKEY New death animation
SEXYMANN Birdy & Squirrel scene
Code: Unlock chapter:
PRINCEALBERT Barn Boys
CLAMPIRATE Bats Tower
ANCHOVYBAY Slopranos
MONKEYSCHIN Uga Buga
SPANIELSEARS Spooky
BEELZEBUBSBUM It's War
CHOCOLATESTARFISH The Heist
WELDERSBENCH All chapters and scenes
Code: Unlock Multiplayer character:
WELLYTOP Conker
EASTEREGGSRUS Neo Conker
BILLYMILLROUNDABOUT Gregg the Grim Reaper
CHINDITVICTORY Weasel Henchmen
EATBOX Cavemen
RUSTYSHERIFFSBADGE Sergeant and Tediz Leader
BEEFCURTAINS Zombies and Villagers
Double Click Speech Bubble And Same Size Text?
hello
I have already created a speech bubble button which is inside a movieclip and is draggable and resizable. I have created an input text box over the button so that you can drag the speech bubble around by the edge and click in the middle and you can type. my only problem is that as i can resize it using the arrow keys, when a box is resized the text also resizes.
Is there a way to keep all the text the same size in a movie with different speech bubbles?
also is there a way i can duplicate the speech bubbles by double clicking? i currently have keypress commands.
any help would be greatly appreciated
thanks
Anna
Edited: 08/24/2007 at 05:39:41 AM by annatriant
Getting Rid Of Extra Invisble Characters Which Create Double Line Breaks In Text
Hi
These characters are created in Notepad when you hit 'Return', making a single line break a double line break when the txt is imported into the swf and viewed off line (online, there actually is no problem, but I'm making a CD presentation).
Does anyone know a method to get rid of these unseen, unwanted characters?
(BTW, %0A at the end of the line does not solve the problem )
How To Format External Text File To Show In Three Separate Columns Through Text Area?
Hullo everyone!
Could anyone suggest a piece of advice to visualize the following idea?
I should like to import an external .txt file into flash and display it by means of a text area component, which would take the better part of the screen and be skinned to fit the rest of the page design. The text ought to be formatted by way of an external .css file. Images are optional.
I can do all this allright, but what I should like to have is the text formatted to be displayed in three separate columns. The idea for this naturally comes from the Flash version of the Macromedia Edge newsletter.
I should be most thankful if anyone cared to come up with a solution.
Show Text Created In Javascript Text Editor And Saved In Xml File
Hi all
I am currently investigating how to show text in flash that is created using a javascript text editor in a CMS. The text is imported from an XML file and you can see an example of the data below.
My problem is that the current version of the text display component I've created for flash has no room for "weird" symbols. This means that a lot of characters are not displayed and somtimes only half the content is displayed.
Preferably, the component should be as good at showing html content as if ws displayed on a normal html webpage.
I also want to be able to load images into the text component. They should be specified in the XML code as simple <img> tags.
Do you have a good idea of a solution or do you know a super solution already made? Preferably a solution that can be used for commercial purposes.
Here is an example of content that should be imported into flash:
<data>
<paragraph id="paragraph1">
<heading><![CDATA[test]]></heading>
<image></image>
<imagedescription><![CDATA[]]></imagedescription>
<body><![CDATA[<h1><font size="3">…Tekstmodul </font></h1>
<p>
<font size="3">Vinens udseende</font>
</p>
<p>
<font size="3"> </font>
</p>
<p>
<font size="3">Vinens udseende har stor betydning for, hvilke forventninger vi har til vinen, allerede inden vi dufter til eller smager på vinen. </font>
</p>
<p>
<font size="3"> </font>
</p>
<h2>
<u>
<font size="3">Iagttag vinen</font>
</u>
</h2>
<p>
<font size="3">Det er lettest at iagttage vinens farve, når man holder glasset på</font>
</p>
<p>
<font size="3">sdfdsfs</font>
</p>
<ol>
<li>
<div>
<font size="3">dsfdsfdsfs</font>
</div>
</li>
<li>
<div>
<font size="3">sdfdsfs</font>
</div>
</li>
<li>
<div>
<font size="3">dsfds</font>
</div>
</li>
</ol>
<p>
<font size="3">s…</font>
</p>
<p>sdfdsfds </p>
<p>dfsxcvxcvxc</p>
<p> </p>
<p> </p>
<p>asdsa</p><p> </p>]]></body>
<file internal="false">
<linkname></linkname>
<resource></resource>
</file>
</paragraph>
</data>
Select Text File From Dropdown List, Content To Show In Swf Dynamic Text Field
I have a php page where there is a form with a dropdown list of all text files in my site. The name of the dropdown is $filename.
The action script in my swf is this:
loadVariablesNum("<?PHP echo $filename; ?>", 0);
but I get nothing. It displays correctly when I replace
<?PHP echo $filename; ?> with the actual value of $filename, for example:
loadVariablesNum("ui_websites.txt", 0);
Any ideas what I'm doing wrong?
Show Text In Dynamic Text Box (nested Movie Clip)
can someone please help me look in my file.. i stuck here 1 day already..
i wan the dynamic text box fill in the number when i click on the button. And the value is keep increasing by 1 once i click the button.
the nested movie clip is as folo,
mc_A-->mc_B-->txtnumber
the button is in the mc_B..
please help me... thanks..
Compare And Combine Two Text And Show In One Dynamic Text Box
Hi All,
I am having a one variable through which i am showing (trace(new_str)) two different text with underline characters at diffrent positions. So What i want is to combine two of them into one and show in dynamic textbox with variable name result :-
new_str="h<u>e</u>llo" + "hel<u>l</u>o"
Result Expected :-
Result = h<u>e</u>l<u>l</u>o // hello
Show A Name From A Input Text In A Dynamic Text Field
Hi,
I'm creating a interactive cd in flash for a college project.
I want to have a input text field at the begining of the cd, for the user to insert its name, so that it can be showen in some sections of the cd.
Can anyone help me?
Input Text Field Doesn't Show Text...
Hi,
I've made a swf with an input-text-field. when i open it, i can write text and change it but -
When i loaded the swf into another swf, when i stand on the input field, it changes the cursor but i don't see any text in it.
please asist me,
thanks.
Double My Array? Double The Fun
HEY!
Have a nice random array here courtesy of Pixelwit from this site but i need the numbers to duplicate in the array..as an example, instead of the array saying...
[7, 4, 23, 14, etc]
it would double them...
[7, 7, 4, 4, 23, 23, 14, 14, etc]
Below is the code...i'm too much of a newbie so far to make it work, any help would be great!
(alternativly, i just need code that makes a random 10 number array, no two numbers the same, but then duplicates each one twice in the array then assigns that array to a variable)
thanks
ActionScript Code:
// How to shuffle any Array
// (Robert Penner June 2001)
Array.prototype.shuffle = function () {
var len = this.length;
for (var i = 0; i<len; i++) {
var rand = Math.floor(Math.random()*len);
var temp = this[i];
this[i] = this[rand];
this[rand] = temp;
}
}
//
// Make initial array and shuffle it
totalImgs = 25;
allImgsArry = [];
for(i=0; i<totalImgs; i++){
allImgsArry[i] = i+1;
}
allImgsArry.shuffle();
trace("allImgsArry = "+allImgsArry);
//
// How to chop big array into little ones
function chopAllImgsArry(divisor){
var i = 1;
while(i*divisor<allImgsArry.length){
this["imgsArry"+i] = allImgsArry.slice((i-1)*divisor, i*divisor);
i++;
}
this["imgsArry"+i] = allImgsArry.slice((i-1)*divisor);
}
//
// Chop big array and show results
divisor = 10;
chopAllImgsArry(divisor)
for(i=1; i<Math.ceil(allImgsArry.length/divisor+1); i++){
trace("imgsArry"+i+" = "+this["imgsArry"+i])
}
[F8] How To Add Quotes?
Ok I have this:
Code:
_root["a"+i].loadMovie(y);
But I think 'y' has to be written as "[y]" - ie. in quotes.
But how do I add these extra quotes????
Quotes?
Hi All...
This is a really nooby question but it's been giving me a headache...
How do I had quotes into a dynamic text field?
For example if I want to add the following text with a dynamic text field:
Billy answered, "No, thanks!"
Show Input Text In Dynamic Text?
hi,
I'm trying to show a username that was inserted in a input text field in a dynamic text field. No problem here, the issue is when the dynamic text flied is inside a moveclip...the dynamic text field aprears empty :-(
Can anyone help me?
To Show Both Image & Text In A Dynamic Text Box
Hi
I have a database(access) which contains both image and text mixed with each other. How can i show both text and image together in the browser. I tried it by using Dynamic text box But was in vain.
any other way to do it.
CAN ANY ONE HELP ME
ANY HELP WOULD BE APPRECIATED
Thanks in advance
Yaniv
|