ActionScript 2.0 :: Load An Special XML
May 29, 2011
I have a flash (as2) movie that loads certain configuration data from a xml file, I would like the xml file was "not clear" to the user, which was zipped or encrypted in some way so that the user could not edit directly with notepad for example, but could be read as an xml in flash to get the data.
View 0 Replies
Similar Posts:
Jun 27, 2009
I need to load an xml with some special characters, I do the following:
objXML = new XML();objXML.onLoad = getLoaded;objXML.load("xml.xml");
xml.xml file:
<?xml version="1.0" encoding="utf-8"?>
.....
I tried also : <?xml version="1.0" encoding="iso-8859-7"?> ..In the text fields that I did embending the text field is empty, no characters at all. In the text fields that I didnt put embed they say : undefined. When i remove the special characters from the xml is working orite.
View 12 Replies
Nov 5, 2003
Being from Norway there's important for me that my Flash application load special characters like...
How do i load them with loadvars();
When I've loaded the variables from the page, and access them, i only get the string before the special character loaded.[code]...
View 2 Replies
Nov 5, 2003
Being from Norway there's important for me that my Flash application load special characters like How do i load them with loadvars()When I've loaded the variables from the page, and access them, i only get the string before the special character loaded.
[Code]...
View 2 Replies
May 2, 2007
I'm working on a site in which I have actionscript loading a blog from a php file. It doesnt seem to want to show the or other characters with accents, even though I have embedded those characters in the dynamic text field. here is the isolated text box: [URL]
and here is the php file it is loading from: [URL] Notice the diference? I wrote Espana once and the second time Reino de Espaa, which shows up in php but not in flash. My php is using "iso-8859-1" characters and I think I need to change it to unicode? When I load the text from a unicode txt file all the special characters show up. But I'm not sure how to do this or even exactly what unicode is.
View 3 Replies
Nov 22, 2010
I'm trying to load into flash some images from a client's server. The problem is that some of these images have been uploaded to the server with spaces and special latin characters like the following example:
[URL]
And this throws me an error when loading...
View 3 Replies
Aug 21, 2009
I've made an application which loads external images using URLRequest and URLLoader.Everything works fine until it needs to load an image which has special characters in the file name/location, e.g. and then it doesn't load anything
View 2 Replies
Feb 10, 2010
I have a text field and I fill its content dynamically with an xml, however i noticed that my customer wants some words to be links, is it possible for me to load a sort of html text into a text field? id like also to create links in some words inside the text field and put listeners to only those specific words, its that possible?
View 4 Replies
Aug 21, 2009
I've made an application which loads external images using URLRequest and URLLoader. Everything works fine until it needs to load an image which has special characters in the file name/location, e.g. and then it doesn't load anything.
when i run the .swf file locally it works, but if i run it when it's embedded on an html page, it doesn't work.
View 1 Replies
Nov 22, 2010
I'm trying to load into flash some images from a client's server. The problem is that some of these images have been uploaded to the server with spaces and special latin characters like the following example:
[URL]
View 2 Replies
Jan 4, 2010
I am working on a Flex app that has a MySQL database. Data is retrieved from the DB using PHP then I am using AMFPHP to pass the data on to FlexThe problem that I am having is that the data is being copied from Word documents which sometimes result in some of the more unusual characters are not displaying properly. For example, Word uses different characters for starting and ending double quotes instead of just " (the standard double quotes). Another example is the long dash instead of -.All of these characters result in one or more accented capital A characters appearing instead. Not only that, each time the document is saved, the characters are replaced again resulting in an ever-increasing number of these accented A's appearing.
Doing a search and replace for each troublesome character to swap it for one of the none characters seems to work but obviously this requires compiling a list of all the characters that may appear and means there is scope for this continuing as new characters are used for the first time. It also seems like a bit of a brute force way of getting round the problem rather than a proper solution.Does anyone know what causes this and have any good workarounds / fixes? I have had similar problems when using utf-8 characters in html documents that aren't set to use utf-8. Is this the same thing and if so, how do I get flex to use utf-8?
View 1 Replies
Jun 20, 2011
By sending the below text block from Flash there are problems with the through PHP created XML output.
[Code]...
I think some of the characters causing the problem. How to fix this problem?
View 1 Replies
Sep 18, 2009
I've got an XML-RPC server-client setup with Flash as the front-end and Delphi as the back-end. I'm essentially sending Strings which contain XML to Flash from Delphi. It's working without any real issues but one: Sometimes the Delphi side needs to send a ">" or "<" character in a string (e.g. "dn < ds").
This causes a problem when I try to convert the string to XML because Flash interprets that as malformed (the ">" or "<" could signify a tag). Will I have to comb the string for any occurrences and then escape them (as in "%gt;" for ">" and "%lt;" for "<") myself, or is there possibly some built-in method of dealing with those?
View 1 Replies
Sep 19, 2006
how can i get the value os a attribute located in a xml file that contains caracters like:
� � � � � � ?
sometimes it gives me a error in the text, other blocks the swf application.
View 4 Replies
Aug 2, 2008
I've been looking on several fourms but have yet to find the answer to how to fix special characters. Maybe I'm not looking in the right place but if someone could point me there. I looked at the fourm on kirupa but it didn't solve my problem. Right know my dynamic text has & a p o s; in it. My xml file is encoding="UTF-8" and I used System.useCodepage = true; but still no luck. I also embedding my font.
View 1 Replies
May 2, 2009
I wanted to use a special font (frenchscript mt) for captions I made in the dynamic text field. (My captions change depending on the image chosen and it has links too). I've done all kinds of embedding, including the new font symbol embedding method but nothing works. I test if embedding was done by removing the font from my fonts folder. But when I do this, the captions become Arial I even tried to put a plain dynamic text field on stage using the special font, but the same thing happens when I remove the special font from the fonts folder. What can I do to make sure that even users without this font will be able to view the caption in the special font??
View 1 Replies
Jun 26, 2009
How do I add text effects such as a mask to text that has strokes, or decorated text? I would like to have a masked effect on special type that has a stroke to it.Currently the mask works on static Arial text and when I convert the static text to a movie clip. But the mask doesn't work when I convert the static text to dynamic text.
View 3 Replies
Mar 11, 2011
I have a problem to see special characters in flash when I load them from sql with php and xml.Here my scripts:
AS3:
Code:
var myDomandaXML:XML = new XML();
[code].....
View 10 Replies
Oct 23, 2003
i'm loading a dynamic text, but some spanish characters like " and " (i hope you see the characters in "") do not appear. Por example, the word "drsticas" which has the special character over the "a" appears "dricas", that is, it skips the letter with the special character and the 2 following letters.Anyway, i've tried using the embed option for dynamic texts, but may be i'm using it wrong.
View 1 Replies
Aug 20, 2009
I have a Flash file saved as version 8 with the following script calling an xml file:
[Code]...
When posted online my flash file displays the encoding tag in the xml file. AND the apostrophe, ampersand and quote marks display as html code instead of the actual character. I can take the encoding tag out of the xml file but my characters still don't display correctly. My dynamic text field in flash (myText) does have special characters embedded, plus I have them entered manually in the field for 'include these characters'.
View 10 Replies
Apr 19, 2010
In my program i using dymanic text with font 'Campfire'. But as usual users don't have this font on they own pc. And they dont see my font Campfire...
How i can make then users will see Campfire too? Need write special code?(so it will be like user open my program and after this he must download this font? ) or how?
Or maybe need write a way to .ttf ? and put this .ttf on same folder with .swf ? if yes, how to write do it?
View 17 Replies
Aug 26, 2010
I have some XML. The apostrophe and dashes don't display. Is there a way to handle it without resorting to & ? It is the dash right after the underlined title. For the apostrophe, I went ahead and used ITSD's (for ITSD's). Just wondering if I have to that with every special character.
[Code]...
The display in the TextArea Component puts a little box in places where the dash and apostrophe are.
View 4 Replies
Nov 16, 2010
I use Loader class to load a picture,such as example.jpg,and I know if I want to realize fade in effect,I can use following code in Event.ENTER_FRAME:sprite.alpha+=0.05.When I run above code,I can get a fade in effect of example.jpg. But the fade in effect is for the whole example.jpg, now I want to fade in the example.jpg with a special curve,such as number 9,the example.jpg fade in along number 9 curve. I guess it shoud have a mathematical model can realize this special fade in effect,anyone could give me the model of fade in along special curve?
View 3 Replies
Apr 11, 2011
In every language programming the most important item is caching data to have the higher performance by the way is there any special way in flash to cache?
View 4 Replies
Nov 13, 2011
this simple program
private var str:String = 'u036fu0041u0009u0370u001au0392u8071';
public function uni()
{ for(var n:int = 0 ; n < str.length ; n++)
trace(n+' '+str.charCodeAt(n)+' '+str.charAt(n));
}
outputs:
0 879 ?
1 65 A
2 9
3 117 u
[code].....
(I have just replaced all the funny chars by ?). Note that one unicode appears as a sequence of literal characters.This happens for every value in the u0370 to u0383 range.
View 2 Replies
May 26, 2011
I have a php file that generates an xml, the php file:
Code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>[code]....
without any success.I also tried changing the encoding of the XML:
Code:
<?xml version="1.0" encoding="iso-8859-1"?> But still not working.
View 2 Replies
Oct 10, 2010
I'm running a flash game on asp.net frame. The flash is sending parameters to some asp.net page that save those parameters to a database. My problem is that if the parametrs contain special chars (Russian, Arabic...) then those chars are transform to question marks (?) I've tried to urldecode the parameters but without
The parameters that sent from the Flash are in unicode format and are urlencoded.
The asp.net code is:
string pp4 = "";
if (Request.Form["param4"] != null) { pp4 = Server.UrlDecode(Request.Form["param4"]); }
...
...
[Code]....
View 1 Replies
May 26, 2011
I have a php file that generates an xml, the php file:[code]
View 1 Replies
Aug 2, 2011
I am working on project in flex 3, where user enters some text which is to be stored in a mysql database and shown later. I am using XML for data transfer from flex to php and vice-versa. SimpleXMLElement in php is being used to create the XML. The problem is the XML breaks on special characters.Here is sample code:
FLEX:
var someXML:XML = <root><data>somedata</data><data>...</data> ... </root>
var data:Object = {};
data.xmlData = someXML;
saveDataService.send(data);
Here somedata is the data entered by the user. In php, I extract the someXML using SimpleXMLElement and store it to mysql. There is no problem till here. Even if somedata has special characters its working fine and data is stored properly.Now, in the other case, getting data from database and showing in flex, the response from the php breaks with an error:
SimpleXMLElement::addChild() [simplexmlelement.addchild]:unterminated entity reference
I tried using urlencode in php, and decodeURI function in flex, but the decoded string is not the same, few special characters are still %xy after decoding.
View 3 Replies
Nov 28, 2011
I downloaded a flash template and I need to add special characters (Greek Language) to: fonts.fla. After editing the file the flash is not loading anymore.
Notice : This is an AS3 project and you can only add AS3 SWF files When publishing your custom SWF file be sure to add this method to your actionscript file:
public function startModule():void { //inside this method you can start your transitions to show the content }
View 1 Replies