ActionScript 2.0 :: Special Letters Using LoadVar?
Feb 20, 2003how to get loadVar to read special characters like � and � when using it to read from a textfile??
View 5 Replieshow to get loadVar to read special characters like � and � when using it to read from a textfile??
View 5 RepliesI have a aspx login page with C# to let member login with username and password. After login, it gets memberId and a sessionID.How does the aspx page or C# code pass those 2 variables to flash client? In AS3, how does it get those 2 variables?
View 2 Replieswhen i try to loadVar from a php file, it works on my flash program loading off from my site not locally.. but when i upload it and test it fails in loading..
View 4 RepliesI want to change the url of the buttons of my swf movie using an external documment like txt or xml. Everybody says : use loadVars.
View 12 RepliesMaybe this is simple but I have troubles trying to do it. I want to change the url of the buttons of my swf movie using an external documment like txt or xml. Everybody says : use loadVars. How?
View 12 RepliesI add this actionscript code on the first frame. Variables are loaded but . The question is below the code.
var myArray1=new Array()
var myArray2=new Array()
var myArray3=new Array()
function showContent() {
[Code]...
i have a swf that is a email form. it works great if you just load this swf on to the server. but i have another swf that loads the email form swf into it. all of it shows up and seems to function except that it doesnt actually send the email. im guessing the problem is that the code on the send button isnt working with the new pathway. I cant figure out the path. heres the code that works in the email form
[Code]...
I want to use loadvars.send but I would rather it didn't open the target page in a new tab, but to act like a normal page would...
View 1 RepliesI am reading a file with certain user defined variables like &x=30&y=50&z=100
Lets the variable is caught in a function as argument myVar
now depending on the variable the user passes I need to fetch the value. ie if the user passes x i need to read the value of x. how the user has named his/her variables.
What i need to do it get the value of that variable by using loadVar.
this.myVar; As such it gives me undefined. There is text present in 'this' myVar represents 'x' I have tried eval(this.myVar) as well as this.eval(myVar) but in vain
I'm building an array of JPEG files from an XML file. I need a way to verify that the file exists on the server as it build the array. If it's not there I want to substitute another file name in it's place: default.jpg. Using loadVars I came up with this code.... which won't work:
[Code]...
I posted this on the FLASH forum but the only answer I got was that it can't be done and I should use a server-side script. Flash should be able to tell if a load failed or not..yes.
I am reading a file with certain user defined variables like &x=30&y=50&z=100Lets the variable is caught in a function as argument myVarnow depending on the variable the user passes I need to fetch the value. ie if the user passes x i need to read the value of x.lso keep in mind i dont havehow the user has named his/her variables.What i need to do it get the value of that variable by using loadVar.this.myVar;As such it gives me undefined. There is text present in 'this' myVar represents 'x'I have tried eval(this.myVar) as well as this.eval(myVar) but in vain
View 5 Repliesim just wondering for the best way to read variables of a .php page into flash
[Code]...
but that dident work either the real problem is, i guess that i need it to read in the variable array[0,0]=1 just like that and not use sumthingrather=(myVars.varname) because there will be a hell of alot of variables, and the variable ammounts will switch and i cant do a sumthingrather=(myVars.varname)
I'm trying to load som external text width loadVars. everything's working just fine with the example below, but i want to loop out da ****...
var loadText:LoadVars = new LoadVars();
loadText.onLoad = function(success) {
if (success) {[code].....
I add this actionscript code on the first frame. Variables are loaded but. The question is below the code.
[Code]...
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 am having problem with the text tool on flash version 8 the problem is that I am seen some blur letters when I preview my swf on explorer using dreamweaver version 8. I trying to find out what could cause the blurring the properties of the text is arial size 10 and verdana size 10. For example the period on the small i in some words look different.
View 3 RepliesGood technigue for finding out if a string has any letters?I'm not looking for a specific letter, I just want to search a string and find out if it has any letters.
View 2 RepliesI'm starting using the CS4 version of flash, and in my codes, every word is "missing" the last letter. It's not really missing, we just can't see it, or see only half of it. Did it ever happen to you? If so, how can I fix this?
View 4 RepliesThe game is already working, only missing a function to random the letters
function make_game()
{
var word_mc = createEmptyMovieClip("word_mc",1);
var words_array:Array = dica_node.split("<br>");//getting the XML values
[Code]....
So I have a string "SmartUserWantsToLive" I want to generate from it or any such string with capital letters strings like "Smart User Wants To Live".
View 1 RepliesIs there a way to embed only a few letters from a font instead of embedding the whole thing?
View 2 RepliesI know how to catch usual lowercase letters. I'm using KeyboardEvent.KEY_DOWN and compare the code to the ASCII table to find out which key was pressed. Now, I also want to be able to find out if there is, for example SHIFT+A pressed, and I have no idea how to implement this. I mean, in my program SHIFT and A are absolutely different keys which have nothing to do with each other, and they both will call KeyboardEvents when pressed. In Georgian alphabet some letters are typed by combination of SHIFT and English letters, for example W on Georgian keyboard means წ, when SIFT+W means ჭ. Absolutely different letters, as you can see. And I want to be able to catch both, coz I'm currently developing Georgian-language game.
View 2 RepliesI need to append 4 letters to my variable name when referencing it to get either spanish or english XML data. I am trying to reuse my functions without writing an if statement.
like so:
//two options for
var spa_my_videos:XMLList;
var eng_my_videos:XMLList;
[Code].....
I want to convert text to audio and I was told that there is a way to assign a sound to every letter and then I would just have to concatenate the sounds to form words
View 4 RepliesFor a rather complex search function I need to get the first letter of each word entered into an input field. At first glance this may not seem like a big problem if every word is neatly seperated by a space.
Although people can enter whatever they want into the field I only want to work with the words that start with a-z or A-Z.
I'm having a bit of trouble figuring out how I can determine if a character in the string falls into this selection. One of the possibilities is to use charCodeAt(), but that's rather rough. I can walk through the string using indexOf() but I may have trouble finding the next word if characters other than a space come into play.
[Code]...
There have been many posts about how to draw letters dynamically. This is an example of drawing the font outlines dynamically. Not the same as "writing" them, but an interesting technique [URL].
View 3 RepliesHow to specify in this validation script that letters are not allowed?[code]box is a text field.
View 6 RepliesI'm trying to create a function in FMX that validates a field for numbers and letters only, i.e. no special characters. I know how to check for number strings and so on but trying to check for letters in a string?
I used to have a PHP function that did this for my password field (below) and I would like to do something similar in Flash[code]....
I have this text String in an Array. It'll be sent to a TextField, but first I'd like to change the color of one of the letters. Like this:
some_array = ["This i<font color='#000000'>s</font> an example"];
But I'd like to do it with actionscript, so I can enter a number and one of the letters changes color. In this example the number is 7, since 's' is the 7th letter.