ActionScript 2.0 :: Quotation Marks Display As Boxes?
Aug 5, 2010I have a dynamic text field being populated by an external .txt file:
myData = new LoadVars();
myData.onLoad = function()
{
[code].....
I have a dynamic text field being populated by an external .txt file:
myData = new LoadVars();
myData.onLoad = function()
{
[code].....
Is there a way to display left and right quotation marks in a dynamic textfield in flash / as3?
View 3 Repliesi am trying to load text from an XML file to a dynamic textfield inside a flash movie.. if the text written on the XML was something like: this is a text message... then it would work.. but if the text written on the XML was something like: this is a "text" message... then it would return an error...
how can i load XML text that has quotation marks in it to flash?
I've been trying to add quotation marks to a variable for the past hour or so, but I haven't been having much luck. Basically, here is what I am hoping to create:
Code:
blarg = W71;
temp = magic code that I can't figure out
trace(temp); // displays "W71"
I stumbled on a previous case of this [URL], but that method didn't work for variables when I tried it. Adding a + symbol before and after blarg gave me an error.simple way to incorporate quotation marks around my variable?
I'm having problem converting single ' and double " straight quotations to curly quotation marks: � � and � � in a long parsed xml data.
View 2 RepliesI created a contact form for this Flash site using Actionscipt 2.0 The problem I'm having is that when I try to enter the @ sign (shift+') I get quotation marks and vice versa as if I were using a Mac instead of a PC. This only happens in the contact form and works fine when entered anywhere else such as the address bar or a search engine.
View 1 RepliesI am using ASP create XML file, than load XML to Flash.But just found a problem, some speech marks cann't be displayed.my XML looks like that:
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<config>
[code].....
i want to import data from mysql into flash. its a simple highscore table. at the moment i have php to write out the scores in xml like this:
HTML Code:
<scores><score Myname="chris">35</score><score Myname="bob">36</score><score Myname="sam">36</score><score Myname="adam">36</score></scores>
then in flash i have a MC named 'scoreTable' and in there are dynamic text boxes named 'score', 'score1', 'name', 'name1'...etc...
and the AS3 code i have is:
ActionScript Code:
//***************** This sets up the variables *********
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
[Code].....
I'm working on a flash thing that just has three boxes, each with a different # in it. By clicking the box it will turn red or green, and below it will display the sum of all the green boxes. This is really just a test kind of for a bigger project that I have to do for work. Basically it all works except for the summing part, which I believe has something to do with the fact that it is in a function, but I could be way off.
[Code]....
I need a basic example containing 3 or 5 check-boxes and should display the names of check-boxes which are selected in a text-box.
View 1 RepliesI want to be able to add the sum of 3 input text boxes and have the total be displayed in another text box. figure I set a variable and do something along the lines of: Number = "_root.input1 + _root.input2 + _root.input3";Or do I have to do this another way?Also where should I put the code? In a button? Or can I stick it in the frame to save complications of users clicking on a button.
View 5 RepliesIs it possible to make dynamic text boxes display only full words from an xml feed? At the moment I have a selection of feeds that are supposed to run into each other, but if some of the text is longer than expected I get the first one or two characters of a word tagged on at the end. Is it possible to have the flash read whether it has character space left to display the next word in the xml?
I know it doesn't really recognise spaces etc and just pulls in the info within the node, but maybe there's a work-around if you want to do what I'm trying?
I have a main movie that contains some combo boxes. Some of them may be disabled.By pressing a button I load another movie using loadMovie. The loaded movie also contains combo boxes.When the button is pressed, the clip that shows the combo boxes is removed from the stage and the loaded movie is displayed. By pressing another button, the loaded movie is unloaded and the clip with the combo boxes is displayed again.Well, once the other movie has been loaded, when I go back to the clip with combo boxes, the disabled combo boxes have a small gray button covering the black down arrow.I have determined that so long as the loaded movie contains combo box in the library, the problem occurrs, even if there is no actual instance of it.The combo boxes that are not disabled are not affected. The combo boxes are disabled by setting "cb_name.enabled=false".If the combo box is enabled, it displays correctly, but if disabled again, it goes wrong again.My project is targeting Flash 8, so it uses AS2.I'm using Flash CS4.
View 5 Replies[code]...
above im using that regular expression to escape the " in the string. however it only does it for the first "
How can I make a quotation mark show up inside a string? [code]
View 2 RepliesI need to set a variable that displays quotation marks on the screen. I don't want to say 30 inches when I mean to say 30".
This is what I'm doing....
inches = "30""
obviously flash thinks I typed two "'s and is giving me a "String literal was not properly terminated" error... did a search with no luck and I can't find anything in flash
I'm making a program that draws a grid of boxes and the color of the box must be different to those adjacent to the box. My code compares the current box's color to those to the left and top. If any of them matches, it picks another random number (as the color). For the tiles on the first row/column, I make my grid's array indexes with negative numbers -1 so that it will not match.
What I have:
private function fillArray():void {
grid = new Array();
grid[-1] = new Array(-1,-1,-1,-1,-1); //paddles the grid[-1][0 to 4] with -1
for (var i = 0; i < HEIGHT; i++) {
[code]...
I have a INPUT TEXT inside a mc called "txt mc" and DYNAMIC TEXT in the main time line.I'm trying to display what's typed in the INPUT TEXT (my_Input_Txt) in the DYNAMIC TEXT boxes (my_Dyn_Txt1, my_Dyn_Txt2, my_Dyn_Txt3).Here's the code. But it won't simply work perhaps because the INPUT TEXT is inside a MC. I need to have the INPUT TEXT INSIDE THAT MC while having the DYNAMIC TEXT boxes out in the main time line.
my_Input_Txt.onChanged = function() {
my_Dyn_Txt1.text = my_Input_Txt.text;
my_Dyn_Txt2.text = my_Input_Txt.text;
my_Dyn_Txt3.text = my_Input_Txt.text;
};
i'm exporting xml from flash to a file on the server as a URLVariables string. When the file arrives on the server every double quotation mark has been escaped invalidating the xml. I suspect the URLRequest class may be doing this.
View 9 RepliesI am pulling a .txt document into a flash swf. The accent marks are in the txt doc but when it pulls into the swf and viewed in the browser they are missing. Txt doc loads fine with no errors but characters with accent marks are just missing.
Here is a link: [URL]
'm currently develop a flash game but i don't know how to save the games marks so thatthe user can display it when the games was over.
View 5 RepliesIs there something I can do to make it so that a flashvar can contain any sort of punctuation and not break the html code? Like some sort of encompassing brackets or something? Right now if I try to include some long strings that have quote marks or other characters that could have some sort of meaning in the code, then it tends to interpret it as code rather than a string. Anything I can do?
View 1 RepliesI need to create a movie from a photoshop file that pops up upon entering a site I work for. I was wondering the best way to do this. The movie does not need any buttons or interactivity. It just needs to show a simply process of going through necessary steps within the site. I know how to insert check marks shown below, I just don't know how to subtly highlight each box as if it was being scrolled over. Below is the file I need to turn into a flash movie
Attachments: pop up trnasition1.jpg (131.6 K)
I working with my new website where I want to show a FLV movie.Next to the movie, I have a text box that will have a new text at certain times.I want some kind of marker in the film to trigger the change.I use Aftereffets to make the movie and know that in the program I can set layer marks in timeline. But how should I do so Dreamweaver or similar software detect such marker.
View 3 RepliesIn my flash application I am using a typewriter effect, to make it seem as if text is written on the fly. When I do so, my punctuation marks (question mark, dot, ect.) get aligned to the wrong direction (to the right). I am writing in Hebrew (right-to-left).
View 1 RepliesI have an XML driven Flash site and can't get quote marks to work in Flash 6. They show up fine in version 7 and 8 of the flash player. Here's what I'm doing:
My XML file: (added line breaks just for this example)
[Code]...
how to get this working in Flash 6? We really want to use REAL quote marks.
I have in my flash some animation with MCs and dynamic filds, I am pulling some texts from my PARAM in the HTML, and he works normal, but now I got some problems.The first Product in de PARAM from my HTML I have this (NOVO+Produto+1+")when I put quotations marks ", he stop de animation from my MCs, it does not bring the outhers texts, he chokes.I try to put quotations marks ", dynamic text "Character" but nothing.I have this in my PARAM HTML.Code:'barra17?i1=imagemVertical&t=Destaques&n1=NOVO+Produto1+"&n2=Descri
View 8 RepliesI have a noob question about arrays.I have two arrays:
var array1 = new Array();
array1[0] = "1";
array1[1] = "7";
I know that these are in string format, but this is necessary for the whole code (i think!) but I want to be add these to values together, to get the value of 8, however if you do:
var answer = array1[0] + array1[1];
Then it just joins the 2 values to give 17, however if you times them, it treats it like a number.Is it possible to add them to get the value of 8 in another way without having to remove the speech marks from the array value?
In the past I have used PPro CS4 and Encore to create a DVD of clips which I show to clients. Each clip has a chapter mark so that I can jump quickly to the start of each clip. I now want to make a big Flash file of all the clips, with chapter marks which I can quickly jump to. But when I create the file from PPro, I get all the clips in one nice big file, but with no chapter marks. If I create it from Encore, it cuts the file into lots of little Flash files, the cutting points being the chapter marks. How can I create one big Flash file consisting of all the little clips, but with chapter marks which I can jump to?
View 3 RepliesI am using Eclipse to work on a large Flex project. Whenever I have an error in an actionscript file, it shows nothing in the "Flex Errors" section of Markers but when I open the file that has the error it shows a question mark next to the line where the error actually is.Is there a way to show these questions marks in the markers section of Eclipse?
View 1 Replies