ActionScript 2.0 :: Adding Quotation Marks To Variable?
Feb 19, 2005
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 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 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.
I 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 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.
I have the following code: Can the following code: globals.data.goal = globals.data.player1/5 be converted to something like: globals.data.goal = globals.data.player(globals.data.clk)/5
I have a variable i that I'm setting to 5. i = 5. Simple enough, I have a dynamic box on the screen so I know that's working.
On the same screen, I have a button, that when you click it, it should do the function i = i + 1. I know this isn't working because when I click it, the number on the screen doesn't change.
Also I have a second button that is a collection of if/else if statements. Basically, if i=1, goto 10, else if i<1, goto 40, else if i>1, goto 40. I know that since I'm setting the initial value of i to 5, it's impossible for i to be equal to 1. Yet every time I click this button, I goto 10 even though i doesn't equal to 1.
I 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.
Is 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?
Ive made a movie but i want to get someone to add a picture of themself in an swf (either through a browse button OR simple paste into a variable box) and it appear later in this electronic card im trying to make.
*edit* . . i dont what this to be done in the flash file, on the opening screen i want the user to locate a pic on their hard drive and then slave this picture througout the swf movie ive already created all the tuts im looking at seem to have the images already in the library and they are clicking buttons to display them, i DONT want this . .
im using PHP with MySQL to send information to my flash file using GETs.Using FlashVars i have managed to get the users 'id' with this i can send my questions/searches to a PHP script which access the database and returns the information to the html page.What i would like to do now is add the information sent back to the html page to a variable inside flash for example:
var usr_name = get_user_name(id) || 'Unknown'; // "Unknown" should just be for offline use.
but this just returns 'Unknown' this is the function used:
public function get_user_name(usr_id){ loadData('search.php',"quest=name",'usr_id='+usr_id); }[code]......
If i just type the URL into a web browser i get the name outputed.
Using AS 3.0 I have declared a variable on the main timeline var thescore:int=0; From within a movieclip I now want to increase the value of that variable and display it in a text box. var thescore:int=thescore+10; Object(root).myscore.text=thescore.toString(); The above code only displays ten and doesn't increase when the movieclip loops.
If I change the code to thescore=thescore+10; Object(root).myscore.text=thescore.toString(); I receive an error undefined property.
I 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.
In 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).
I 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
I 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?
Basically, I have an input box on a widget that sends information via PHP.
One of the input boxes is phone number. Everyone inputs number as normal, but without the country code.
Is there a way of me taking their normal number from the input box, removing the '0' and adding the country code before sending it (i.e. within a calculation/function/formula).
I have the following working line: moveMC.y = twn.bounceBall01.y It successfully gets the y value of bounceBall within the MC twn, and applies it to the y value of moveMC. How do I replace the 01 in bounceBall with the following global variable: globals.data.clk? I've tried using a way that Ned successfully showed me for a different situation, plus tried some other permutations, but Flash says "no way dude".